rock_widget_collection  0.1
SonarViewPlugin.cc
Go to the documentation of this file.
1 #include "SonarViewPlugin.h"
2 #include "SonarView.h"
3 
4 
6  : QObject(parent)
7  {
8  initialized = false;
9  }
10 
12  {
13  }
14 
15  void SonarViewPlugin::initialize(QDesignerFormEditorInterface *formEditor)
16  {
17  if (initialized)
18  return;
19  initialized = true;
20  }
21 
23  {
24  return initialized;
25  }
26 
27  QWidget *SonarViewPlugin::createWidget(QWidget *parent)
28  {
29  return new SonarView(parent);
30  }
31 
32  QString SonarViewPlugin::name() const
33  {
34  return "SonarView";
35  }
36 
37  QString SonarViewPlugin::group() const
38  {
39  return "Rock-Robotics";
40  }
41 
42  QIcon SonarViewPlugin::icon() const
43  {
44  return QIcon(":/sonar_view/icon.png");
45  }
46 
47  QString SonarViewPlugin::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 SonarViewPlugin::domXml() const
63  {
64  return "<widget class=\"SonarView\" 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/SonarView.h";
85  }
86 
QString name() const
bool isInitialized() const
bool isContainer() const
QString domXml() const
QString whatsThis() const
QIcon icon() const
QString includeFile() const
virtual ~SonarViewPlugin()
void initialize(QDesignerFormEditorInterface *core)
QWidget * createWidget(QWidget *parent)
QString group() const
SonarViewPlugin(QObject *parent=0)
QString toolTip() const