KVIrc
5.2.4
Developer APIs
src
kvirc
ui
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
38
class
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
47
class
KVIRC_API
KviToolBarGraphicalApplet
:
public
QWidget
48
{
49
Q_OBJECT
50
public
:
51
KviToolBarGraphicalApplet
(QWidget * par,
const
char
* name =
nullptr
);
52
~KviToolBarGraphicalApplet
();
53
54
private
:
55
bool
m_bResizeMode
;
56
57
public
:
58
QSize sizeHint()
const override
;
59
60
protected
:
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
69
class
KviDynamicToolTip
;
70
71
class
KVIRC_API
KviIrcContextDisplay
:
public
KviToolBarGraphicalApplet
72
{
73
Q_OBJECT
74
public
:
75
KviIrcContextDisplay
(QWidget * par,
const
char
* name =
nullptr
);
76
~KviIrcContextDisplay
();
77
78
protected
:
79
virtual
void
drawContents(QPainter *
p
);
80
protected
slots:
81
void
tipRequest(
KviDynamicToolTip
* tip,
const
QPoint &);
82
};
83
84
#endif
//_KVI_IRCTOOLBAR_H_
KviCString.h
KviConsoleWindow.h
KviPointerList.h
C++ Template based double linked pointer list class.
KviToolBar.h
KviDynamicToolTip
Definition
KviDynamicToolTip.h:50
KviIrcContextDisplay
Definition
KviIrcToolBar.h:72
KviIrcContextDisplay::~KviIrcContextDisplay
~KviIrcContextDisplay()
KviToolBarGraphicalApplet
Definition
KviIrcToolBar.h:48
KviToolBarGraphicalApplet::m_bResizeMode
bool m_bResizeMode
Definition
KviIrcToolBar.h:55
e
#define e
Definition
detector.cpp:70
p
#define p
Definition
detector.cpp:81
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