GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
QGo4WidgetPlugin.cpp
Go to the documentation of this file.
1// $Id$
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 fuer 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
51 {
52 return "Go4 Custom Widgets";
53 }
54
56 {
57 return QIcon(":/go4logo2.png");
58 }
59
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
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 domXml() const
QString toolTip() const
bool isContainer() const
QGo4WidgetPlugin(QObject *parent=nullptr)
QWidget * createWidget(QWidget *parent)
QString name() const
QString group() const
void initialize(QDesignerFormEditorInterface *core)
QString whatsThis() const
QString includeFile() const
bool isInitialized() const