00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <qwidget.h>
00019 #include <qlistbox.h>
00020
00021 #ifndef JezabelPanel_included
00022
00023 struct JezabelPanelPrivate;
00024
00054 class JezabelPanel : public QWidget {
00055 Q_OBJECT
00056 public:
00057
00058 enum Flags {NoAudioSettingsButton = 0x1};
00059
00061
00067 JezabelPanel(const char *type, const char *instance, int flags = 0, QWidget *_parent = 0, WFlags f=0 );
00068
00070 QWidget *mainArea();
00071
00073
00080 void registerControl(QString &name, int val, QObject *control, const char *signal, const char *slot);
00081
00083
00090 void registerControl(QString &name, QString val, QObject *control, const char *signal, const char *slot);
00091
00093 void start();
00094
00096 void stop();
00097
00099 ~JezabelPanel();
00100
00102 static JezabelPanel *find(QObject *thing);
00103
00104 virtual bool close ( bool alsoDelete );
00105
00106 protected:
00107 void updatePresetList();
00108 void savePreset(const char *);
00109 void restorePreset(QString presetname, bool builtin);
00110 virtual void postRestore(){}
00111 public:
00112 JezabelPanelPrivate *me;
00113 protected slots:
00114 void presetClicked(QListBoxItem *);
00115 void builtinPresetClicked(QListBoxItem *);
00116 void addClicked();
00117 void deleteClicked();
00118 void audioSettingsClicked();
00119 };
00120
00121 #define JezabelPanel_included
00122 #endif
00123
00124