KVIrc  4.9.2
DeveloperAPIs
KvsObject_painter.h
Go to the documentation of this file.
1 #ifndef _CLASS_PAINTER_H_
2 #define _CLASS_PAINTER_H_
3 //=============================================================================
4 //
5 // File : KvsObject_painter.h
6 // Creation date : Fri Mar 18 14:30:48 CEST 2005
7 // by Tonino Imbesi(Grifisx) and Alessandro Carbone(Noldor)
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2005-2008 Alessandro Carbone (elfonol at gmail dot com)
11 //
12 // This program is FREE software. You can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the HOPE that it will be USEFUL,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 // See the GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program. If not, write to the Free Software Foundation,
24 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 //
26 //=============================================================================
27 
28 #include "object_macros.h"
29 #include <QPrinter>
30 
31 #include <QPainter>
32 #include <QPaintDevice>
33 #include "KviCString.h"
34 #include <QPainterPath>
35 
37 {
38  Q_OBJECT
39 public:
41 protected:
42  QPrinter * m_pPrinter;
44  QPainter * m_pPainter;
45  QLinearGradient * m_pGradient;
46  QPainterPath * m_pPainterPath;
47 
48 public:
49  void setInternalPainter(QPainter * p);
52 
61 
71 
74 
79 
88 
89  // QT4
99 
113 
119 
120 protected:
121  void attachDevice(KviKvsObject * o, QPaintDevice * p);
122 protected slots:
123  void detachDevice();
124 
125 private:
127 };
128 #endif // !_CLASS_PAINTER_H_
bool end(KviKvsObjectFunctionCall *c)
bool setGradientColor(KviKvsObjectFunctionCall *c)
bool setPenWidth(KviKvsObjectFunctionCall *c)
QLinearGradient * m_pGradient
Definition: KvsObject_painter.h:45
bool fontAscent(KviKvsObjectFunctionCall *c)
bool drawPixmapWithColorEffect(KviKvsObjectFunctionCall *c)
void setInternalPainter(QPainter *p)
Definition: KvsObject_painter.cpp:2157
bool translate(KviKvsObjectFunctionCall *c)
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
bool fontMetricsHeight(KviKvsObjectFunctionCall *c)
bool setBackGroundMode(KviKvsObjectFunctionCall *c)
bool drawHtmlText(KviKvsObjectFunctionCall *c)
bool fontMetricsWidth(KviKvsObjectFunctionCall *c)
bool drawRoundRect(KviKvsObjectFunctionCall *c)
QPainter * m_pPainter
Definition: KvsObject_painter.h:44
bool shear(KviKvsObjectFunctionCall *c)
KviKvsObject * m_pDeviceObject
Definition: KvsObject_painter.h:126
Definition: KviKvsObjectFunctionCall.h:33
bool setPenCapStyle(KviKvsObjectFunctionCall *c)
Definition: KviKvsObject.h:50
bool drawPixmap(KviKvsObjectFunctionCall *c)
bool bDonotdeleteinternalqpainter
Definition: KvsObject_painter.h:43
bool drawText(KviKvsObjectFunctionCall *c)
bool setOpacity(KviKvsObjectFunctionCall *c)
bool setFont(KviKvsObjectFunctionCall *c)
bool drawEllipse(KviKvsObjectFunctionCall *c)
bool setPenStyle(KviKvsObjectFunctionCall *c)
bool setGradientStart(KviKvsObjectFunctionCall *c)
bool setPenJoinStyle(KviKvsObjectFunctionCall *c)
bool setCompositionMode(KviKvsObjectFunctionCall *c)
void attachDevice(KviKvsObject *o, QPaintDevice *p)
Definition: KvsObject_painter.cpp:1248
bool drawPixmapMirrored(KviKvsObjectFunctionCall *c)
bool begin(KviKvsObjectFunctionCall *c)
bool restore(KviKvsObjectFunctionCall *c)
bool setSmoothPixmapTransform(KviKvsObjectFunctionCall *c)
bool setBrushStyle(KviKvsObjectFunctionCall *c)
bool clearGradient(KviKvsObjectFunctionCall *c)
bool reset(KviKvsObjectFunctionCall *c)
#define KVSO_DECLARE_OBJECT(__className)
Definition: object_macros.h:33
bool beginPdf(KviKvsObjectFunctionCall *c)
QPrinter * m_pPrinter
Definition: KvsObject_painter.h:42
bool painterDeviceHeight(KviKvsObjectFunctionCall *c)
bool setFontSize(KviKvsObjectFunctionCall *c)
bool colorNames(KviKvsObjectFunctionCall *c)
bool setAntialiasing(KviKvsObjectFunctionCall *c)
Definition: KvsObject_painter.h:36
bool setPen(KviKvsObjectFunctionCall *c)
bool drawWinFocusRect(KviKvsObjectFunctionCall *c)
bool pathAddText(KviKvsObjectFunctionCall *c)
#define o
Definition: detector.cpp:79
bool drawRect(KviKvsObjectFunctionCall *c)
bool drawPath(KviKvsObjectFunctionCall *c)
bool fillRect(KviKvsObjectFunctionCall *c)
QPainterPath * m_pPainterPath
Definition: KvsObject_painter.h:46
bool painterDeviceWidth(KviKvsObjectFunctionCall *c)
bool pathLineTo(KviKvsObjectFunctionCall *c)
bool setTextAntialiasing(KviKvsObjectFunctionCall *c)
bool drawArc(KviKvsObjectFunctionCall *c)
bool setGradientAsBrush(KviKvsObjectFunctionCall *c)
bool drawChord(KviKvsObjectFunctionCall *c)
bool drawLine(KviKvsObjectFunctionCall *c)
bool resetPath(KviKvsObjectFunctionCall *c)
void detachDevice()
Definition: KvsObject_painter.cpp:1260
bool htmlTextSize(KviKvsObjectFunctionCall *c)
bool setGradientStop(KviKvsObjectFunctionCall *c)
bool setBrush(KviKvsObjectFunctionCall *c)
#define p
Definition: detector.cpp:80
bool fontDescent(KviKvsObjectFunctionCall *c)
bool rotate(KviKvsObjectFunctionCall *c)
bool pathMoveTo(KviKvsObjectFunctionCall *c)
bool scale(KviKvsObjectFunctionCall *c)
bool drawIcon(KviKvsObjectFunctionCall *c)
bool drawPie(KviKvsObjectFunctionCall *c)
bool save(KviKvsObjectFunctionCall *c)
bool pen(KviKvsObjectFunctionCall *c)
bool drawPoint(KviKvsObjectFunctionCall *c)