rock_widget_collection  0.1
ProgressIndicatorPlugin.cc
Go to the documentation of this file.
2 #include "ProgressIndicator.h"
3 
5  : QObject(parent)
6 {
7  initialized = false;
8 }
9 
11 {
12 }
13 
15 {
16  return false;
17 }
18 
20 {
21  return initialized;
22 }
23 
25 {
26  return QIcon(":/progress_indicator/icon");
27 }
28 
30 {
31  return "<ui language=\"c++\">\n"
32  " <widget class=\"ProgressIndicator\" name=\"progressindicator\">\n"
33  " <property name=\"geometry\">\n"
34  " <rect>\n"
35  " <x>0</x>\n"
36  " <y>0</y>\n"
37  " <width>100</width>\n"
38  " <height>100</height>\n"
39  " </rect>\n"
40  " </property>\n"
41 // " <property name=\"toolTip\" >\n"
42 // " <string>ProgressIndicator</string>\n"
43 // " </property>\n"
44 // " <property name=\"whatsThis\" >\n"
45 // " <string>ProgressIndicator</string>\n"
46 // " </property>\n"
47  " <property name=\"displayedWhenStopped\">\n"
48  " <bool>true</bool>\n"
49  " </property>\n"
50  " </widget>\n"
51  "</ui>\n";
52 }
53 
55  return "Rock-Robotics";
56 }
57 
59  return "ProgressIndicator/ProgressIndicator.h";
60 }
61 
63  return "ProgressIndicator";
64 }
65 
67  return whatsThis();
68 }
69 
71 {
72  return "";
73 }
74 
75 QWidget* ProgressIndicatorPlugin::createWidget(QWidget *parent)
76 {
77  return new ProgressIndicator(parent);
78 }
79 
80 void ProgressIndicatorPlugin::initialize(QDesignerFormEditorInterface *core)
81 {
82  if (initialized)
83  return;
84  initialized = true;
85 }
ProgressIndicatorPlugin(QObject *parent=0)
The ProgressIndicator class lets an application display a progress indicator to show that a lengthy t...
void initialize(QDesignerFormEditorInterface *core)
QWidget * createWidget(QWidget *parent)