KVIrc  4.9.2
DeveloperAPIs
CodeTesterWindow.h
Go to the documentation of this file.
1 #ifndef _CODETESTER_H_
2 #define _CODETESTER_H_
3 //=============================================================================
4 //
5 // File : EventEditorWindow.h
6 // Creation date : Mon Dec 23 2002 20:24:55 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2002-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 "KviWindow.h"
28 #include "KviCString.h"
29 
30 #include <QLineEdit>
31 
32 class QPushButton;
33 class QLabel;
34 class KviScriptEditor;
35 
36 class CodeTesterWidget : public QWidget
37 {
38  Q_OBJECT
39 public:
40  CodeTesterWidget(QWidget * par);
42 
43 private:
45  QLineEdit * m_pParams;
46  QPushButton * m_pExecuteButton;
47  QLabel * m_pModeLabel;
48 private slots:
49  void execute();
50 };
51 
53 {
54  Q_OBJECT
55 public:
58 
59 protected:
61 
62 protected:
63  virtual QPixmap * myIconPtr();
64  virtual void fillCaptionBuffers();
65  virtual void resizeEvent(QResizeEvent * e);
66  virtual void getConfigGroupName(QString & szName);
67  virtual void saveProperties(KviConfigurationFile *);
68  virtual void loadProperties(KviConfigurationFile *);
69 };
70 
71 #endif //_CODETESTER_H_
virtual void loadProperties(KviConfigurationFile *)
Definition: CodeTesterWindow.cpp:119
void execute()
Definition: CodeTesterWindow.cpp:72
Definition: KviScriptEditor.h:43
Definition: KviConfigurationFile.h:48
QLineEdit * m_pParams
Definition: CodeTesterWindow.h:45
#define e
Definition: detector.cpp:69
CodeTesterWindow()
Definition: CodeTesterWindow.cpp:82
virtual void getConfigGroupName(QString &szName)
Definition: CodeTesterWindow.cpp:110
QLabel * m_pModeLabel
Definition: CodeTesterWindow.h:47
KviScriptEditor * m_pEditor
Definition: CodeTesterWindow.h:44
virtual void resizeEvent(QResizeEvent *e)
Definition: CodeTesterWindow.cpp:100
virtual void fillCaptionBuffers()
Definition: CodeTesterWindow.cpp:105
CodeTesterWidget * m_pTester
Definition: CodeTesterWindow.h:60
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Definition: CodeTesterWindow.h:52
virtual QPixmap * myIconPtr()
Definition: CodeTesterWindow.cpp:95
QPushButton * m_pExecuteButton
Definition: CodeTesterWindow.h:46
CodeTesterWidget(QWidget *par)
Definition: CodeTesterWindow.cpp:46
Contains the KviWindow class.
virtual void saveProperties(KviConfigurationFile *)
Definition: CodeTesterWindow.cpp:115
~CodeTesterWindow()
Definition: CodeTesterWindow.cpp:90
Definition: CodeTesterWindow.h:36
~CodeTesterWidget()
Definition: CodeTesterWindow.cpp:65