KVIrc  4.9.2
DeveloperAPIs
DccCanvasWindow.h
Go to the documentation of this file.
1 #ifndef _CANVAS_H_
2 #define _CANVAS_H_
3 //=============================================================================
4 //
5 // File : DccCanvasWindow.h
6 // Creation date : Sun Jul 29 07 2001 20:17:12 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2001-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 "DccBroker.h"
28 
29 #ifdef COMPILE_DCC_CANVAS
30 #include "DccDescriptor.h"
31 #include "DccWindow.h"
32 #include "DccThread.h"
33 
34 #include "KviWindow.h"
35 #include "KviCString.h"
36 #include "KviPointerList.h"
37 
38 class DccMarshal;
39 class DccCanvasWidget;
40 class QSplitter;
41 
42 class DccCanvasWindow : public DccWindow
43 {
44  Q_OBJECT
45 public:
46  DccCanvasWindow(DccDescriptor * dcc, const char * name);
47  ~DccCanvasWindow();
48 
49 protected:
50  // KviDccCanvasThread * m_pSlaveThread;
51  DccCanvasWidget * m_pCanvas;
52  // QSplitter * m_pTopSplitter;
53  QString m_szTarget;
54 
55 protected:
56  virtual const QString & target();
57  virtual void fillCaptionBuffers();
58  virtual void getBaseLogFileName(KviCString & buffer);
59  virtual QPixmap * myIconPtr();
60  virtual void resizeEvent(QResizeEvent * e);
61  virtual QSize sizeHint() const;
62  virtual bool event(QEvent * e);
63  virtual void ownMessage(const char * text, bool bUserFeedback = true);
64  virtual void ownAction(const char * text);
65 protected slots:
66  void handleMarshalError(int err);
67  void connected();
68 };
69 #endif
70 
71 #endif // _CANVAS_H_
Definition: KviCString.h:105
Definition: DccWindow.h:34
virtual const QString & target()
Definition: KviWindow.h:327
#define e
Definition: detector.cpp:69
Definition: DccMarshal.h:56
Definition: DccDescriptor.h:33
virtual QPixmap * myIconPtr()
Definition: KviWindow.cpp:619
virtual void ownMessage(const QString &, bool=true)
Definition: KviWindow.h:380
virtual void fillCaptionBuffers()
Definition: KviWindow.cpp:624
virtual void ownAction(const QString &)
Definition: KviWindow.h:381
C++ Template based double linked pointer list class.
QString name()
Definition: KviRuntimeInfo.cpp:655
Contains the KviWindow class.
virtual void getBaseLogFileName(QString &szBuffer)
Definition: KviWindow.cpp:557