KVIrc 5.2.0
Developer APIs
KviIrcToolBar.h
Go to the documentation of this file.
1#ifndef _KVI_IRCTOOLBAR_H_
2#define _KVI_IRCTOOLBAR_H_
3//=============================================================================
4//
5// File : KviIrcToolBar.h
6// Creation date : Thu Oct 29 2000 14:09:11 CEST by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 2000-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 "kvi_settings.h"
28
29#include "KviCString.h"
30#include "KviToolBar.h"
31#include "KviConsoleWindow.h"
32#include "KviPointerList.h"
33
34#include <QWidget>
35#include <QToolButton>
36#include <QLabel>
37
38class QMenu;
39
40//
41// Basic graphical applet
42//
43// Thinks about the "common" background (handles transparency stuff & co.)
44// Can be a child of any AppletContainer
45//
46
48{
49 Q_OBJECT
50public:
51 KviToolBarGraphicalApplet(QWidget * par, const char * name = nullptr);
53
54private:
56
57public:
58 QSize sizeHint() const override;
59
60protected:
61 void mouseMoveEvent(QMouseEvent * e) override;
62 void mousePressEvent(QMouseEvent * e) override;
63 void mouseReleaseEvent(QMouseEvent * e) override;
64
65 void paintEvent(QPaintEvent * e) override;
66 virtual void drawContents(QPainter * p);
67};
68
70
72{
73 Q_OBJECT
74public:
75 KviIrcContextDisplay(QWidget * par, const char * name = nullptr);
77
78protected:
79 virtual void drawContents(QPainter * p);
80protected slots:
81 void tipRequest(KviDynamicToolTip * tip, const QPoint &);
82};
83
84#endif //_KVI_IRCTOOLBAR_H_
C++ Template based double linked pointer list class.
Definition KviDynamicToolTip.h:50
Definition KviIrcToolBar.h:72
Definition KviIrcToolBar.h:48
bool m_bResizeMode
Definition KviIrcToolBar.h:55
#define e
Definition detector.cpp:70
#define p
Definition detector.cpp:81
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127