KVIrc
4.9.2
DeveloperAPIs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
theme
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
40
class
PackThemeDataWidget
;
41
class
PackThemeInfoWidget
;
42
class
PackThemeImageWidget
;
43
class
PackThemeSaveWidget
;
44
45
class
PackThemeDialog
:
public
QWizard
46
{
47
Q_OBJECT
48
public
:
49
PackThemeDialog
(QWidget * pParent,
KviPointerList<KviThemeInfo>
* pThemeInfoList);
50
~PackThemeDialog
();
51
52
protected
:
53
PackThemeDataWidget
*
m_pPackThemeDataWidget
;
54
PackThemeInfoWidget
*
m_pPackThemeInfoWidget
;
55
PackThemeImageWidget
*
m_pPackThemeImageWidget
;
56
PackThemeSaveWidget
*
m_pPackThemeSaveWidget
;
57
KviPointerList<KviThemeInfo>
*
m_pThemeInfoList
;
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
:
77
PackThemeDataWidget
(
PackThemeDialog
* pParent);
78
~PackThemeDataWidget
();
79
80
public
:
81
void
parseThemes
(
KviPointerList<KviThemeInfo>
* pThemeInfoList);
82
};
83
84
class
PackThemeInfoWidget
:
public
QWizardPage
85
{
86
Q_OBJECT
87
public
:
88
PackThemeInfoWidget
(
PackThemeDialog
* pParent);
89
~PackThemeInfoWidget
();
90
91
public
:
92
QLineEdit *
m_pPackageNameEdit
;
93
QTextEdit *
m_pPackageDescriptionEdit
;
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
:
105
PackThemeImageWidget
(
PackThemeDialog
* pParent);
106
~PackThemeImageWidget
();
107
108
protected
:
109
KviFileSelector
*
m_pImageSelector
;
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
:
120
PackThemeSaveWidget
(
PackThemeDialog
* pParent);
121
~PackThemeSaveWidget
();
122
123
protected
:
124
KviFileSelector
*
m_pSavePathSelector
;
125
QString
m_szPackagePath
;
126
127
protected
:
128
virtual
void
initializePage
();
129
};
130
131
#endif
KviFileSelector
Definition:
KviSelectors.h:215
PackThemeSaveWidget::~PackThemeSaveWidget
~PackThemeSaveWidget()
PackThemeDialog::m_pThemeInfoList
KviPointerList< KviThemeInfo > * m_pThemeInfoList
Definition:
PackThemeDialog.h:57
PackThemeInfoWidget::initializePage
virtual void initializePage()
Definition:
PackThemeDialog.cpp:298
PackThemeDialog::m_szPackagePath
QString m_szPackagePath
Definition:
PackThemeDialog.h:64
PackThemeDialog::~PackThemeDialog
~PackThemeDialog()
PackThemeDialog::PackThemeDialog
PackThemeDialog(QWidget *pParent, KviPointerList< KviThemeInfo > *pThemeInfoList)
Definition:
PackThemeDialog.cpp:54
PackThemeDataWidget::parseThemes
void parseThemes(KviPointerList< KviThemeInfo > *pThemeInfoList)
Definition:
PackThemeDialog.cpp:138
PackThemeDialog::m_pPackThemeImageWidget
PackThemeImageWidget * m_pPackThemeImageWidget
Definition:
PackThemeDialog.h:55
PackThemeSaveWidget::m_pSavePathSelector
KviFileSelector * m_pSavePathSelector
Definition:
PackThemeDialog.h:124
PackThemeSaveWidget::m_szPackagePath
QString m_szPackagePath
Definition:
PackThemeDialog.h:125
PackThemeImageWidget::m_pImageSelector
KviFileSelector * m_pImageSelector
Definition:
PackThemeDialog.h:109
PackThemeImageWidget::m_szImagePath
QString m_szImagePath
Definition:
PackThemeDialog.h:111
PackThemeDialog::m_szSavePath
QString m_szSavePath
Definition:
PackThemeDialog.h:65
PackThemeInfoWidget::PackThemeInfoWidget
PackThemeInfoWidget(PackThemeDialog *pParent)
Definition:
PackThemeDialog.cpp:244
PackThemeDataWidget::~PackThemeDataWidget
~PackThemeDataWidget()
PackThemeImageWidget::m_pImageLabel
QLabel * m_pImageLabel
Definition:
PackThemeDialog.h:110
PackThemeInfoWidget::m_pPackageNameEdit
QLineEdit * m_pPackageNameEdit
Definition:
PackThemeDialog.h:92
PackThemeDialog::packTheme
bool packTheme()
Definition:
PackThemeDialog.cpp:413
PackThemeImageWidget::~PackThemeImageWidget
~PackThemeImageWidget()
PackThemeDialog::m_szAuthor
QString m_szAuthor
Definition:
PackThemeDialog.h:59
PackThemeDataWidget::PackThemeDataWidget
PackThemeDataWidget(PackThemeDialog *pParent)
Definition:
PackThemeDialog.cpp:130
PackThemeDialog::m_szImagePath
QString m_szImagePath
Definition:
PackThemeDialog.h:63
PackThemeDataWidget
Definition:
PackThemeDialog.h:73
PackThemeDialog::m_pPackThemeInfoWidget
PackThemeInfoWidget * m_pPackThemeInfoWidget
Definition:
PackThemeDialog.h:54
PackThemeDialog::accept
virtual void accept()
Definition:
PackThemeDialog.cpp:406
PackThemeImageWidget::PackThemeImageWidget
PackThemeImageWidget(PackThemeDialog *pParent)
Definition:
PackThemeDialog.cpp:313
PackThemeInfoWidget::m_pPackageAuthorEdit
QLineEdit * m_pPackageAuthorEdit
Definition:
PackThemeDialog.h:95
PackThemeImageWidget
Definition:
PackThemeDialog.h:101
PackThemeSaveWidget
Definition:
PackThemeDialog.h:116
PackThemeDialog::m_szDescription
QString m_szDescription
Definition:
PackThemeDialog.h:62
KviPointerList.h
C++ Template based double linked pointer list class.
PackThemeInfoWidget::m_pPackageDescriptionEdit
QTextEdit * m_pPackageDescriptionEdit
Definition:
PackThemeDialog.h:93
KviPointerList< KviThemeInfo >
PackThemeSaveWidget::PackThemeSaveWidget
PackThemeSaveWidget(PackThemeDialog *pParent)
Definition:
PackThemeDialog.cpp:364
PackThemeSaveWidget::initializePage
virtual void initializePage()
Definition:
PackThemeDialog.cpp:390
PackThemeDialog::m_pPackThemeDataWidget
PackThemeDataWidget * m_pPackThemeDataWidget
Definition:
PackThemeDialog.h:53
PackThemeInfoWidget::m_pPackageVersionEdit
QLineEdit * m_pPackageVersionEdit
Definition:
PackThemeDialog.h:94
kvi_settings.h
This file contains compile time settings.
PackThemeInfoWidget::~PackThemeInfoWidget
~PackThemeInfoWidget()
PackThemeImageWidget::imageSelectionChanged
void imageSelectionChanged(const QString &szImagePath)
Definition:
PackThemeDialog.cpp:338
PackThemeDialog::m_szName
QString m_szName
Definition:
PackThemeDialog.h:60
PackThemeDialog::m_szVersion
QString m_szVersion
Definition:
PackThemeDialog.h:61
PackThemeDialog::m_pPackThemeSaveWidget
PackThemeSaveWidget * m_pPackThemeSaveWidget
Definition:
PackThemeDialog.h:56
KviTheme.h
PackThemeDialog
Definition:
PackThemeDialog.h:45
PackThemeInfoWidget
Definition:
PackThemeDialog.h:84
Generated on Mon May 16 2016 22:48:48 for KVIrc by
1.8.7