KVIrc  4.9.2
DeveloperAPIs
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);
53 
54 private:
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 
72 {
73  Q_OBJECT
74 public:
75  KviIrcContextDisplay(QWidget * par, const char * name = 0);
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_
Definition: KviDynamicToolTip.h:49
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviIrcToolBar.h:47
bool m_bResizeMode
Definition: KviIrcToolBar.h:55
#define e
Definition: detector.cpp:69
virtual void drawContents(QPainter *p)
Definition: KviIrcToolBar.cpp:184
Definition: KviIrcToolBar.h:71
C++ Template based double linked pointer list class.
QString name()
Definition: KviRuntimeInfo.cpp:655
This file contains compile time settings.
#define p
Definition: detector.cpp:80