rock_widget_collection  0.1
StreamAlignerWidgetPlugin.cpp
Go to the documentation of this file.
2 #include "StreamAlignerWidget.h"
3 #include <QtCore/qplugin.h>
4 
6 
8  : QObject(parent)
9 {
10  widgets.append(new StreamAlignerWidgetPlugin(this));
11 
12 }
13 
14 QList<QDesignerCustomWidgetInterface*> AggregatorCollection::customWidgets() const
15 {
16  return widgets;
17 }
18 
20  : QObject(parent)
21  {
22  initialized = false;
23  }
24 
26  {
27  }
28 
29  void StreamAlignerWidgetPlugin::initialize(QDesignerFormEditorInterface *formEditor)
30  {
31  if (initialized)
32  return;
33  initialized = true;
34  }
35 
37  {
38  return initialized;
39  }
40 
41  QWidget *StreamAlignerWidgetPlugin::createWidget(QWidget *parent)
42  {
43  return new StreamAlignerWidget(parent);
44  }
45 
47  {
48  return "StreamAlignerWidget";
49  }
50 
52  {
53  return "Rock-Robotics";
54  }
55 
57  {
58  return QIcon(":/viz/icon.png");
59  }
60 
62  {
63  return "Widget that shows the status of the Stream Aligners";
64  }
65 
67  {
68  return "Widget that shows the status of the Stream Aligners";
69  }
70 
72  {
73  return false;
74  }
75 
77  {
78  return QString("<widget class=\"StreamAlignerWidget\" name=\"") + name() +
79  QString("\">\n"
80  " <property name=\"geometry\">\n"
81  " <rect>\n"
82  " <x>0</x>\n"
83  " <y>0</y>\n"
84  " <width>250</width>\n"
85  " <height>250</height>\n"
86  " </rect>\n"
87  " </property>\n"
88  " <property name=\"toolTip\" >\n"
89  " <string>") + toolTip() +
90  QString("</string>\n"
91  "</property>\n"
92  " <property name=\"whatsThis\" >\n"
93  " <string>")
94  + whatsThis() + QString("</string>\n"
95  " </property>\n"
96  "</widget>\n");
97  }
98 
100  {
101  return "aggregator/StreamAlignerWidget.h";
102  }
void initialize(QDesignerFormEditorInterface *core)
StreamAlignerWidgetPlugin(QObject *parent=0)
QWidget * createWidget(QWidget *parent)
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const