GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QFitWidgetPlugin.cpp
Go to the documentation of this file.
1 // $Id: QFitWidgetPlugin.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 "QFitWidget.h"
15 #include "QFitWidgetPlugin.h"
16 #include <QtPlugin>
17 
18 
20  : QObject(parent)
21  {
22  initialized = false;
23  }
24 
25  void QFitWidgetPlugin::initialize(QDesignerFormEditorInterface * /* core */)
26  {
27  if (initialized)
28  return;
29 
30  initialized = true;
31  }
32 
34  {
35  return initialized;
36  }
37 
38  QWidget *QFitWidgetPlugin::createWidget(QWidget *parent)
39  {
40  return new QFitWidget(parent);
41  }
42 
43  QString QFitWidgetPlugin::name() const
44  {
45  return "QFitWidget";
46  }
47 
48  QString QFitWidgetPlugin::group() const
49  {
50  return "Go4 Custom Widgets";
51  }
52 
53  QIcon QFitWidgetPlugin::icon() const
54  {
55  return QIcon(":/go4logo2.png");
56  }
57 
58  QString QFitWidgetPlugin::toolTip() const
59  {
60  return "Basic widget in Go4 Fit gui";
61  }
62 
64  {
65  return "Fit Widget, connected with items in expert mode";
66  }
67 
69  {
70  return true;
71  }
72 
73  QString QFitWidgetPlugin::domXml() const
74  {
75  return "<widget class=\"QFitWidget\" name=\"QFitWidget\">\n"
76  " <property name=\"geometry\">\n"
77  " <rect>\n"
78  " <x>0</x>\n"
79  " <y>0</y>\n"
80  " <width>100</width>\n"
81  " <height>100</height>\n"
82  " </rect>\n"
83  " </property>\n"
84  "</widget>\n";
85  }
86 
88  {
89  return "QFitWidget.h";
90  }
91 
92 
93 
QFitWidgetPlugin(QObject *parent=0)
QString group() const
void initialize(QDesignerFormEditorInterface *core)
bool isContainer() const
QString includeFile() const
QString toolTip() const
QWidget * createWidget(QWidget *parent)
bool isInitialized() const
QString domXml() const
QString whatsThis() const
QIcon icon() const
QString name() const