rock_widget_collection  0.1
TimelinePlugin.cc
Go to the documentation of this file.
1 #include "TimelinePlugin.h"
2 
4  : QObject(parent)
5 {
6  initialized = false;
7 }
8 
10 {
11 }
12 
14 {
15  return false;
16 }
17 
19 {
20  return initialized;
21 }
22 
23 QIcon TimelinePlugin::icon() const
24 {
25  return QIcon(":/timeline/icon");
26 }
27 
28 QString TimelinePlugin::domXml() const
29 {
30  return "<ui language=\"c++\">\n"
31  " <widget class=\"Timeline\" name=\"timeline\">\n"
32  " <property name=\"geometry\">\n"
33  " <rect>\n"
34  " <x>0</x>\n"
35  " <y>0</y>\n"
36  " <width>250</width>\n"
37 // " <height>100</height>\n"
38  " </rect>\n"
39  " </property>\n"
40 // " <property name=\"toolTip\" >\n"
41 // " <string>The current time</string>\n"
42 // " </property>\n"
43 // " <property name=\"whatsThis\" >\n"
44 // " <string>The analog clock widget displays the current time.</string>\n"
45 // " </property>\n"
46  " </widget>\n"
47  "</ui>\n";
48 }
49 
50 QString TimelinePlugin::group() const {
51  return "Rock-Robotics";
52 }
53 
54 QString TimelinePlugin::includeFile() const {
55  return "rock_widget_collection/Timeline.h";
56 }
57 
58 QString TimelinePlugin::name() const {
59  return "Timeline";
60 }
61 
62 QString TimelinePlugin::toolTip() const {
63  return whatsThis();
64 }
65 
67 {
68  return "Slider Widget with section selection and marker support";
69 }
70 
71 QWidget* TimelinePlugin::createWidget(QWidget *parent)
72 {
73  return new Timeline(parent);
74 }
75 
76 void TimelinePlugin::initialize(QDesignerFormEditorInterface *core)
77 {
78  if (initialized)
79  return;
80  initialized = true;
81 }
bool isContainer() const
QString group() const
QString domXml() const
QString whatsThis() const
QIcon icon() const
QWidget * createWidget(QWidget *parent)
bool isInitialized() const
void initialize(QDesignerFormEditorInterface *core)
TimelinePlugin(QObject *parent=0)
QString includeFile() const
QString toolTip() const
QString name() const
virtual ~TimelinePlugin()