KVIrc  4.9.2
DeveloperAPIs
PackThemeDialog.h
Go to the documentation of this file.
1 #ifndef _PACKTHEMEDIALOG_H_
2 #define _PACKTHEMEDIALOG_H_
3 //=============================================================================
4 //
5 // File : PackThemeDialog.h
6 // Creation date : Wed 03 Jan 2007 01:11:44 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC Client distribution
9 // Copyright (C) 2007-2010 Szymon Stefanek <pragma at kvirc dot net>
10 // Copyright (C) 2010 Elvio Basello <hell at hellvis69 dot netsons dot org>
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "kvi_settings.h"
29 #include "KviPointerList.h"
30 #include "KviTheme.h"
31 
32 #include <QWizard>
33 #include <QWizardPage>
34 
35 class QLineEdit;
36 class QLabel;
37 class QTextEdit;
38 class KviFileSelector;
39 
44 
45 class PackThemeDialog : public QWizard
46 {
47  Q_OBJECT
48 public:
49  PackThemeDialog(QWidget * pParent, KviPointerList<KviThemeInfo> * pThemeInfoList);
51 
52 protected:
58 
59  QString m_szAuthor;
60  QString m_szName;
61  QString m_szVersion;
62  QString m_szDescription;
63  QString m_szImagePath;
64  QString m_szPackagePath;
65  QString m_szSavePath;
66 
67  //QWidget * m_pImageSelectionPage;
68 protected:
69  virtual void accept();
70  bool packTheme();
71 };
72 
73 class PackThemeDataWidget : public QWizardPage
74 {
75  Q_OBJECT
76 public:
79 
80 public:
81  void parseThemes(KviPointerList<KviThemeInfo> * pThemeInfoList);
82 };
83 
84 class PackThemeInfoWidget : public QWizardPage
85 {
86  Q_OBJECT
87 public:
90 
91 public:
92  QLineEdit * m_pPackageNameEdit;
94  QLineEdit * m_pPackageVersionEdit;
95  QLineEdit * m_pPackageAuthorEdit;
96 
97 protected:
98  virtual void initializePage();
99 };
100 
101 class PackThemeImageWidget : public QWizardPage
102 {
103  Q_OBJECT
104 public:
107 
108 protected:
110  QLabel * m_pImageLabel;
111  QString m_szImagePath;
112 protected slots:
113  void imageSelectionChanged(const QString & szImagePath);
114 };
115 
116 class PackThemeSaveWidget : public QWizardPage
117 {
118  Q_OBJECT
119 public:
122 
123 protected:
126 
127 protected:
128  virtual void initializePage();
129 };
130 
131 #endif
Definition: KviSelectors.h:215
KviPointerList< KviThemeInfo > * m_pThemeInfoList
Definition: PackThemeDialog.h:57
virtual void initializePage()
Definition: PackThemeDialog.cpp:298
QString m_szPackagePath
Definition: PackThemeDialog.h:64
PackThemeDialog(QWidget *pParent, KviPointerList< KviThemeInfo > *pThemeInfoList)
Definition: PackThemeDialog.cpp:54
void parseThemes(KviPointerList< KviThemeInfo > *pThemeInfoList)
Definition: PackThemeDialog.cpp:138
PackThemeImageWidget * m_pPackThemeImageWidget
Definition: PackThemeDialog.h:55
KviFileSelector * m_pSavePathSelector
Definition: PackThemeDialog.h:124
QString m_szPackagePath
Definition: PackThemeDialog.h:125
KviFileSelector * m_pImageSelector
Definition: PackThemeDialog.h:109
QString m_szImagePath
Definition: PackThemeDialog.h:111
QString m_szSavePath
Definition: PackThemeDialog.h:65
PackThemeInfoWidget(PackThemeDialog *pParent)
Definition: PackThemeDialog.cpp:244
QLabel * m_pImageLabel
Definition: PackThemeDialog.h:110
QLineEdit * m_pPackageNameEdit
Definition: PackThemeDialog.h:92
bool packTheme()
Definition: PackThemeDialog.cpp:413
QString m_szAuthor
Definition: PackThemeDialog.h:59
PackThemeDataWidget(PackThemeDialog *pParent)
Definition: PackThemeDialog.cpp:130
QString m_szImagePath
Definition: PackThemeDialog.h:63
Definition: PackThemeDialog.h:73
PackThemeInfoWidget * m_pPackThemeInfoWidget
Definition: PackThemeDialog.h:54
virtual void accept()
Definition: PackThemeDialog.cpp:406
PackThemeImageWidget(PackThemeDialog *pParent)
Definition: PackThemeDialog.cpp:313
QLineEdit * m_pPackageAuthorEdit
Definition: PackThemeDialog.h:95
Definition: PackThemeDialog.h:101
Definition: PackThemeDialog.h:116
QString m_szDescription
Definition: PackThemeDialog.h:62
C++ Template based double linked pointer list class.
QTextEdit * m_pPackageDescriptionEdit
Definition: PackThemeDialog.h:93
PackThemeSaveWidget(PackThemeDialog *pParent)
Definition: PackThemeDialog.cpp:364
virtual void initializePage()
Definition: PackThemeDialog.cpp:390
PackThemeDataWidget * m_pPackThemeDataWidget
Definition: PackThemeDialog.h:53
QLineEdit * m_pPackageVersionEdit
Definition: PackThemeDialog.h:94
This file contains compile time settings.
void imageSelectionChanged(const QString &szImagePath)
Definition: PackThemeDialog.cpp:338
QString m_szName
Definition: PackThemeDialog.h:60
QString m_szVersion
Definition: PackThemeDialog.h:61
PackThemeSaveWidget * m_pPackThemeSaveWidget
Definition: PackThemeDialog.h:56
Definition: PackThemeDialog.h:45
Definition: PackThemeDialog.h:84