rock_widget_collection  0.1
SonarWidgetPlugin.cc
Go to the documentation of this file.
1 #include "SonarWidgetPlugin.h"
2 #include "SonarWidget.h"
3 
5  : QObject(parent)
6 {
7  initialized = false;
8 }
9 
11 {
12 }
13 
15 {
16  return false;
17 }
18 
20 {
21  return initialized;
22 }
23 
25 {
26  return QIcon("");
27 }
28 
30 {
31  return "<ui language=\"c++\">\n"
32  " <widget class=\"SonarWidget\" name=\"SonarWidget\">\n"
33  " <property name=\"geometry\">\n"
34  " <rect>\n"
35  " <x>0</x>\n"
36  " <y>0</y>\n"
37  " <width>300</width>\n"
38  " <height>120</height>\n"
39  " </rect>\n"
40  " </property>\n"
41 // " <property name=\"toolTip\" >\n"
42 // " <string>SonarWidget</string>\n"
43 // " </property>\n"
44 // " <property name=\"whatsThis\" >\n"
45 // " <string>SonarWidget</string>\n"
46 // " </property>\n"
47  " </widget>\n"
48  "</ui>\n";
49 }
50 
51 QString SonarWidgetPlugin::group() const {
52  return "Rock-Robotics";
53 }
54 
56  return "SonarWidget/SonarWidget.h";
57 }
58 
59 QString SonarWidgetPlugin::name() const {
60  return "SonarWidget";
61 }
62 
63 QString SonarWidgetPlugin::toolTip() const {
64  return whatsThis();
65 }
66 
68 {
69  return "";
70 }
71 
72 QWidget* SonarWidgetPlugin::createWidget(QWidget *parent)
73 {
74  return new SonarWidget(parent);
75 }
76 
77 void SonarWidgetPlugin::initialize(QDesignerFormEditorInterface *core)
78 {
79  if (initialized)
80  return;
81  initialized = true;
82 }
virtual ~SonarWidgetPlugin()
QString includeFile() const
QString group() const
void initialize(QDesignerFormEditorInterface *core)
SonarWidgetPlugin(QObject *parent=0)
QIcon icon() const
bool isInitialized() const
bool isContainer() const
QString name() const
QString whatsThis() const
QWidget * createWidget(QWidget *parent)
QString toolTip() const
QString domXml() const