KVIrc
4.9.2
DeveloperAPIs
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
= 0);
52
~
KviToolBarGraphicalApplet
();
53
54
private
:
55
bool
m_bResizeMode
;
56
57
public
:
58
virtual
QSize sizeHint()
const
;
59
60
protected
:
61
virtual
void
mouseMoveEvent(QMouseEvent *
e
);
62
virtual
void
mousePressEvent(QMouseEvent *
e
);
63
virtual
void
mouseReleaseEvent(QMouseEvent *
e
);
64
65
virtual
void
paintEvent(QPaintEvent *
e
);
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
= 0);
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_
KviDynamicToolTip
Definition:
KviDynamicToolTip.h:49
KVIRC_API
#define KVIRC_API
Definition:
kvi_settings.h:128
KviToolBarGraphicalApplet
Definition:
KviIrcToolBar.h:47
KviToolBarGraphicalApplet::m_bResizeMode
bool m_bResizeMode
Definition:
KviIrcToolBar.h:55
KviConsoleWindow.h
e
#define e
Definition:
detector.cpp:69
KviToolBarGraphicalApplet::drawContents
virtual void drawContents(QPainter *p)
Definition:
KviIrcToolBar.cpp:184
KviToolBar.h
KviIrcContextDisplay
Definition:
KviIrcToolBar.h:71
KviPointerList.h
C++ Template based double linked pointer list class.
KviCString.h
KviRuntimeInfo::name
QString name()
Definition:
KviRuntimeInfo.cpp:655
kvi_settings.h
This file contains compile time settings.
p
#define p
Definition:
detector.cpp:80
Generated on Mon May 16 2016 22:48:43 for KVIrc by
1.8.7