KVIrc
5.2.4
Developer APIs
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 "
KviTalListWidget.h
"
35
36
#include <QString>
37
#include <QTabWidget>
38
#include <QWidget>
39
40
class
KviAction
;
41
class
KviActionDrawerPageListWidget
;
42
class
QPixmap;
43
48
class
KVIRC_API
KviActionDrawer
final :
public
QTabWidget
49
{
50
Q_OBJECT
51
public
:
57
KviActionDrawer
(QWidget * pParent);
58
59
public
:
64
void
fill();
65
};
66
71
class
KVIRC_API
KviActionDrawerPage
final :
public
QWidget
72
{
73
friend
class
KviActionDrawer
;
74
Q_OBJECT
75
private
:
82
KviActionDrawerPage
(QWidget * pParent,
const
QString & szDescription);
83
84
private
:
85
KviActionDrawerPageListWidget
*
m_pListWidget
;
86
87
private
:
93
void
add(
KviAction
* pAction);
94
};
95
100
class
KVIRC_API
KviActionDrawerPageListWidget
final :
public
KviTalListWidget
101
{
102
friend
class
KviActionDrawerPage
;
103
Q_OBJECT
104
private
:
110
KviActionDrawerPageListWidget
(
KviActionDrawerPage
* pParent);
111
112
private
:
113
void
resizeEvent(QResizeEvent *
e
)
override
;
114
void
mousePressEvent(QMouseEvent *
e
)
override
;
115
};
116
121
class
KVIRC_API
KviActionDrawerPageListWidgetItem
final :
public
KviTalListWidgetItem
122
{
123
public
:
130
KviActionDrawerPageListWidgetItem
(
KviTalListWidget
* pList,
KviAction
* pAction);
131
132
private
:
133
QString
m_szName
;
134
135
public
:
136
const
QString &
name
()
const
{
return
m_szName; }
137
};
138
139
#endif
//_KVI_ACTIONDRAWER_H_
KviTalListWidget.h
KviActionDrawerPageListWidgetItem
Definition
KviActionDrawer.h:122
KviActionDrawerPageListWidgetItem::m_szName
QString m_szName
Definition
KviActionDrawer.h:133
KviActionDrawerPageListWidgetItem::name
const QString & name() const
Definition
KviActionDrawer.h:136
KviActionDrawerPageListWidget
Definition
KviActionDrawer.h:101
KviActionDrawerPage
Definition
KviActionDrawer.h:72
KviActionDrawerPage::m_pListWidget
KviActionDrawerPageListWidget * m_pListWidget
Definition
KviActionDrawer.h:85
KviActionDrawer
Action drawer class.
Definition
KviActionDrawer.h:49
KviAction
Defines an action inside KVIrc.
Definition
KviAction.h:105
KviTalListWidgetItem
Definition
KviTalListWidget.h:51
KviTalListWidget
Definition
KviTalListWidget.h:35
e
#define e
Definition
detector.cpp:70
kvi_settings.h
This file contains compile time settings.
KVIRC_API
#define KVIRC_API
Definition
kvi_settings.h:127
Generated on Thu Aug 29 2024 11:04:01 for KVIrc by
1.9.8