KVIrc 5.2.4
Developer APIs
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
38class DccMarshal;
39class DccCanvasWidget;
40class QSplitter;
41
42class DccCanvasWindow : public DccWindow
43{
44 Q_OBJECT
45public:
46 DccCanvasWindow(DccDescriptor * dcc, const char * name);
47 ~DccCanvasWindow();
48
49protected:
50 // KviDccCanvasThread * m_pSlaveThread;
51 DccCanvasWidget * m_pCanvas;
52 // QSplitter * m_pTopSplitter;
53 QString m_szTarget;
54
55protected:
56 const QString & target() override;
57 void fillCaptionBuffers() override;
58 void getBaseLogFileName(KviCString & buffer) override;
59 QPixmap * myIconPtr() override;
60 void resizeEvent(QResizeEvent * e) override;
61 QSize sizeHint() const override;
62 bool event(QEvent * e) override;
63 void ownMessage(const QString & text, bool bUserFeedback = true) override;
64 void ownAction(const QString & text) override;
65protected slots:
66 void handleMarshalError(int err);
67 void connected();
68};
69#endif
70
71#endif // _CANVAS_H_
C++ Template based double linked pointer list class.
Contains the KviWindow class.
Definition DccDescriptor.h:34
Definition DccMarshal.h:57
Definition DccWindow.h:35
Definition KviCString.h:102
virtual QPixmap * myIconPtr()
Definition KviWindow.cpp:627
virtual void fillCaptionBuffers()
Definition KviWindow.cpp:632
virtual void ownAction(const QString &)
Definition KviWindow.h:391
virtual void ownMessage(const QString &, bool=true)
Definition KviWindow.h:390
virtual void getBaseLogFileName(QString &szBuffer)
Definition KviWindow.cpp:565
virtual const QString & target()
Definition KviWindow.h:336
#define e
Definition detector.cpp:70