KVIrc
4.9.2
DeveloperAPIs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
kvirc
ui
KviActionDrawer.h
Go to the documentation of this file.
1
#ifndef _KVI_ACTIONDRAWER_H_
2
#define _KVI_ACTIONDRAWER_H_
3
//=============================================================================
4
//
5
// File : KviActionDrawer.h
6
// Creation date : Sun 21 Nov 2004 05:44:22 by Szymon Stefanek
7
//
8
// This file is part of the KVIrc IRC Client distribution
9
// Copyright (C) 2004-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
33
#include "
kvi_settings.h
"
34
#include "
KviQString.h
"
35
#include "
KviTalListWidget.h
"
36
37
#include <QWidget>
38
#include <QTabWidget>
39
40
class
QPixmap;
41
class
KviAction
;
42
class
KviActionDrawerPageListWidget
;
43
48
class
KVIRC_API
KviActionDrawer
:
public
QTabWidget
49
{
50
Q_OBJECT
51
public
:
57
KviActionDrawer
(QWidget * pParent);
58
62
~
KviActionDrawer
();
63
64
public
:
69
void
fill();
70
};
71
76
class
KVIRC_API
KviActionDrawerPage
:
public
QWidget
77
{
78
friend
class
KviActionDrawer
;
79
Q_OBJECT
80
protected
:
87
KviActionDrawerPage
(QWidget * pParent,
const
QString & szDescription);
88
89
public
:
93
~
KviActionDrawerPage
();
94
95
protected
:
96
KviActionDrawerPageListWidget
*
m_pListWidget
;
97
98
protected
:
104
void
add(
KviAction
* pAction);
105
};
106
111
class
KVIRC_API
KviActionDrawerPageListWidget
:
public
KviTalListWidget
112
{
113
friend
class
KviActionDrawerPage
;
114
Q_OBJECT
115
protected
:
121
KviActionDrawerPageListWidget
(
KviActionDrawerPage
* pParent);
122
123
public
:
127
~
KviActionDrawerPageListWidget
();
128
129
protected
:
130
virtual
void
resizeEvent(QResizeEvent *
e
);
131
virtual
void
mousePressEvent(QMouseEvent *
e
);
132
};
133
138
class
KVIRC_API
KviActionDrawerPageListWidgetItem
:
public
KviTalListWidgetItem
139
{
140
public
:
147
KviActionDrawerPageListWidgetItem
(
KviTalListWidget
* pList,
KviAction
* pAction);
148
152
~
KviActionDrawerPageListWidgetItem
();
153
154
protected
:
155
QString
m_szName
;
156
QPixmap *
m_pIcon
;
157
KviTalListWidget
*
m_pListWidget
;
158
QString
m_szKey
;
159
160
public
:
161
QPixmap *
icon
() {
return
m_pIcon; };
162
const
QString &
name
() {
return
m_szName; };
163
/*
164
protected:
165
virtual void paintCell(QPainter * p,const QColorGroup & cg,int column,int width,int align);
166
virtual void setup();
167
virtual QString key(int,bool) const;
168
*/
169
};
170
171
#endif //_KVI_ACTIONDRAWER_H_
KviActionDrawerPageListWidgetItem::m_pIcon
QPixmap * m_pIcon
Definition:
KviActionDrawer.h:156
KviTalListWidget
Definition:
KviTalListWidget.h:35
KVIRC_API
#define KVIRC_API
Definition:
kvi_settings.h:128
KviActionDrawerPage::m_pListWidget
KviActionDrawerPageListWidget * m_pListWidget
Definition:
KviActionDrawer.h:96
KviActionDrawerPageListWidgetItem::name
const QString & name()
Definition:
KviActionDrawer.h:162
KviAction
Defines an action inside KVIrc.
Definition:
KviAction.h:100
KviActionDrawerPageListWidgetItem
Definition:
KviActionDrawer.h:138
KviActionDrawerPageListWidgetItem::m_pListWidget
KviTalListWidget * m_pListWidget
Definition:
KviActionDrawer.h:157
e
#define e
Definition:
detector.cpp:69
KviActionDrawerPageListWidgetItem::m_szKey
QString m_szKey
Definition:
KviActionDrawer.h:158
KviTalListWidget.h
KviActionDrawer
Action drawer class.
Definition:
KviActionDrawer.h:48
KviActionDrawerPageListWidgetItem::m_szName
QString m_szName
Definition:
KviActionDrawer.h:155
KviActionDrawerPage
Definition:
KviActionDrawer.h:76
KviTalListWidgetItem
Definition:
KviTalListWidget.h:51
KviActionDrawerPageListWidgetItem::icon
QPixmap * icon()
Definition:
KviActionDrawer.h:161
kvi_settings.h
This file contains compile time settings.
KviQString.h
Helper functions for the QString class.
KviActionDrawerPageListWidget
Definition:
KviActionDrawer.h:111
Generated on Mon May 16 2016 22:48:43 for KVIrc by
1.8.7