KVIrc 5.2.6
Developer APIs
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
32
33#include "kvi_settings.h"
34#include "KviTalListWidget.h"
35
36#include <QString>
37#include <QTabWidget>
38#include <QWidget>
39
40class KviAction;
42class QPixmap;
43
48class KVIRC_API KviActionDrawer final : public QTabWidget
49{
50 Q_OBJECT
51public:
57 KviActionDrawer(QWidget * pParent);
58
59public:
64 void fill();
65};
66
71class KVIRC_API KviActionDrawerPage final : public QWidget
72{
73 friend class KviActionDrawer;
74 Q_OBJECT
75private:
82 KviActionDrawerPage(QWidget * pParent, const QString & szDescription);
83
84private:
86
87private:
93 void add(KviAction * pAction);
94};
95
101{
103 Q_OBJECT
104private:
111
112private:
113 void resizeEvent(QResizeEvent * e) override;
114 void mousePressEvent(QMouseEvent * e) override;
115};
116
122{
123public:
131
132private:
133 QString m_szName;
134
135public:
136 const QString & name() const { return m_szName; }
137};
138
139#endif //_KVI_ACTIONDRAWER_H_
QString m_szName
Definition KviActionDrawer.h:133
KviActionDrawerPageListWidgetItem(KviTalListWidget *pList, KviAction *pAction)
Constructs an action drawer page list item object.
Definition KviActionDrawer.cpp:150
const QString & name() const
Definition KviActionDrawer.h:136
Definition KviActionDrawer.h:101
void mousePressEvent(QMouseEvent *e) override
Definition KviActionDrawer.cpp:116
KviActionDrawerPageListWidget(KviActionDrawerPage *pParent)
Constructs an action drawer page list object.
Definition KviActionDrawer.cpp:106
void resizeEvent(QResizeEvent *e) override
Definition KviActionDrawer.cpp:142
friend class KviActionDrawerPage
Definition KviActionDrawer.h:102
KviActionDrawerPageListWidget * m_pListWidget
Definition KviActionDrawer.h:85
KviActionDrawerPage(QWidget *pParent, const QString &szDescription)
Constructs an action drawer page object.
Definition KviActionDrawer.cpp:85
void add(KviAction *pAction)
Adds an action.
Definition KviActionDrawer.cpp:101
friend class KviActionDrawer
Definition KviActionDrawer.h:73
KviActionDrawer(QWidget *pParent)
Constructs an action drawer object.
Definition KviActionDrawer.cpp:42
void fill()
Fills in the drawer page.
Definition KviActionDrawer.cpp:47
Defines an action inside KVIrc.
Definition KviAction.h:105
KviTalListWidgetItem()
Definition KviTalListWidget.h:53
Definition KviTalListWidget.h:35
KviTalListWidget(QWidget *pParent, QString name, Qt::WindowType f=Qt::Widget)
Definition KviTalListWidget.cpp:33
#define e
Definition detector.cpp:70
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127