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