rock_widget_collection  0.1
artificialhorizonplugin.cc
Go to the documentation of this file.
2 #include "artificialhorizon.h"
3 
4 
6  : QObject(parent)
7  {
8  initialized = false;
9  }
10 
12  {
13  }
14 
15  void ArtificialHorizonPlugin::initialize(QDesignerFormEditorInterface *formEditor)
16  {
17  if (initialized)
18  return;
19  initialized = true;
20  }
21 
23  {
24  return initialized;
25  }
26 
27  QWidget *ArtificialHorizonPlugin::createWidget(QWidget *parent)
28  {
29  return new ArtificialHorizon(parent);
30  }
31 
33  {
34  return "ArtificialHorizon";
35  }
36 
38  {
39  return "Rock-Robotics";
40  }
41 
43  {
44  return QIcon(":/artificial_horizon/icon.png");
45  }
46 
48  {
49  return "Widget for displaying an artificial horizon";
50  }
51 
53  {
54  return "Widget for displaying an artificial horizon";
55  }
56 
58  {
59  return false;
60  }
61 
63  {
64  return "<widget class=\"ArtificialHorizon\" name=\"ArtificialHorizon\">\n"
65  " <property name=\"geometry\">\n"
66  " <rect>\n"
67  " <x>0</x>\n"
68  " <y>0</y>\n"
69  " <width>309</width>\n"
70  " <height>289</height>\n"
71  " </rect>\n"
72  " </property>\n"
73  " <property name=\"toolTip\" >\n"
74  " <string>ImageView</string>\n"
75  " </property>\n"
76  " <property name=\"whatsThis\" >\n"
77  " <string></string>\n"
78  " </property>\n"
79  "</widget>\n";
80  }
81 
83  {
84  return "rock_widget_collection/artificialhorizon.h";
85  }
86 
void initialize(QDesignerFormEditorInterface *core)
QWidget * createWidget(QWidget *parent)
ArtificialHorizonPlugin(QObject *parent=0)