From 51d1524d760f0b9946d2e41b66250faa96a23da4 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Thu, 17 Mar 2011 14:55:29 +0000 Subject: Start generalizing the web package management interface git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5618 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/theme/WebThemeInterfaceDialog.h | 41 +++++++++-------------------- 1 file changed, 12 insertions(+), 29 deletions(-) (limited to 'src/modules/theme/WebThemeInterfaceDialog.h') diff --git a/src/modules/theme/WebThemeInterfaceDialog.h b/src/modules/theme/WebThemeInterfaceDialog.h index ed65cae97..d3d930e40 100644 --- a/src/modules/theme/WebThemeInterfaceDialog.h +++ b/src/modules/theme/WebThemeInterfaceDialog.h @@ -26,47 +26,30 @@ #include "kvi_settings.h" -#if defined(COMPILE_WEBKIT_SUPPORT) -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#ifdef COMPILE_WEBKIT_SUPPORT -class WebThemeInterfaceDialog : public QWidget +#include "KviWebPackageManagementDialog.h" + + +class WebThemeInterfaceDialog : public KviWebPackageManagementDialog { Q_OBJECT public: WebThemeInterfaceDialog(QWidget *par=0); ~WebThemeInterfaceDialog(); + private: - QToolBar * m_pToolBar; - QString m_szLocalTmpThemeCompletePath; - QVBoxLayout *m_pLayout; - QWebView * m_pWebView; - QFile *m_pFile; - QFtp *m_pFtp; - bool m_bBusy; - QProgressBar *m_pProgressBar; + QString m_szLocalThemesPath; + QString m_szGlobalThemesPath; + protected: - virtual void showEvent(QShowEvent *e); -protected slots: + virtual bool packageIsInstalled(const QString &szName,const QString &szVersion); + virtual bool installPackage(const QString &szPath,QString &szError); - void slotLoadFinished(bool ok); - void slotLoadProgress(int iProgress); - void slotDataTransferProgress(qint64 iDone,qint64 iTotal); - void slotCommandFinished(int id,bool error); - void slotLinkClicked(const QUrl &url); }; -#endif +#endif //COMPILE_WEBKIT_SUPPORT #endif //_WEBTHEMEINTERFACEDIALOG_H_ -- cgit v1.3.1-10-gc9f91