KVIrc 5.2.0
Developer APIs
ThemeManagementDialog.h
Go to the documentation of this file.
1#ifndef _MANAGEMENTDIALOG_H_
2#define _MANAGEMENTDIALOG_H_
3//=============================================================================
4//
5// File : ThemeManagementDialog.h
6// Creation date : Sat 30 Dec 2006 14:54:56 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC Client distribution
9// Copyright (C) 2006-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 "KviOptionsWidget.h"
28#include "KviPointerList.h"
29#include "KviTheme.h"
30#include "KviTalWizard.h"
31#include "KviTalListWidget.h"
32
33#include <QWidget>
34#include <QComboBox>
35#include <QCursor>
36#include <QListWidget>
37#include <QItemDelegate>
38#include <QToolButton>
39#include <QMenu>
40#include "kvi_settings.h"
41
43
44class QLineEdit;
45class QPushButton;
46class QLabel;
48
50{
51public:
54
55public:
57
58public:
60};
61
62class ThemeManagementDialog : public QWidget
63{
64 Q_OBJECT
65public:
66 ThemeManagementDialog(QWidget * parent);
68
69protected:
75 QToolButton * m_pDeleteThemeButton;
76 QToolButton * m_pPackThemeButton;
78public:
80 static void display(bool bTopLevel);
81 static void cleanup();
82
83protected:
84 void fillThemeBox(bool bBuiltin);
85 void closeEvent(QCloseEvent * e) override;
86protected slots:
87 void saveCurrentTheme();
88 void getMoreThemes();
89 void installFromFile();
90 void fillThemeBox();
91 void deleteTheme();
92 void closeClicked();
93 void packTheme();
94 void applyTheme(QListWidgetItem *);
95 void applyCurrentTheme();
97 void contextMenuRequested(const QPoint & pos);
98 //void tipRequest(KviDynamicToolTip *pTip,const QPoint &pnt);
99 void tipRequest(QListWidgetItem * pItem, const QPoint & pnt);
101};
102
103#endif
C++ Template based double linked pointer list class.
Definition KviDynamicToolTip.h:50
Toolkit Abstraction Layer: itemdelegate class.
Definition KviTalIconAndRichTextItemDelegate.h:54
Definition KviTalListWidget.h:51
Definition KviTalListWidget.h:35
A set of information about a KVIrc theme.
Definition KviTheme.h:58
Definition ThemeManagementDialog.h:50
KviThemeInfo * themeInfo()
Definition ThemeManagementDialog.h:59
KviThemeInfo * m_pThemeInfo
Definition ThemeManagementDialog.h:56
~ThemeListWidgetItem()
Definition ThemeManagementDialog.cpp:102
Definition ThemeManagementDialog.h:63
WebThemeInterfaceDialog * m_pWebThemeInterfaceDialog
Definition ThemeManagementDialog.h:77
static void cleanup()
Definition ThemeManagementDialog.cpp:287
KviTalListWidget * m_pListWidget
Definition ThemeManagementDialog.h:72
void applyCurrentTheme()
Definition ThemeManagementDialog.cpp:337
void closeClicked()
Definition ThemeManagementDialog.cpp:246
QMenu * m_pContextPopup
Definition ThemeManagementDialog.h:74
void webThemeInterfaceDialogDestroyed()
Definition ThemeManagementDialog.cpp:426
void fillThemeBox()
Definition ThemeManagementDialog.cpp:465
void saveCurrentTheme()
Definition ThemeManagementDialog.cpp:432
void contextMenuRequested(const QPoint &pos)
Definition ThemeManagementDialog.cpp:310
void installFromFile()
Definition ThemeManagementDialog.cpp:388
~ThemeManagementDialog()
Definition ThemeManagementDialog.cpp:233
KviTalIconAndRichTextItemDelegate * m_pItemDelegate
Definition ThemeManagementDialog.h:71
void deleteTheme()
Definition ThemeManagementDialog.cpp:363
void closeEvent(QCloseEvent *e) override
Definition ThemeManagementDialog.cpp:497
void applyTheme(QListWidgetItem *)
Definition ThemeManagementDialog.cpp:330
void packTheme()
Definition ThemeManagementDialog.cpp:295
static void display(bool bTopLevel)
Definition ThemeManagementDialog.cpp:252
QLabel * m_pCurrentInstalledThemeLabel
Definition ThemeManagementDialog.h:73
QToolButton * m_pDeleteThemeButton
Definition ThemeManagementDialog.h:75
static ThemeManagementDialog * m_pInstance
Definition ThemeManagementDialog.h:70
QToolButton * m_pPackThemeButton
Definition ThemeManagementDialog.h:76
void getMoreThemes()
Definition ThemeManagementDialog.cpp:412
void enableDisableButtons()
Definition ThemeManagementDialog.cpp:475
static ThemeManagementDialog * instance()
Definition ThemeManagementDialog.h:79
void tipRequest(QListWidgetItem *pItem, const QPoint &pnt)
Definition ThemeManagementDialog.cpp:503
Definition WebThemeInterfaceDialog.h:32
#define e
Definition detector.cpp:70
This file contains compile time settings.