~ubuntu-branches/ubuntu/trusty/kvirc/trusty-proposed

« back to all changes in this revision

Viewing changes to src/modules/theme/PackThemeDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Wasserbäch, Kai Wasserbäch, Raúl Sánchez Siles
  • Date: 2011-02-12 10:40:21 UTC
  • mfrom: (14.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110212104021-5mh4f75jlku20mnt
The combined "Twisted Experiment" and "Nocturnal Raid" release.

[ Kai Wasserbäch ]
* Synced to upstream's SVN revision 5467.
* debian/rules:
  - Added .PHONY line.
  - Resurrect -DMANUAL_REVISION, got lost somewhere and we build SVN
    revisions again.
  - Replace "-DWITH_NO_EMBEDDED_CODE=YES" with "-DWANT_CRYPTOPP=YES".
  - Change the remaining -DWITH/-DWITHOUT to the new -DWANT syntax.
* debian/control:
  - Removed DMUA, I'm a DD now.
  - Changed my e-mail address.
  - Removed unneeded relationships (no upgrades over two releases are
    supported).
  - Fix Suggests for kvirc-dbg.
  - kvirc-data: Make the "Suggests: kvirc" a Recommends, doesn't make much
    sense to install the -data package without the program.
* debian/source/local-options: Added with "unapply-patches".
* debian/kvirc.lintian-overrides: Updated to work for 4.1.1.
* debian/patches/21_make_shared-mime-info_B-D_superfluous.patch: Updated.
* debian/kvirc-data.install: Added .notifyrc.

[ Raúl Sánchez Siles ]
* Stating the right version where kvirc-data break and replace should happen.
* Fixing link to license file.
* Added French and Portuguese man pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 opinion) 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
protected:
 
52
        PackThemeDataWidget       * m_pPackThemeDataWidget;
 
53
        PackThemeInfoWidget       * m_pPackThemeInfoWidget;
 
54
        PackThemeImageWidget      * m_pPackThemeImageWidget;
 
55
        PackThemeSaveWidget       * m_pPackThemeSaveWidget;
 
56
        KviPointerList<KviThemeInfo> * m_pThemeInfoList;
 
57
        
 
58
        QString                        m_szAuthor;
 
59
        QString                        m_szName;
 
60
        QString                        m_szVersion;
 
61
        QString                        m_szDescription;
 
62
        QString                        m_szImagePath;
 
63
        QString                        m_szPackagePath;
 
64
        QString                        m_szSavePath;
 
65
 
 
66
        //QWidget                      * m_pImageSelectionPage;
 
67
protected:
 
68
        virtual void accept();
 
69
        bool packTheme();
 
70
};
 
71
 
 
72
class PackThemeDataWidget : public QWizardPage
 
73
{
 
74
        Q_OBJECT
 
75
public:
 
76
        PackThemeDataWidget(PackThemeDialog * pParent);
 
77
        ~PackThemeDataWidget();
 
78
public:
 
79
        void parseThemes(KviPointerList<KviThemeInfo> * pThemeInfoList);
 
80
};
 
81
 
 
82
class PackThemeInfoWidget : public QWizardPage
 
83
{
 
84
        Q_OBJECT
 
85
public:
 
86
        PackThemeInfoWidget(PackThemeDialog * pParent);
 
87
        ~PackThemeInfoWidget();
 
88
public:
 
89
        QLineEdit * m_pPackageNameEdit;
 
90
        QTextEdit * m_pPackageDescriptionEdit;
 
91
        QLineEdit * m_pPackageVersionEdit;
 
92
        QLineEdit * m_pPackageAuthorEdit;
 
93
protected:
 
94
        virtual void initializePage();
 
95
};
 
96
 
 
97
class PackThemeImageWidget : public QWizardPage
 
98
{
 
99
        Q_OBJECT
 
100
public:
 
101
        PackThemeImageWidget(PackThemeDialog * pParent);
 
102
        ~PackThemeImageWidget();
 
103
protected:
 
104
        KviFileSelector * m_pImageSelector;
 
105
        QLabel          * m_pImageLabel;
 
106
        QString           m_szImagePath;
 
107
protected slots:
 
108
        void imageSelectionChanged(const QString & szImagePath);
 
109
};
 
110
 
 
111
class PackThemeSaveWidget : public QWizardPage
 
112
{
 
113
        Q_OBJECT
 
114
public:
 
115
        PackThemeSaveWidget(PackThemeDialog * pParent);
 
116
        ~PackThemeSaveWidget();
 
117
protected:
 
118
        KviFileSelector * m_pSavePathSelector;
 
119
        QString           m_szPackagePath;
 
120
protected:
 
121
        virtual void initializePage();
 
122
};
 
123
 
 
124
#endif //!_PACKTHEMEDIALOG_H_