rock_widget_collection  0.1
orientationplugin.cc
Go to the documentation of this file.
1 #include "orientationplugin.h"
2 #include "orientation.h"
3 
4 
5  OrientationPlugin::OrientationPlugin(QObject *parent) : QObject(parent)
6  {
7  initialized = false;
8  }
9 
11  {
12  }
13 
14  void OrientationPlugin::initialize(QDesignerFormEditorInterface *formEditor)
15  {
16  if (initialized)
17  return;
18  initialized = true;
19  }
20 
22  {
23  return initialized;
24  }
25 
26  QWidget *OrientationPlugin::createWidget(QWidget *parent)
27  {
28  return new OrientationView(parent);
29  }
30 
31  QString OrientationPlugin::name() const
32  {
33  return "OrientationView";
34  }
35 
36  QString OrientationPlugin::group() const
37  {
38  return "Rock-Robotics";
39  }
40 
42  {
43  return QIcon(":/artificial_horizon/icon.png");
44  }
45 
47  {
48  return "Widget for displaying an Orientation";
49  }
50 
52  {
53  return "Widget for displaying an Orientation";
54  }
55 
57  {
58  return false;
59  }
60 
61  QString OrientationPlugin::domXml() const
62  {
63  return "<widget class=\"OrientationView\" name=\"Orientation\">\n"
64  " <property name=\"geometry\">\n"
65  " <rect>\n"
66  " <x>0</x>\n"
67  " <y>0</y>\n"
68  " <width>309</width>\n"
69  " <height>289</height>\n"
70  " </rect>\n"
71  " </property>\n"
72  " <property name=\"toolTip\" >\n"
73  " <string>OrientationView</string>\n"
74  " </property>\n"
75  " <property name=\"whatsThis\" >\n"
76  " <string></string>\n"
77  " </property>\n"
78  "</widget>\n";
79  }
80 
82  {
83  return "rock_widget_collection/orientation.h";
84  }
85 
bool isInitialized() const
QString domXml() const
QString name() const
QString includeFile() const
void initialize(QDesignerFormEditorInterface *core)
virtual ~OrientationPlugin()
OrientationPlugin(QObject *parent=0)
QWidget * createWidget(QWidget *parent)
QString group() const
QIcon icon() const
bool isContainer() const
QString toolTip() const
QString whatsThis() const