KVIrc  4.9.2
DeveloperAPIs
KviScriptEditor.h
Go to the documentation of this file.
1 #ifndef _KVI_SCRIPTEDITOR_H_
2 #define _KVI_SCRIPTEDITOR_H_
3 //=============================================================================
4 //
5 // File : KviScriptEditor.h
6 // Creation date : Sun Mar 28 1999 16:11:48 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 1999-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 <QWidget>
30 #include <QLineEdit>
31 #include <QByteArray>
32 
33 //
34 // This is the basic interface of a script editor widget
35 //
36 // Actually the REAL script editor is implemented in an
37 // external module called "libkvieditor", and it is a really
38 // huge class.
39 // The constructor of this thing is protected: forget
40 // about instantiating it directly
41 //
42 
43 class KVIRC_API KviScriptEditor : public QWidget
44 {
45  Q_OBJECT
46 protected:
47  KviScriptEditor(QWidget * par);
48  ~KviScriptEditor();
49 
50 protected:
51  QLineEdit * m_pFindLineedit;
52 
53 public:
54  virtual void setText(const char * txt);
55  virtual void setText(const QByteArray & txt);
56  virtual void setText(const QString & txt);
57  virtual void getText(QByteArray & txt);
58  virtual void getText(QString & txt);
59  virtual void setInfoText(const QString & text);
60  virtual void setFindText(const QString & text);
61  virtual void setCursorPosition(int);
62  virtual void setReadOnly(bool bReadonly);
63  virtual int getCursor();
64  virtual void setFindLineeditReadOnly(bool b);
65  virtual bool isModified();
66  virtual void setUnHighlightedText(const QString & szText);
67  virtual void setModified(bool){};
68  static KviScriptEditor * getDummyEditor(QWidget * par);
69  static KviScriptEditor * createInstance(QWidget * par);
70  static void destroyInstance(KviScriptEditor * e);
71 };
72 
73 #endif
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviScriptEditor.h:43
#define e
Definition: detector.cpp:69
QLineEdit * m_pFindLineedit
Definition: KviScriptEditor.h:51
This file contains compile time settings.
virtual void setModified(bool)
Definition: KviScriptEditor.h:67