GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QGo4WidgetPlugin.cpp
Go to the documentation of this file.
1 // $Id: QGo4WidgetPlugin.cpp 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "QGo4Widget.h"
15 #include "QGo4WidgetPlugin.h"
16 
17 #include <QtPlugin>
18 
19 
20 
22  : QObject(parent)
23  {
24  initialized = false;
25  }
26 
27  void QGo4WidgetPlugin::initialize(QDesignerFormEditorInterface * /* core */)
28  {
29  if (initialized)
30  return;
31 
32  initialized = true;
33  }
34 
36  {
37  return initialized;
38  }
39 
40  QWidget *QGo4WidgetPlugin::createWidget(QWidget *parent)
41  {
42  return new QGo4Widget(parent);
43  }
44 
45  QString QGo4WidgetPlugin::name() const
46  {
47  return "QGo4Widget";
48  }
49 
50  QString QGo4WidgetPlugin::group() const
51  {
52  return "Go4 Custom Widgets";
53  }
54 
55  QIcon QGo4WidgetPlugin::icon() const
56  {
57  return QIcon(":/go4logo2.png");
58  }
59 
60  QString QGo4WidgetPlugin::toolTip() const
61  {
62  return "Go4 Editor Widget";
63  }
64 
66  {
67  return "Basic widget to communicate with Go4 GUI enviroment";
68  }
69 
71  {
72  return true;
73  }
74 
75  QString QGo4WidgetPlugin::domXml() const
76  {
77  return "<widget class=\"QGo4Widget\" name=\"Go4Widget\">\n"
78  " <property name=\"geometry\">\n"
79  " <rect>\n"
80  " <x>0</x>\n"
81  " <y>0</y>\n"
82  " <width>100</width>\n"
83  " <height>100</height>\n"
84  " </rect>\n"
85  " </property>\n"
86  "</widget>\n";
87  }
88 
90  {
91  return "QGo4Widget.h";
92  }
93 
94 
95 
QString whatsThis() const
QString name() const
QString includeFile() const
QString toolTip() const
QWidget * createWidget(QWidget *parent)
void initialize(QDesignerFormEditorInterface *core)
QGo4WidgetPlugin(QObject *parent=0)
QIcon icon() const
bool isContainer() const
QString group() const
bool isInitialized() const
QString domXml() const