rock_widget_collection  0.1
compassplugin.cc
Go to the documentation of this file.
1 #include "compassplugin.h"
2 #include "compass.h"
3 
4 
5  CompassPlugin::CompassPlugin(QObject *parent) : QObject(parent)
6  {
7  initialized = false;
8  }
9 
11  {
12  }
13 
14  void CompassPlugin::initialize(QDesignerFormEditorInterface *formEditor)
15  {
16  if (initialized)
17  return;
18  initialized = true;
19  }
20 
22  {
23  return initialized;
24  }
25 
26  QWidget *CompassPlugin::createWidget(QWidget *parent)
27  {
28  return new Compass(parent);
29  }
30 
31  QString CompassPlugin::name() const
32  {
33  return "Compass";
34  }
35 
36  QString CompassPlugin::group() const
37  {
38  return "Rock-Robotics";
39  }
40 
41  QIcon CompassPlugin::icon() const
42  {
43  return QIcon(":/artificial_horizon/compass_icon.png");
44  }
45 
46  QString CompassPlugin::toolTip() const
47  {
48  return "Widget for displaying an Compass";
49  }
50 
51  QString CompassPlugin::whatsThis() const
52  {
53  return "Widget for displaying an Compass";
54  }
55 
57  {
58  return false;
59  }
60 
61  QString CompassPlugin::domXml() const
62  {
63  return "<widget class=\"Compass\" name=\"Compass\">\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>Compass</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/compass.h";
84  }
85 
QString toolTip() const
QIcon icon() const
QWidget * createWidget(QWidget *parent)
bool isContainer() const
QString domXml() const
QString whatsThis() const
void initialize(QDesignerFormEditorInterface *core)
QString name() const
bool isInitialized() const
QString group() const
QString includeFile() const
virtual ~CompassPlugin()
CompassPlugin(QObject *parent=0)
Definition: compassplugin.cc:5