KVIrc  4.9.2
DeveloperAPIs
SaveThemeDialog.h
Go to the documentation of this file.
1 #ifndef _SAVETHEMEDIALOG_H_
2 #define _SAVETHEMEDIALOG_H_
3 //=============================================================================
4 //
5 // File : SaveThemeDialog.h
6 // Creation date : Wed 03 Jan 2007 03:01:34 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 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 #include "KviPointerList.h"
29 #include "KviTheme.h"
30 #include "KviTalWizard.h"
31 
32 #include <QDialog>
33 
34 class QLineEdit;
35 class QPushButton;
36 class QLabel;
37 class QTextEdit;
38 class QCheckBox;
39 class KviFileSelector;
40 
42 {
43  Q_OBJECT
44 public:
45  SaveThemeDialog(QWidget * pParent);
46  virtual ~SaveThemeDialog();
47 
48 protected:
51  QLabel * m_pImageLabel;
52  QLineEdit * m_pThemeNameEdit;
54  QLineEdit * m_pThemeVersionEdit;
55  QLineEdit * m_pAuthorNameEdit;
57  QPushButton * m_pOkButton;
58  QCheckBox * m_pSaveIconsCheckBox;
59 
60 protected:
61  virtual void accept();
62  bool saveTheme();
63 protected slots:
64  void makeScreenshot();
65  void imageSelectionChanged(const QString & szImagePath);
66  //void themeNameChanged(const QString &txt);
67 };
68 
69 #endif
Definition: KviSelectors.h:215
QPushButton * m_pOkButton
Definition: SaveThemeDialog.h:57
QLineEdit * m_pAuthorNameEdit
Definition: SaveThemeDialog.h:55
QLineEdit * m_pThemeNameEdit
Definition: SaveThemeDialog.h:52
void makeScreenshot()
Definition: SaveThemeDialog.cpp:244
virtual void accept()
Definition: SaveThemeDialog.cpp:237
QLineEdit * m_pThemeVersionEdit
Definition: SaveThemeDialog.h:54
QCheckBox * m_pSaveIconsCheckBox
Definition: SaveThemeDialog.h:58
KviFileSelector * m_pImageSelector
Definition: SaveThemeDialog.h:50
C++ Template based double linked pointer list class.
void imageSelectionChanged(const QString &szImagePath)
Definition: SaveThemeDialog.cpp:212
bool saveTheme()
Definition: SaveThemeDialog.cpp:258
Provides a wizard-style dialog with steps.
Definition: KviTalWizard.h:42
virtual ~SaveThemeDialog()
This file contains compile time settings.
QWidget * m_pImageSelectionPage
Definition: SaveThemeDialog.h:56
QTextEdit * m_pThemeDescriptionEdit
Definition: SaveThemeDialog.h:53
QLabel * m_pImageLabel
Definition: SaveThemeDialog.h:51
SaveThemeDialog(QWidget *pParent)
Definition: SaveThemeDialog.cpp:58
QString m_szScreenshotPath
Definition: SaveThemeDialog.h:49
Definition: SaveThemeDialog.h:41