rock_widget_collection  0.1
RangeViewPlugin.cc
Go to the documentation of this file.
1 #include "RangeViewPlugin.h"
2 #include "RangeView.h"
3 
4 
6  : QObject(parent)
7  {
8  initialized = false;
9  }
10 
12  {
13  }
14 
15  void RangeViewPlugin::initialize(QDesignerFormEditorInterface *formEditor)
16  {
17  if (initialized)
18  return;
19  initialized = true;
20  }
21 
23  {
24  return initialized;
25  }
26 
27  QWidget *RangeViewPlugin::createWidget(QWidget *parent)
28  {
29  return new RangeView(parent);
30  }
31 
32  QString RangeViewPlugin::name() const
33  {
34  return "RangeView";
35  }
36 
37  QString RangeViewPlugin::group() const
38  {
39  return "Rock-Robotics";
40  }
41 
42  QIcon RangeViewPlugin::icon() const
43  {
44  return QIcon(":/sonar_view/icon.png");
45  }
46 
47  QString RangeViewPlugin::toolTip() const
48  {
49  return "Widget for displaying sonar data";
50  }
51 
53  {
54  return "widget for displaying sonar data";
55  }
56 
58  {
59  return false;
60  }
61 
62  QString RangeViewPlugin::domXml() const
63  {
64  return "<widget class=\"RangeView\" name=\"sonarview\">\n"
65  " <property name=\"geometry\">\n"
66  " <rect>\n"
67  " <x>0</x>\n"
68  " <y>0</y>\n"
69  " <width>320</width>\n"
70  " <height>240</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>Widget for displaying frames.</string>\n"
78  " </property>\n"
79  "</widget>\n";
80  }
81 
83  {
84  return "image_view_widget/sonar_view/RangeView.h";
85  }
86 
void initialize(QDesignerFormEditorInterface *core)
QString toolTip() const
QWidget * createWidget(QWidget *parent)
QString whatsThis() const
virtual ~RangeViewPlugin()
RangeViewPlugin(QObject *parent=0)
bool isContainer() const
QString includeFile() const
QString group() const
bool isInitialized() const
QString domXml() const
QString name() const
QIcon icon() const