diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/configdialog.h | |
download | soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip |
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/configdialog.h')
-rwxr-xr-x | src/configdialog.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/src/configdialog.h b/src/configdialog.h new file mode 100755 index 0000000..19d3d12 --- /dev/null +++ b/src/configdialog.h @@ -0,0 +1,79 @@ + + +#ifndef CONFIGDIALOG_H +#define CONFIGDIALOG_H + +#include <kdialogbase.h> + +#include <qmap.h> + + +class Config; +class ConfigGeneralPage; +class ConfigPluginsPage; +class ConfigEnvironmentPage; +class ConfigBackendsPage; + +/** + * @short Config dialog + * @author Daniel Faust <[email protected]> + * @version 0.3 + */ +class ConfigDialog : public KDialogBase +{ + Q_OBJECT +public: + enum Page { + GeneralPage, + PluginsPage, + EnvironmentPage, + BackendsPage + }; + + /** + * Constructor + */ + ConfigDialog( Config*, QWidget *parent = 0, const char *name = 0, Page startPage = GeneralPage ); + + /** + * Destructor + */ + virtual ~ConfigDialog(); + +private: + QFrame* addPage( const QString &itemName, const QString &iconName ); + + QFrame* generalPage; + ConfigGeneralPage* configGeneralPage; + QFrame* pluginsPage; + ConfigPluginsPage* configPluginsPage; + QFrame* environmentPage; + ConfigEnvironmentPage* configEnvironmentPage; + QFrame* backendsPage; + ConfigBackendsPage* configBackendsPage; + + void setConfigChanged( const bool ); + + Config* config; + + QMap<QString, QString> binaries; + +private slots: + void configChanged(); + void okClickedSlot(); + void applyClickedSlot(); + void defaultClickedSlot(); + +signals: + void saveGeneral(); + void savePlugins(); + void saveEnvironment(); + void saveBackends(); + + void resetGeneral(); + void resetPlugins(); + void resetEnvironment(); + void resetBackends(); +}; + +#endif // CONFIGDIALOG_H |