Main Page   Class Hierarchy   Compound List   File List   Compound Members  

elegant.h

00001 // -*- c++ -*-
00002 
00003 /*
00004  *
00005  * Copyright (C) 2002 Richard Moore, <rich@kde.org>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public License
00018  * along with this library; see the file COPYING.LIB.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 
00024 
00025 #ifndef __QVELEGANT_PLUGIN_H
00026 #define __QVELEGANT_PLUGIN_H
00027 
00028 #include <qvosdplugin.h>
00029 #include "elegantconfigwidget.h"
00030 
00031 class KPopupTitle;
00032 class QTimer;
00033 
00034 #define INCLUDE_TESTS
00035 
00041 class QtVisionElegant : public QVOSDPlugin
00042 {
00043     Q_OBJECT
00044 
00045 public:
00046     QtVisionElegant( QtVision *qtv, QWidget *parent=0, const char *name=0 );
00047     virtual ~QtVisionElegant();
00048 
00049 public slots:
00050     void readConfig();
00051     void writeConfig();
00052     void applySettings();
00053 
00054     void display( const QString &text, const QPixmap &icon );
00055     void display( const QString &text, const QString &icon=QString::null );
00056 
00057     virtual void clear();
00058     virtual void displayMisc(const QString& text);
00059     virtual void displayChannel(int channel, const QString& name);
00060     virtual void displayMuted(bool muted);
00061     virtual void displayVolume(int vol);
00062     virtual void displayCC(const QString& text);
00063 
00064     virtual void viewResized(int w, int h);
00065 
00066     virtual ElegantConfigWidget *configWidget( QWidget *parent, const char *name );
00067     void applyConfigWidget();
00068 
00069     void showPopup();
00070     void updateGeometry();
00071 
00072 #ifdef INCLUDE_TESTS
00073     void test_channel();
00074     void test_mute();
00075     void test_volume();
00076     void test_config();
00077 #endif // INCLUDE_TESTS
00078 
00079 private:
00080     QWidget *parent;
00081     KPopupTitle *popup;
00082     QTimer *timer;
00083     ElegantConfigWidget *form;
00084     int align;
00085     int indent;
00086     int iconSize;
00087     int fontSize;
00088     bool fontBold;
00089     bool fontItalic;
00090     bool fontUnderline;
00091     bool autoFontSize;
00092 };
00093 
00094 #endif
00095 
00096 

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001