1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
// This implements the QScintilla plugin for Qt Designer.
#include <qwidgetplugin.h>
#include "../qt/qextscintilla.h"
static const char *qscintilla_pixmap[]={
"22 22 35 1",
"m c #000000",
"n c #000033",
"p c #003300",
"r c #003333",
"v c #330000",
"o c #330033",
"l c #333300",
"h c #333333",
"c c #333366",
"d c #336666",
"u c #336699",
"E c #3366cc",
"k c #663333",
"i c #663366",
"b c #666666",
"e c #666699",
"A c #6666cc",
"G c #669966",
"f c #669999",
"j c #6699cc",
"y c #6699ff",
"t c #996666",
"a c #999999",
"g c #9999cc",
"s c #9999ff",
"C c #99cc99",
"x c #99cccc",
"w c #99ccff",
"F c #cc99ff",
"q c #cccccc",
"# c #ccccff",
"B c #ccffcc",
"z c #ccffff",
"D c #ffffcc",
". c none",
"........#abcda........",
"......abefghdidcf.....",
".....cadhfaehjheck....",
"....leh.m.ncbehjddo...",
"...depn.hqhqhr#mccch..",
"..bb.hcaeh.hqersjhjcd.",
".tcm.uqn.hc.uvwxhuygha",
".feh.n.hb.hhzemcwhmuAm",
"Bgehghqqme.eo#wlnysbnj",
"awhdAzn.engjepswhmuyuj",
"bCh#m.de.jpqwbmcwemlcz",
"hcb#xh.nd#qrbswfehwzbm",
"bd#d.A#zor#qmgbzwgjgws",
"ajbcuqhqzchwwbemewchmr",
"Dcn#cwmhgwehgsxbmhEjAc",
".uanauFrhbgeahAAbcbuhh",
".bohdAegcccfbbebuucmhe",
"..briuauAediddeclchhh.",
"...hcbhjccdecbceccch..",
"....nhcmeccdccephcp...",
".....crbhchhhrhhck....",
"......tcmdhohhcnG....."
};
class QScintillaPlugin : public QWidgetPlugin
{
public:
QScintillaPlugin() {};
QStringList keys() const;
QWidget *create(const QString &classname, QWidget *parent = 0, const char *name = 0);
QString group(const QString &) const;
QIconSet iconSet(const QString &) const;
QString includeFile(const QString &) const;
QString toolTip(const QString &) const;
QString whatsThis(const QString &) const;
bool isContainer(const QString &) const;
};
QStringList QScintillaPlugin::keys() const
{
QStringList list;
list << "QextScintilla";
return list;
}
QWidget *QScintillaPlugin::create(const QString &key, QWidget *parent, const char *name)
{
if (key == "QextScintilla")
return new QextScintilla(parent, name);
return 0;
}
QString QScintillaPlugin::group(const QString &feature) const
{
if (feature == "QextScintilla")
return "Input";
return QString::null;
}
QIconSet QScintillaPlugin::iconSet(const QString &) const
{
return QIconSet(QPixmap(qscintilla_pixmap));
}
QString QScintillaPlugin::includeFile(const QString &feature) const
{
if (feature == "QextScintilla")
return "qextscintilla.h";
return QString::null;
}
QString QScintillaPlugin::toolTip(const QString &feature) const
{
if (feature == "QextScintilla")
return "QScintilla Programmer's Editor";
return QString::null;
}
QString QScintillaPlugin::whatsThis(const QString &feature) const
{
if (feature == "QextScintilla")
return "A port to Qt of the Scintilla programmer's editor";
return QString::null;
}
bool QScintillaPlugin::isContainer(const QString &) const
{
return FALSE;
}
Q_EXPORT_PLUGIN(QScintillaPlugin)
|