~ubuntu-branches/ubuntu/utopic/freecad/utopic-proposed

« back to all changes in this revision

Viewing changes to src/Tools/plugins/widget/plugin.cpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-07-22 20:15:18 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140722201518-szma903mba26tphe
Tags: 0.14.3702+dfsg-1
* [7fc727b] Imported Upstream version 0.14.3702
* [3edf0de] Refresh patches.
* [077b63a] Redirect unittest output into stdout. Fixes autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (c) 2006 Werner Mayer <werner.wm.mayer@gmx.de>              *
3
 
 *                                                                         *
4
 
 *   This file is part of the FreeCAD CAx development system.              *
5
 
 *                                                                         *
6
 
 *   This library is free software; you can redistribute it and/or         *
7
 
 *   modify it under the terms of the GNU Library General Public           *
8
 
 *   License as published by the Free Software Foundation; either          *
9
 
 *   version 2 of the License, or (at your option) any later version.      *
10
 
 *                                                                         *
11
 
 *   This library  is distributed in the hope that it will be useful,      *
12
 
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13
 
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14
 
 *   GNU Library General Public License for more details.                  *
15
 
 *                                                                         *
16
 
 *   You should have received a copy of the GNU Library General Public     *
17
 
 *   License along with this library; see the file COPYING.LIB. If not,    *
18
 
 *   write to the Free Software Foundation, Inc., 59 Temple Place,         *
19
 
 *   Suite 330, Boston, MA  02111-1307, USA                                *
20
 
 *                                                                         *
21
 
 ***************************************************************************/
22
 
 
23
 
 
24
 
#include <QtDesigner/QExtensionFactory>
25
 
#include <QtDesigner/QExtensionManager>
26
 
#include <QtDesigner/QDesignerFormEditorInterface>
27
 
#include <QtDesigner/QDesignerFormWindowInterface>
28
 
#include <QtDesigner/QDesignerContainerExtension>
29
 
#include <QtDesigner/QDesignerPropertySheetExtension>
30
 
 
31
 
#include <QIcon>
32
 
#include <QtGui>
33
 
#include <QtPlugin>
34
 
 
35
 
#include "customwidgets.h"
36
 
#include "plugin.h"
37
 
 
38
 
 
39
 
/* XPM */
40
 
static const char *urllabel_pixmap[]={
41
 
"22 22 3 1",
42
 
"# c #000000",
43
 
"x c #ffffff",
44
 
". c None",
45
 
"......................",
46
 
".......##.............",
47
 
"......#xx#............",
48
 
"......#xx#............",
49
 
"......#xx#............",
50
 
"......#xx#............",
51
 
"......#xx###..........",
52
 
"......#xx#xx###.......",
53
 
"......#xx#xx#xx##.....",
54
 
"...##.#xx#xx#xx#x#....",
55
 
"..#xx##xx#xx#xx#x#....",
56
 
"..#xxx#xxxxxxxxxx#....",
57
 
"...#xxxxxxxxxxxxx#....",
58
 
"....#xxxxxxxxxxxx#....",
59
 
"....#xxxxxxxxxxxx#....",
60
 
".....#xxxxxxxxxx#.....",
61
 
".....#xxxxxxxxxx#.....",
62
 
"......#xxxxxxxx#......",
63
 
"......#xxxxxxxx#......",
64
 
"......##########......",
65
 
"......##########......",
66
 
"......##########......"};
67
 
 
68
 
class UrlLabelPlugin : public QDesignerCustomWidgetInterface
69
 
{
70
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
71
 
public:
72
 
    UrlLabelPlugin()
73
 
    {
74
 
    }
75
 
    QWidget *createWidget(QWidget *parent)
76
 
    {
77
 
        return new Gui::UrlLabel(parent);
78
 
    }
79
 
    QString group() const
80
 
    {
81
 
        return QLatin1String("Display Widgets");
82
 
    }
83
 
    QIcon icon() const
84
 
    {
85
 
        return QIcon( QPixmap( urllabel_pixmap ) );
86
 
    }
87
 
    QString includeFile() const
88
 
    {
89
 
        return QLatin1String("Gui/Widgets.h");
90
 
    }
91
 
    QString toolTip() const
92
 
    {
93
 
        return QLatin1String("Url label");
94
 
    }
95
 
    QString whatsThis() const
96
 
    {
97
 
        return QLatin1String("A widget to display a url in a text label.");
98
 
    }
99
 
    bool isContainer() const
100
 
    {
101
 
        return false;
102
 
    }
103
 
//    QString codeTemplate() const;
104
 
    QString domXml() const
105
 
    {
106
 
        return "<ui language=\"c++\">\n"
107
 
               " <widget class=\"Gui::UrlLabel\" name=\"urlLabel\">\n"
108
 
               " </widget>\n"
109
 
               "</ui>";
110
 
    }
111
 
    QString name() const
112
 
    {
113
 
        return QLatin1String("Gui::UrlLabel");
114
 
    }
115
 
};
116
 
 
117
 
class LocationWidgetPlugin : public QDesignerCustomWidgetInterface
118
 
{
119
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
120
 
public:
121
 
    LocationWidgetPlugin()
122
 
    {
123
 
    }
124
 
    QWidget *createWidget(QWidget *parent)
125
 
    {
126
 
        return new Gui::LocationWidget(parent);
127
 
    }
128
 
    QString group() const
129
 
    {
130
 
        return QLatin1String("Display Widgets");
131
 
    }
132
 
    QIcon icon() const
133
 
    {
134
 
        return QIcon( QPixmap( urllabel_pixmap ) );
135
 
    }
136
 
    QString includeFile() const
137
 
    {
138
 
        return QLatin1String("Gui/InputVector.h");
139
 
    }
140
 
    QString toolTip() const
141
 
    {
142
 
        return QLatin1String("Location");
143
 
    }
144
 
    QString whatsThis() const
145
 
    {
146
 
        return QLatin1String("A widget to define a location.");
147
 
    }
148
 
    bool isContainer() const
149
 
    {
150
 
        return false;
151
 
    }
152
 
    QString domXml() const
153
 
    {
154
 
        return "<ui language=\"c++\">\n"
155
 
               " <widget class=\"Gui::LocationWidget\" name=\"locationWidget\">\n"
156
 
               " </widget>\n"
157
 
               "</ui>";
158
 
    }
159
 
    QString name() const
160
 
    {
161
 
        return QLatin1String("Gui::LocationWidget");
162
 
    }
163
 
};
164
 
 
165
 
static const char *filechooser_pixmap[] = {
166
 
    "22 22 8 1",
167
 
    "  c Gray100",
168
 
    ". c Gray97",
169
 
    "X c #4f504f",
170
 
    "o c #00007f",
171
 
    "O c Gray0",
172
 
    "+ c none",
173
 
    "@ c Gray0",
174
 
    "# c Gray0",
175
 
    "++++++++++++++++++++++",
176
 
    "++++++++++++++++++++++",
177
 
    "++++++++++++++++++++++",
178
 
    "++++++++++++++++++++++",
179
 
    "+OOOOOOOOOOOOOOOOOOOO+",
180
 
    "OOXXXXXXXXXXXXXXXXXXOO",
181
 
    "OXX.          OO OO  O",
182
 
    "OX.      oo     O    O",
183
 
    "OX.      oo     O   .O",
184
 
    "OX  ooo  oooo   O    O",
185
 
    "OX    oo oo oo  O    O",
186
 
    "OX  oooo oo oo  O    O",
187
 
    "OX oo oo oo oo  O    O",
188
 
    "OX oo oo oo oo  O    O",
189
 
    "OX  oooo oooo   O    O",
190
 
    "OX            OO OO  O",
191
 
    "OO..................OO",
192
 
    "+OOOOOOOOOOOOOOOOOOOO+",
193
 
    "++++++++++++++++++++++",
194
 
    "++++++++++++++++++++++",
195
 
    "++++++++++++++++++++++",
196
 
    "++++++++++++++++++++++"
197
 
};
198
 
 
199
 
class FileChooserPlugin : public QDesignerCustomWidgetInterface
200
 
{
201
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
202
 
public:
203
 
    FileChooserPlugin()
204
 
    {
205
 
    }
206
 
    QWidget *createWidget(QWidget *parent)
207
 
    {
208
 
        return new Gui::FileChooser(parent);
209
 
    }
210
 
    QString group() const
211
 
    {
212
 
        return QLatin1String("Input Widgets");
213
 
    }
214
 
    QIcon icon() const
215
 
    {
216
 
        return QIcon( QPixmap( filechooser_pixmap ) );
217
 
    }
218
 
    QString includeFile() const
219
 
    {
220
 
        return QLatin1String("Gui/FileDialog.h");
221
 
    }
222
 
    QString toolTip() const
223
 
    {
224
 
        return QLatin1String("File Chooser");
225
 
    }
226
 
    QString whatsThis() const
227
 
    {
228
 
        return QLatin1String("A widget to choose a file or directory.");
229
 
    }
230
 
    bool isContainer() const
231
 
    {
232
 
        return false;
233
 
    }
234
 
//    QString codeTemplate() const;
235
 
    QString domXml() const
236
 
    {
237
 
        return "<ui language=\"c++\">\n"
238
 
               " <widget class=\"Gui::FileChooser\" name=\"fileChooser\">\n"
239
 
               " </widget>\n"
240
 
               "</ui>";
241
 
    }
242
 
    QString name() const
243
 
    {
244
 
        return QLatin1String("Gui::FileChooser");
245
 
    }
246
 
};
247
 
 
248
 
class PrefFileChooserPlugin : public QDesignerCustomWidgetInterface
249
 
{
250
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
251
 
public:
252
 
    PrefFileChooserPlugin()
253
 
    {
254
 
    }
255
 
    QWidget *createWidget(QWidget *parent)
256
 
    {
257
 
        return new Gui::PrefFileChooser(parent);
258
 
    }
259
 
    QString group() const
260
 
    {
261
 
        return QLatin1String("Preference Widgets");
262
 
    }
263
 
    QIcon icon() const
264
 
    {
265
 
        return QIcon( QPixmap( filechooser_pixmap ) );
266
 
    }
267
 
    QString includeFile() const
268
 
    {
269
 
        return QLatin1String("Gui/PrefWidgets.h");
270
 
    }
271
 
    QString toolTip() const
272
 
    {
273
 
        return QLatin1String("File Chooser");
274
 
    }
275
 
    QString whatsThis() const
276
 
    {
277
 
        return QLatin1String("A widget to choose a file or directory.");
278
 
    }
279
 
    bool isContainer() const
280
 
    {
281
 
        return false;
282
 
    }
283
 
    QString domXml() const
284
 
    {
285
 
        return "<ui language=\"c++\">\n"
286
 
               " <widget class=\"Gui::PrefFileChooser\" name=\"fileChooser\">\n"
287
 
               " </widget>\n"
288
 
               "</ui>";
289
 
    }
290
 
    QString name() const
291
 
    {
292
 
        return QLatin1String("Gui::PrefFileChooser");
293
 
    }
294
 
};
295
 
 
296
 
/* XPM */
297
 
static const char *lineedit_pixmap[]={
298
 
"22 22 6 1",
299
 
"a c #000000",
300
 
"# c #000080",
301
 
"b c #008080",
302
 
"c c #808080",
303
 
"d c #c0c0c0",
304
 
". c #ffffff",
305
 
"......................",
306
 
"......................",
307
 
"......................",
308
 
"...#aaaaaaaaaaaaaa#...",
309
 
".baccccccccccccccccab.",
310
 
".acccddddddddddddddca.",
311
 
"#ccd................d#",
312
 
"acc.................da",
313
 
"acd.......d....ca.ac.a",
314
 
"acd......db......a...a",
315
 
"acd.dbbb.dbbbd...a...a",
316
 
"acd.ccdbddb.db...a...a",
317
 
"acd.dbbbddb..b...a...a",
318
 
"acd.bd.bddb..b...a...a",
319
 
"acd.bbbbddbbbc...a...a",
320
 
"acd..d.....dd..ca.acda",
321
 
"#cd.................d#",
322
 
".ac................da.",
323
 
".badd............dda#.",
324
 
"...#aaaaaaaaaaaaaa#...",
325
 
"......................",
326
 
"......................"};
327
 
 
328
 
class AccelLineEditPlugin : public QDesignerCustomWidgetInterface
329
 
{
330
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
331
 
public:
332
 
    AccelLineEditPlugin()
333
 
    {
334
 
    }
335
 
    QWidget *createWidget(QWidget *parent)
336
 
    {
337
 
        return new Gui::AccelLineEdit(parent);
338
 
    }
339
 
    QString group() const
340
 
    {
341
 
        return QLatin1String("Input Widgets");
342
 
    }
343
 
    QIcon icon() const
344
 
    {
345
 
        return QIcon( QPixmap( lineedit_pixmap ) );
346
 
    }
347
 
    QString includeFile() const
348
 
    {
349
 
        return QLatin1String("Gui/Widgets.h");
350
 
    }
351
 
    QString toolTip() const
352
 
    {
353
 
        return QLatin1String("Accelerator Line Edit");
354
 
    }
355
 
    QString whatsThis() const
356
 
    {
357
 
        return QLatin1String("A widget to specify accelerator keys.");
358
 
    }
359
 
    bool isContainer() const
360
 
    {
361
 
        return false;
362
 
    }
363
 
    QString domXml() const
364
 
    {
365
 
        return "<ui language=\"c++\">\n"
366
 
               " <widget class=\"Gui::AccelLineEdit\" name=\"accelEdit\">\n"
367
 
               " </widget>\n"
368
 
               "</ui>";
369
 
    }
370
 
    QString name() const
371
 
    {
372
 
        return QLatin1String("Gui::AccelLineEdit");
373
 
    }
374
 
};
375
 
 
376
 
/* XPM */
377
 
static const char *actionselector_pixmap[]={
378
 
"22 22 6 1",
379
 
"a c #000000",
380
 
"# c #000080",
381
 
"b c #008080",
382
 
"c c #808080",
383
 
"d c #c0c0c0",
384
 
". c #ffffff",
385
 
"......................",
386
 
"......................",
387
 
"......................",
388
 
"...#aaaaaaaaaaaaaa#...",
389
 
".baccccccccccccccccab.",
390
 
".acccddddddddddddddca.",
391
 
"#ccd................d#",
392
 
"acc.................da",
393
 
"acd.......d....ca.ac.a",
394
 
"acd......db......a...a",
395
 
"acd.dbbb.dbbbd...a...a",
396
 
"acd.ccdbddb.db...a...a",
397
 
"acd.dbbbddb..b...a...a",
398
 
"acd.bd.bddb..b...a...a",
399
 
"acd.bbbbddbbbc...a...a",
400
 
"acd..d.....dd..ca.acda",
401
 
"#cd.................d#",
402
 
".ac................da.",
403
 
".badd............dda#.",
404
 
"...#aaaaaaaaaaaaaa#...",
405
 
"......................",
406
 
"......................"};
407
 
 
408
 
class ActionSelectorPlugin : public QDesignerCustomWidgetInterface
409
 
{
410
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
411
 
public:
412
 
    ActionSelectorPlugin()
413
 
    {
414
 
    }
415
 
    QWidget *createWidget(QWidget *parent)
416
 
    {
417
 
        return new Gui::ActionSelector(parent);
418
 
    }
419
 
    QString group() const
420
 
    {
421
 
        return QLatin1String("Input Widgets");
422
 
    }
423
 
    QIcon icon() const
424
 
    {
425
 
        return QIcon( QPixmap( actionselector_pixmap ) );
426
 
    }
427
 
    QString includeFile() const
428
 
    {
429
 
        return QLatin1String("Gui/Widgets.h");
430
 
    }
431
 
    QString toolTip() const
432
 
    {
433
 
        return QLatin1String("Action Selector");
434
 
    }
435
 
    QString whatsThis() const
436
 
    {
437
 
        return QLatin1String("A widget to select actions.");
438
 
    }
439
 
    bool isContainer() const
440
 
    {
441
 
        return false;
442
 
    }
443
 
    QString domXml() const
444
 
    {
445
 
        return "<ui language=\"c++\">\n"
446
 
               " <widget class=\"Gui::ActionSelector\" name=\"actionSelector\">\n"
447
 
               " </widget>\n"
448
 
               "</ui>";
449
 
    }
450
 
    QString name() const
451
 
    {
452
 
        return QLatin1String("Gui::ActionSelector");
453
 
    }
454
 
};
455
 
 
456
 
/* XPM */
457
 
static const char *inputfield_pixmap[]={
458
 
"22 22 6 1",
459
 
"a c #000000",
460
 
"# c #000080",
461
 
"b c #008080",
462
 
"c c #808080",
463
 
"d c #c0c0c0",
464
 
". c #ffffff",
465
 
"......................",
466
 
"......................",
467
 
"......................",
468
 
"...#aaaaaaaaaaaaaa#...",
469
 
".baccccccccccccccccab.",
470
 
".acccddddddddddddddca.",
471
 
"#ccd................d#",
472
 
"acc.................da",
473
 
"acd.......d....ca.ac.a",
474
 
"acd......db......a...a",
475
 
"acd.dbbb.dbbbd...a...a",
476
 
"acd.ccdbddb.db...a...a",
477
 
"acd.dbbbddb..b...a...a",
478
 
"acd.bd.bddb..b...a...a",
479
 
"acd.bbbbddbbbc...a...a",
480
 
"acd..d.....dd..ca.acda",
481
 
"#cd.................d#",
482
 
".ac................da.",
483
 
".badd............dda#.",
484
 
"...#aaaaaaaaaaaaaa#...",
485
 
"......................",
486
 
"......................"};
487
 
 
488
 
class InputFieldPlugin : public QDesignerCustomWidgetInterface
489
 
{
490
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
491
 
public:
492
 
    InputFieldPlugin()
493
 
    {
494
 
    }
495
 
    QWidget *createWidget(QWidget *parent)
496
 
    {
497
 
        return new Gui::InputField(parent);
498
 
    }
499
 
    QString group() const
500
 
    {
501
 
        return QLatin1String("Input Widgets");
502
 
    }
503
 
    QIcon icon() const
504
 
    {
505
 
        return QIcon( QPixmap( inputfield_pixmap ) );
506
 
    }
507
 
    QString includeFile() const
508
 
    {
509
 
        return QLatin1String("Gui/InputField.h");
510
 
    }
511
 
    QString toolTip() const
512
 
    {
513
 
        return QLatin1String("Input Field");
514
 
    }
515
 
    QString whatsThis() const
516
 
    {
517
 
        return QLatin1String("A widget to work qith quantities.");
518
 
    }
519
 
    bool isContainer() const
520
 
    {
521
 
        return false;
522
 
    }
523
 
    QString domXml() const
524
 
    {
525
 
        return "<ui language=\"c++\">\n"
526
 
               " <widget class=\"Gui::InputField\" name=\"inputField\">\n"
527
 
               " </widget>\n"
528
 
               "</ui>";
529
 
    }
530
 
    QString name() const
531
 
    {
532
 
        return QLatin1String("Gui::InputField");
533
 
    }
534
 
};
535
 
 
536
 
/* XPM */
537
 
static const char *iconview_pixmap[]={
538
 
"22 22 10 1",
539
 
"# c #000000",
540
 
"h c #000080",
541
 
"f c #0000ff",
542
 
"d c #008000",
543
 
"e c #008080",
544
 
"a c #800000",
545
 
"b c #808080",
546
 
"c c #c0c0c0",
547
 
"g c #ff0000",
548
 
". c #ffffff",
549
 
"...################...",
550
 
".a#bbccccccccccccbb#a.",
551
 
".#bcc..............b#.",
552
 
"#bb......c.....c....c#",
553
 
"#bbbbc..cbbc...bbbc.c#",
554
 
"#cccdd....bdb..ccdd..#",
555
 
"#cbcb#c.cbcbd..bcb#c.#",
556
 
"#cbbb#b..bbb#..cbb#c.#",
557
 
"#c..c##...cb#c...c##.#",
558
 
"#c...................#",
559
 
"#ccbbc..c#bbc..cbbcc.#",
560
 
"#c...................#",
561
 
"#cbbbaa.cb..cc..c.bb.#",
562
 
"#cbccca.c#ccb..cecf#.#",
563
 
"#cbcgba..c#b...bfbfh.#",
564
 
"#cacbba..bb#c..bbhb#.#",
565
 
"#caaaaa.bc.bb..bb###.#",
566
 
"#b..................c#",
567
 
"#b.bbcc..cbbbb.cbbc.c#",
568
 
".#b................c#.",
569
 
".a#cc............cc##.",
570
 
"...################..."};
571
 
 
572
 
class CommandIconViewPlugin : public QDesignerCustomWidgetInterface
573
 
{
574
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
575
 
public:
576
 
    CommandIconViewPlugin()
577
 
    {
578
 
    }
579
 
    QWidget *createWidget(QWidget *parent)
580
 
    {
581
 
        return new Gui::CommandIconView(parent);
582
 
    }
583
 
    QString group() const
584
 
    {
585
 
        return QLatin1String("View Widgets");
586
 
    }
587
 
    QIcon icon() const
588
 
    {
589
 
        return QIcon( QPixmap( iconview_pixmap ) );
590
 
    }
591
 
    QString includeFile() const
592
 
    {
593
 
        return QLatin1String("Gui/Widgets.h");
594
 
    }
595
 
    QString toolTip() const
596
 
    {
597
 
        return QLatin1String("Command View");
598
 
    }
599
 
    QString whatsThis() const
600
 
    {
601
 
        return QLatin1String("Area with movable and labeled icons.");
602
 
    }
603
 
    bool isContainer() const
604
 
    {
605
 
        return false;
606
 
    }
607
 
    QString domXml() const
608
 
    {
609
 
        return "<ui language=\"c++\">\n"
610
 
               " <widget class=\"Gui::CommandIconView\" name=\"iconView\">\n"
611
 
               " </widget>\n"
612
 
               "</ui>";
613
 
    }
614
 
    QString name() const
615
 
    {
616
 
        return QLatin1String("Gui::CommandIconView");
617
 
    }
618
 
};
619
 
 
620
 
/* XPM */
621
 
static const char *spinbox_pixmap[]={
622
 
"22 22 6 1",
623
 
"a c #000000",
624
 
"# c #000080",
625
 
"b c #008080",
626
 
"c c #808080",
627
 
"d c #c0c0c0",
628
 
". c #ffffff",
629
 
"...#aaaaaaaaaaaaaa#...",
630
 
".baccccccccccccccccab.",
631
 
".acccddddddddddddddca.",
632
 
"#ccd................d#",
633
 
"acc.............dcd.da",
634
 
"acd.............dbd..a",
635
 
"acd............dcbbd.a",
636
 
"acd.d..dd..d...dbbbc.a",
637
 
"acddb.dbbdcbb.dbbb#bda",
638
 
"acd.b.d.cc..b.bb###bda",
639
 
"acd.b...bd.cb.dddccdda",
640
 
"acd.b...b..db...dddd.a",
641
 
"acd.b..cd...bdddccbbda",
642
 
"acd.b.dbbccdb.ccbbbbda",
643
 
"acddd.ddd.dd..dbbb#cda",
644
 
"acd............bb##cda",
645
 
"acd............db#cd.a",
646
 
"acd.............bbcdda",
647
 
"#cd.............ddd.d#",
648
 
".ac................da.",
649
 
".badd............dda#.",
650
 
"...#aaaaaaaaaaaaaa#..."};
651
 
 
652
 
class UIntSpinBoxPlugin : public QDesignerCustomWidgetInterface
653
 
{
654
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
655
 
public:
656
 
    UIntSpinBoxPlugin()
657
 
    {
658
 
    }
659
 
    QWidget *createWidget(QWidget *parent)
660
 
    {
661
 
        return new Gui::UIntSpinBox(parent);
662
 
    }
663
 
    QString group() const
664
 
    {
665
 
        return QLatin1String("Input Widgets");
666
 
    }
667
 
    QIcon icon() const
668
 
    {
669
 
        return QIcon( QPixmap( spinbox_pixmap ) );
670
 
    }
671
 
    QString includeFile() const
672
 
    {
673
 
        return QLatin1String("Gui/SpinBox.h");
674
 
    }
675
 
    QString toolTip() const
676
 
    {
677
 
        return QLatin1String("Unsigned Spin Box");
678
 
    }
679
 
    QString whatsThis() const
680
 
    {
681
 
        return QLatin1String("Spin box widget (spin button).");
682
 
    }
683
 
    bool isContainer() const
684
 
    {
685
 
        return false;
686
 
    }
687
 
    QString domXml() const
688
 
    {
689
 
        return "<ui language=\"c++\">\n"
690
 
               " <widget class=\"Gui::UIntSpinBox\" name=\"uintSpinBox\">\n"
691
 
               " </widget>\n"
692
 
               "</ui>";
693
 
    }
694
 
    QString name() const
695
 
    {
696
 
        return QLatin1String("Gui::UIntSpinBox");
697
 
    }
698
 
};
699
 
 
700
 
class PrefSpinBoxPlugin : public QDesignerCustomWidgetInterface
701
 
{
702
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
703
 
public:
704
 
    PrefSpinBoxPlugin()
705
 
    {
706
 
    }
707
 
    QWidget *createWidget(QWidget *parent)
708
 
    {
709
 
        return new Gui::PrefSpinBox(parent);
710
 
    }
711
 
    QString group() const
712
 
    {
713
 
        return QLatin1String("Preference Widgets");
714
 
    }
715
 
    QIcon icon() const
716
 
    {
717
 
        return QIcon( QPixmap( spinbox_pixmap ) );
718
 
    }
719
 
    QString includeFile() const
720
 
    {
721
 
        return QLatin1String("Gui/PrefWidgets.h");
722
 
    }
723
 
    QString toolTip() const
724
 
    {
725
 
        return QLatin1String("Spin Box");
726
 
    }
727
 
    QString whatsThis() const
728
 
    {
729
 
        return QLatin1String("Spin box widget (spin button).");
730
 
    }
731
 
    bool isContainer() const
732
 
    {
733
 
        return false;
734
 
    }
735
 
    QString domXml() const
736
 
    {
737
 
        return "<ui language=\"c++\">\n"
738
 
               " <widget class=\"Gui::PrefSpinBox\" name=\"spinBox\">\n"
739
 
               " </widget>\n"
740
 
               "</ui>";
741
 
    }
742
 
    QString name() const
743
 
    {
744
 
        return QLatin1String("Gui::PrefSpinBox");
745
 
    }
746
 
};
747
 
 
748
 
/* XPM */
749
 
static const char *colorbutton_pixmap[]={
750
 
"21 21 7 1",
751
 
"d c #000000",
752
 
"b c #000080",
753
 
"e c #0000ff",
754
 
"a c #008080",
755
 
"# c #808080",
756
 
"c c #c0c0c0",
757
 
". c #ffffff",
758
 
".....................",
759
 
".#abbbbbbbbbbbbbba#c.",
760
 
"c#c..............c##.",
761
 
"#c................ca.",
762
 
"#..................b.",
763
 
"#...ddddddddddd....b.",
764
 
"#...deeeeeeeeed....b.",
765
 
"#...deeeeeeeeed....b.",
766
 
"#...deeeeeeeeed....b.",
767
 
"#...deeeeeeeeed....b.",
768
 
"#...deeeeeeeeed....b.",
769
 
"#...deeeeeeeeed....b.",
770
 
"#...deeeeeeeeed....b.",
771
 
"#...deeeeeeeeed....b.",
772
 
"#...deeeeeeeeed....b.",
773
 
"#...ddddddddddd....b.",
774
 
"#..................b.",
775
 
"#.................cb.",
776
 
"#cccccccccccccccccca.",
777
 
"c#cccccccccccccccc##.",
778
 
".cccccccccccccccccc.."};
779
 
 
780
 
class ColorButtonPlugin : public QDesignerCustomWidgetInterface
781
 
{
782
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
783
 
public:
784
 
    ColorButtonPlugin()
785
 
    {
786
 
    }
787
 
    QWidget *createWidget(QWidget *parent)
788
 
    {
789
 
        return new Gui::ColorButton(parent);
790
 
    }
791
 
    QString group() const
792
 
    {
793
 
        return QLatin1String("Buttons");
794
 
    }
795
 
    QIcon icon() const
796
 
    {
797
 
        return QIcon( QPixmap( colorbutton_pixmap ) );
798
 
    }
799
 
    QString includeFile() const
800
 
    {
801
 
        return QLatin1String("Gui/Widgets.h");
802
 
    }
803
 
    QString toolTip() const
804
 
    {
805
 
        return QLatin1String("Color Button");
806
 
    }
807
 
    QString whatsThis() const
808
 
    {
809
 
        return QLatin1String("A button to choose a color.");
810
 
    }
811
 
    bool isContainer() const
812
 
    {
813
 
        return false;
814
 
    }
815
 
    QString domXml() const
816
 
    {
817
 
        return "<ui language=\"c++\">\n"
818
 
               " <widget class=\"Gui::ColorButton\" name=\"colorButton\">\n"
819
 
               " </widget>\n"
820
 
               "</ui>";
821
 
    }
822
 
    QString name() const
823
 
    {
824
 
        return QLatin1String("Gui::ColorButton");
825
 
    }
826
 
};
827
 
 
828
 
class PrefColorButtonPlugin : public QDesignerCustomWidgetInterface
829
 
{
830
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
831
 
public:
832
 
    PrefColorButtonPlugin()
833
 
    {
834
 
    }
835
 
    QWidget *createWidget(QWidget *parent)
836
 
    {
837
 
        return new Gui::PrefColorButton(parent);
838
 
    }
839
 
    QString group() const
840
 
    {
841
 
        return QLatin1String("Preference Widgets");
842
 
    }
843
 
    QIcon icon() const
844
 
    {
845
 
        return QIcon( QPixmap( colorbutton_pixmap ) );
846
 
    }
847
 
    QString includeFile() const
848
 
    {
849
 
        return QLatin1String("Gui/PrefWidgets.h");
850
 
    }
851
 
    QString toolTip() const
852
 
    {
853
 
        return QLatin1String("Color Button");
854
 
    }
855
 
    QString whatsThis() const
856
 
    {
857
 
        return QLatin1String("A button to choose a color.");
858
 
    }
859
 
    bool isContainer() const
860
 
    {
861
 
        return false;
862
 
    }
863
 
    QString domXml() const
864
 
    {
865
 
        return "<ui language=\"c++\">\n"
866
 
               " <widget class=\"Gui::PrefColorButton\" name=\"colorButton\">\n"
867
 
               " </widget>\n"
868
 
               "</ui>";
869
 
    }
870
 
    QString name() const
871
 
    {
872
 
        return QLatin1String("Gui::PrefColorButton");
873
 
    }
874
 
};
875
 
 
876
 
/* XPM */
877
 
static const char *slider_pixmap[]={
878
 
"22 22 5 1",
879
 
"b c #000000",
880
 
"c c #008080",
881
 
"# c #808080",
882
 
"a c #c0c0c0",
883
 
". c #ffffff",
884
 
"......................",
885
 
"......................",
886
 
"......................",
887
 
"......................",
888
 
"......................",
889
 
".........#............",
890
 
"........a##...........",
891
 
"........a##...........",
892
 
"........a##...........",
893
 
"..bbbb..a#bbbbbbbbbb..",
894
 
".bbbbb..a#bbbbbbbbbbc.",
895
 
".bb###..a#b########c#.",
896
 
".bbb##..a#b########aa.",
897
 
"..cc##..a#b########a..",
898
 
"........a##...........",
899
 
"........a##...........",
900
 
"........a##...........",
901
 
"......#####...........",
902
 
".......####...........",
903
 
"......................",
904
 
"......................",
905
 
"......................"};
906
 
 
907
 
class PrefSliderPlugin : public QDesignerCustomWidgetInterface
908
 
{
909
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
910
 
public:
911
 
    PrefSliderPlugin()
912
 
    {
913
 
    }
914
 
    QWidget *createWidget(QWidget *parent)
915
 
    {
916
 
        return new Gui::PrefSlider(parent);
917
 
    }
918
 
    QString group() const
919
 
    {
920
 
        return QLatin1String("Preference Widgets");
921
 
    }
922
 
    QIcon icon() const
923
 
    {
924
 
        return QIcon( QPixmap( slider_pixmap ) );
925
 
    }
926
 
    QString includeFile() const
927
 
    {
928
 
        return QLatin1String("Gui/PrefWidgets.h");
929
 
    }
930
 
    QString toolTip() const
931
 
    {
932
 
        return QLatin1String("Slider");
933
 
    }
934
 
    QString whatsThis() const
935
 
    {
936
 
        return QLatin1String("Vertical or horizontal slider.");
937
 
    }
938
 
    bool isContainer() const
939
 
    {
940
 
        return false;
941
 
    }
942
 
    QString domXml() const
943
 
    {
944
 
        return "<ui language=\"c++\">\n"
945
 
               " <widget class=\"Gui::PrefSlider\" name=\"slider\">\n"
946
 
               " </widget>\n"
947
 
               "</ui>";
948
 
    }
949
 
    QString name() const
950
 
    {
951
 
        return QLatin1String("Gui::PrefSlider");
952
 
    }
953
 
};
954
 
 
955
 
/* XPM */
956
 
static const char *radiobutton_pixmap[]={
957
 
"22 22 4 1",
958
 
"b c #000000",
959
 
"# c #808080",
960
 
"a c #c0c0c0",
961
 
". c #ffffff",
962
 
"......................",
963
 
"......................",
964
 
"......................",
965
 
"......................",
966
 
".......########.......",
967
 
"......#####aaa##......",
968
 
".....#b##a...aaa#.....",
969
 
"....###aa.aa....a#....",
970
 
"....###a.####a...a....",
971
 
"....##a.####bba..a....",
972
 
"....##.a###bbb#.......",
973
 
"....#a.a##bbbb#.......",
974
 
"....#a..bbbbbba.......",
975
 
"....#aa.abbbb#...a....",
976
 
"....##a..a##a....a....",
977
 
".....#a.........a.....",
978
 
"......#a.......a......",
979
 
".......#aa...aa.......",
980
 
"......................",
981
 
"......................",
982
 
"......................",
983
 
"......................"};
984
 
 
985
 
class PrefRadioButtonPlugin : public QDesignerCustomWidgetInterface
986
 
{
987
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
988
 
public:
989
 
    PrefRadioButtonPlugin()
990
 
    {
991
 
    }
992
 
    QWidget *createWidget(QWidget *parent)
993
 
    {
994
 
        return new Gui::PrefRadioButton(parent);
995
 
    }
996
 
    QString group() const
997
 
    {
998
 
        return QLatin1String("Preference Widgets");
999
 
    }
1000
 
    QIcon icon() const
1001
 
    {
1002
 
        return QIcon( QPixmap( radiobutton_pixmap ) );
1003
 
    }
1004
 
    QString includeFile() const
1005
 
    {
1006
 
        return QLatin1String("Gui/PrefWidgets.h");
1007
 
    }
1008
 
    QString toolTip() const
1009
 
    {
1010
 
        return QLatin1String("Radio Button");
1011
 
    }
1012
 
    QString whatsThis() const
1013
 
    {
1014
 
        return QLatin1String("Radio button with a text or pixmap label.");
1015
 
    }
1016
 
    bool isContainer() const
1017
 
    {
1018
 
        return false;
1019
 
    }
1020
 
    QString domXml() const
1021
 
    {
1022
 
        return "<ui language=\"c++\">\n"
1023
 
               " <widget class=\"Gui::PrefRadioButton\" name=\"radioButton\">\n"
1024
 
               " </widget>\n"
1025
 
               "</ui>";
1026
 
    }
1027
 
    QString name() const
1028
 
    {
1029
 
        return QLatin1String("Gui::PrefRadioButton");
1030
 
    }
1031
 
};
1032
 
 
1033
 
/* XPM */
1034
 
static const char *checkbox_pixmap[]={
1035
 
"22 22 4 1",
1036
 
"# c #000000",
1037
 
"a c #808080",
1038
 
"b c #c0c0c0",
1039
 
". c #ffffff",
1040
 
"......................",
1041
 
"......................",
1042
 
"......................",
1043
 
"......................",
1044
 
"....###########aaa....",
1045
 
"....##aaaaaaaaaabb....",
1046
 
"....#aabbbbbbbbbbb....",
1047
 
"....#abbbbbbbbaa......",
1048
 
"....#abbbbbbba#a......",
1049
 
"....#ababbbba##a......",
1050
 
"....#ab#abba###a......",
1051
 
"....#ab##aa###ab......",
1052
 
"....#ab######abb......",
1053
 
"....#abb####abbb......",
1054
 
"....#abbb##abbbb......",
1055
 
"....aabbbbabbbb.......",
1056
 
"....abb......b........",
1057
 
"....abb...............",
1058
 
"......................",
1059
 
"......................",
1060
 
"......................",
1061
 
"......................"};
1062
 
 
1063
 
class PrefCheckBoxPlugin : public QDesignerCustomWidgetInterface
1064
 
{
1065
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
1066
 
public:
1067
 
    PrefCheckBoxPlugin()
1068
 
    {
1069
 
    }
1070
 
    QWidget *createWidget(QWidget *parent)
1071
 
    {
1072
 
        return new Gui::PrefCheckBox(parent);
1073
 
    }
1074
 
    QString group() const
1075
 
    {
1076
 
        return QLatin1String("Preference Widgets");
1077
 
    }
1078
 
    QIcon icon() const
1079
 
    {
1080
 
        return QIcon( QPixmap( checkbox_pixmap ) );
1081
 
    }
1082
 
    QString includeFile() const
1083
 
    {
1084
 
        return QLatin1String("Gui/PrefWidgets.h");
1085
 
    }
1086
 
    QString toolTip() const
1087
 
    {
1088
 
        return QLatin1String("Check Box");
1089
 
    }
1090
 
    QString whatsThis() const
1091
 
    {
1092
 
        return QLatin1String("Checkbox with a text label.");
1093
 
    }
1094
 
    bool isContainer() const
1095
 
    {
1096
 
        return false;
1097
 
    }
1098
 
    QString domXml() const
1099
 
    {
1100
 
        return "<ui language=\"c++\">\n"
1101
 
               " <widget class=\"Gui::PrefCheckBox\" name=\"checkBox\">\n"
1102
 
               " </widget>\n"
1103
 
               "</ui>";
1104
 
    }
1105
 
    QString name() const
1106
 
    {
1107
 
        return QLatin1String("Gui::PrefCheckBox");
1108
 
    }
1109
 
};
1110
 
 
1111
 
/* XPM */
1112
 
static const char *combobox_pixmap[]={
1113
 
"22 22 8 1",
1114
 
"a c #000000",
1115
 
"# c #000080",
1116
 
"e c #008080",
1117
 
"f c #800000",
1118
 
"b c #808080",
1119
 
"c c #c0c0c0",
1120
 
"d c #ff0000",
1121
 
". c #ffffff",
1122
 
".#aaaaaaaaaaaaaaaaaa#.",
1123
 
"#bbccccccccccccccccdd#",
1124
 
"accee#########e.addfaa",
1125
 
"#c..............a.fa.#",
1126
 
"e#aaaaaaaaaaaaaaaaaa#e",
1127
 
"....#c...............#",
1128
 
"....ac...............a",
1129
 
"....ac.ccbbbbbbbbeb..a",
1130
 
"....ac.bbbeeeeeee##c.a",
1131
 
"....ac.bee########ac.a",
1132
 
"....ac..cccccccccccc.a",
1133
 
"....ac.ccccccccccbec.a",
1134
 
"....ac.cccccccccbbec.a",
1135
 
"....ac.bcbbbbbbbbbec.a",
1136
 
"....ac..cccccccccccc.a",
1137
 
"....ac.cbbeeeeeee#bc.a",
1138
 
"....ac.bee########ac.a",
1139
 
"....ab.b##aaaaaaaaacca",
1140
 
"....#bc.ccccccccccccc#",
1141
 
".....ab............ca.",
1142
 
".....eacc.........ca#.",
1143
 
".......#aaaaaaaaaa#..."};
1144
 
 
1145
 
class PrefComboBoxPlugin : public QDesignerCustomWidgetInterface
1146
 
{
1147
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
1148
 
public:
1149
 
    PrefComboBoxPlugin()
1150
 
    {
1151
 
    }
1152
 
    QWidget *createWidget(QWidget *parent)
1153
 
    {
1154
 
        return new Gui::PrefComboBox(parent);
1155
 
    }
1156
 
    QString group() const
1157
 
    {
1158
 
        return QLatin1String("Preference Widgets");
1159
 
    }
1160
 
    QIcon icon() const
1161
 
    {
1162
 
        return QIcon( QPixmap( combobox_pixmap ) );
1163
 
    }
1164
 
    QString includeFile() const
1165
 
    {
1166
 
        return QLatin1String("Gui/PrefWidgets.h");
1167
 
    }
1168
 
    QString toolTip() const
1169
 
    {
1170
 
        return QLatin1String("Combo Box");
1171
 
    }
1172
 
    QString whatsThis() const
1173
 
    {
1174
 
        return QLatin1String("Combined button and popup list.");
1175
 
    }
1176
 
    bool isContainer() const
1177
 
    {
1178
 
        return false;
1179
 
    }
1180
 
    QString domXml() const
1181
 
    {
1182
 
        return "<ui language=\"c++\">\n"
1183
 
               " <widget class=\"Gui::PrefComboBox\" name=\"comboBox\">\n"
1184
 
               " </widget>\n"
1185
 
               "</ui>";
1186
 
    }
1187
 
    QString name() const
1188
 
    {
1189
 
        return QLatin1String("Gui::PrefComboBox");
1190
 
    }
1191
 
};
1192
 
 
1193
 
class PrefLineEditPlugin : public QDesignerCustomWidgetInterface
1194
 
{
1195
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
1196
 
public:
1197
 
    PrefLineEditPlugin()
1198
 
    {
1199
 
    }
1200
 
    QWidget *createWidget(QWidget *parent)
1201
 
    {
1202
 
        return new Gui::PrefLineEdit(parent);
1203
 
    }
1204
 
    QString group() const
1205
 
    {
1206
 
        return QLatin1String("Preference Widgets");
1207
 
    }
1208
 
    QIcon icon() const
1209
 
    {
1210
 
        return QIcon( QPixmap( lineedit_pixmap ) );
1211
 
    }
1212
 
    QString includeFile() const
1213
 
    {
1214
 
        return QLatin1String("Gui/PrefWidgets.h");
1215
 
    }
1216
 
    QString toolTip() const
1217
 
    {
1218
 
        return QLatin1String("Line Edit");
1219
 
    }
1220
 
    QString whatsThis() const
1221
 
    {
1222
 
        return QLatin1String("One-line text editor.");
1223
 
    }
1224
 
    bool isContainer() const
1225
 
    {
1226
 
        return false;
1227
 
    }
1228
 
    QString domXml() const
1229
 
    {
1230
 
        return "<ui language=\"c++\">\n"
1231
 
               " <widget class=\"Gui::PrefLineEdit\" name=\"lineEdit\">\n"
1232
 
               " </widget>\n"
1233
 
               "</ui>";
1234
 
    }
1235
 
    QString name() const
1236
 
    {
1237
 
        return QLatin1String("Gui::PrefLineEdit");
1238
 
    }
1239
 
};
1240
 
 
1241
 
class PrefDoubleSpinBoxPlugin : public QDesignerCustomWidgetInterface
1242
 
{
1243
 
    Q_INTERFACES(QDesignerCustomWidgetInterface)
1244
 
public:
1245
 
    PrefDoubleSpinBoxPlugin()
1246
 
    {
1247
 
    }
1248
 
    QWidget *createWidget(QWidget *parent)
1249
 
    {
1250
 
        return new Gui::PrefDoubleSpinBox(parent);
1251
 
    }
1252
 
    QString group() const
1253
 
    {
1254
 
        return QLatin1String("Preference Widgets");
1255
 
    }
1256
 
    QIcon icon() const
1257
 
    {
1258
 
        return QIcon( QPixmap( spinbox_pixmap ) );
1259
 
    }
1260
 
    QString includeFile() const
1261
 
    {
1262
 
        return QLatin1String("Gui/PrefWidgets.h");
1263
 
    }
1264
 
    QString toolTip() const
1265
 
    {
1266
 
        return QLatin1String("Double Spin Box");
1267
 
    }
1268
 
    QString whatsThis() const
1269
 
    {
1270
 
        return QLatin1String("Spin box widget that can work with doubles.");
1271
 
    }
1272
 
    bool isContainer() const
1273
 
    {
1274
 
        return false;
1275
 
    }
1276
 
    QString domXml() const
1277
 
    {
1278
 
        return "<ui language=\"c++\">\n"
1279
 
               " <widget class=\"Gui::PrefDoubleSpinBox\" name=\"doubleSpinBox\">\n"
1280
 
               " </widget>\n"
1281
 
               "</ui>";
1282
 
    }
1283
 
    QString name() const
1284
 
    {
1285
 
        return QLatin1String("Gui::PrefDoubleSpinBox");
1286
 
    }
1287
 
};
1288
 
 
1289
 
/* XPM */
1290
 
/*
1291
 
static char *listbox_pixmap[]={
1292
 
"22 22 6 1",
1293
 
"# c #000000",
1294
 
"c c #800000",
1295
 
"d c #808000",
1296
 
"a c #808080",
1297
 
"b c #c0c0c0",
1298
 
". c #ffffff",
1299
 
".####################.",
1300
 
"#aabbbbbbbbbbbbb#abb.#",
1301
 
"#abcccccccccccdb#b#a.#",
1302
 
"#b..............#....#",
1303
 
"c####################c",
1304
 
"#b...............#...#",
1305
 
"#b...............#...#",
1306
 
"#b.###########a..#...#",
1307
 
"#b...............#.#.#",
1308
 
"#b.cccccccccccd..#.#.#",
1309
 
"#b...............#.#.#",
1310
 
"#b.cccccccccccd..#.#.#",
1311
 
"#b...............#.#.#",
1312
 
"#b.###########a..#.#.#",
1313
 
"#b...............#...#",
1314
 
"#b.###########a..#...#",
1315
 
"#b...............#...#",
1316
 
"#a.###########a..#..b#",
1317
 
"#a...............#..b#",
1318
 
".#a..............#.b#.",
1319
 
".c#bb............#b##.",
1320
 
"...################..."};
1321
 
*/
1322
 
CustomWidgetPlugin::CustomWidgetPlugin(QObject *parent)
1323
 
  : QObject(parent)
1324
 
{
1325
 
}
1326
 
 
1327
 
QList<QDesignerCustomWidgetInterface *> CustomWidgetPlugin::customWidgets () const
1328
 
{
1329
 
    QList<QDesignerCustomWidgetInterface *> cw;
1330
 
    cw.append(new UrlLabelPlugin);
1331
 
    cw.append(new LocationWidgetPlugin);
1332
 
    cw.append(new FileChooserPlugin);
1333
 
    cw.append(new AccelLineEditPlugin);
1334
 
    cw.append(new ActionSelectorPlugin);
1335
 
    cw.append(new InputFieldPlugin);
1336
 
    cw.append(new CommandIconViewPlugin);
1337
 
    cw.append(new UIntSpinBoxPlugin);
1338
 
    cw.append(new ColorButtonPlugin);
1339
 
    cw.append(new PrefFileChooserPlugin);
1340
 
    cw.append(new PrefSpinBoxPlugin);
1341
 
    cw.append(new PrefColorButtonPlugin);
1342
 
    cw.append(new PrefSliderPlugin);
1343
 
    cw.append(new PrefRadioButtonPlugin);
1344
 
    cw.append(new PrefCheckBoxPlugin);
1345
 
    cw.append(new PrefComboBoxPlugin);
1346
 
    cw.append(new PrefLineEditPlugin);
1347
 
    cw.append(new PrefDoubleSpinBoxPlugin);
1348
 
    return cw;
1349
 
}
1350
 
 
1351
 
//QString CustomWidgetPlugin::domXml() const
1352
 
//{
1353
 
//    return QLatin1String("<widget class=\"AnalogClock\" name=\"analogClock\">\n"
1354
 
//                         " <property name=\"geometry\">\n"
1355
 
//                         "  <rect>\n"
1356
 
//                         "   <x>0</x>\n"
1357
 
//                         "   <y>0</y>\n"
1358
 
//                         "   <width>100</width>\n"
1359
 
//                         "   <height>100</height>\n"
1360
 
//                         "  </rect>\n"
1361
 
//                         " </property>\n"
1362
 
//                         " <property name=\"toolTip\" >\n"
1363
 
//                         "  <string>The current time</string>\n"
1364
 
//                         " </property>\n"
1365
 
//                         " <property name=\"whatsThis\" >\n"
1366
 
//                         "  <string>The analog clock widget displays "
1367
 
//                         "the current time.</string>\n"
1368
 
//                         " </property>\n"
1369
 
//                         "</widget>\n");
1370
 
//}
1371
 
 
1372
 
Q_EXPORT_PLUGIN2(containerextension, CustomWidgetPlugin)