diff options
| author | 2011-03-16 21:58:18 +0000 | |
|---|---|---|
| committer | 2011-03-16 21:58:18 +0000 | |
| commit | b9d79d0d368cccd31e0c00062b3fb3a26da3b1b8 (patch) | |
| tree | 7ec35a1438f8441ec6076e475992a4fa79651701 /src/modules/theme/ThemeManagementDialog.h | |
| parent | upd8 spanish translation (diff) | |
| download | KVIrc-b9d79d0d368cccd31e0c00062b3fb3a26da3b1b8.tar.gz KVIrc-b9d79d0d368cccd31e0c00062b3fb3a26da3b1b8.tar.bz2 KVIrc-b9d79d0d368cccd31e0c00062b3fb3a26da3b1b8.zip | |
Code improvements in the theme manager(wip)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5610 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/theme/ThemeManagementDialog.h')
| -rw-r--r-- | src/modules/theme/ThemeManagementDialog.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.h b/src/modules/theme/ThemeManagementDialog.h index 5c6d46de8..d4f7fa61d 100644 --- a/src/modules/theme/ThemeManagementDialog.h +++ b/src/modules/theme/ThemeManagementDialog.h @@ -38,13 +38,15 @@ #include <QListWidget> #include <QItemDelegate> #include <QToolButton> - +#include "kvi_settings.h" +#if defined(COMPILE_WEBKIT_SUPPORT) || defined(Q_MOC_RUN) +#include "WebThemeInterfaceDialog.h" +#endif class QLineEdit; class QPushButton; class QLabel; class KviDynamicToolTip; - class ThemeListWidgetItem : public KviTalListWidgetItem { public: @@ -53,7 +55,7 @@ public: public: KviThemeInfo * m_pThemeInfo; public: - KviThemeInfo * themeInfo(){ return m_pThemeInfo; }; + KviThemeInfo * themeInfo(){ return m_pThemeInfo; } }; @@ -70,15 +72,19 @@ protected: KviTalPopupMenu * m_pContextPopup; QToolButton * m_pDeleteThemeButton; QToolButton * m_pPackThemeButton; +#if defined(COMPILE_WEBKIT_SUPPORT) || defined(Q_MOC_RUN) + WebThemeInterfaceDialog *m_pWebThemeInterfaceDialog; +#endif public: - static ThemeManagementDialog * instance(){ return m_pInstance; }; + static ThemeManagementDialog * instance(){ return m_pInstance; } static void display(bool bTopLevel); static void cleanup(); protected: - void fillThemeBox(const QString &szDir); + void fillThemeBox(bool bBuiltin); bool hasSelectedItems(); virtual void closeEvent(QCloseEvent * e); protected slots: + void saveCurrentTheme(); void getMoreThemes(); void installFromFile(); |
