rock_widget_collection  0.1
ImageViewPlugin.cc
Go to the documentation of this file.
1 #include "ImageViewPlugin.h"
2 #include "ImageView.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 
24 QIcon ImageViewPlugin::icon() const
25 {
26  return QIcon("");
27 }
28 
29 QString ImageViewPlugin::domXml() const
30 {
31  return "<ui language=\"c++\">\n"
32  " <widget class=\"ImageView\" name=\"imageview\">\n"
33  " <property name=\"geometry\">\n"
34  " <rect>\n"
35  " <x>0</x>\n"
36  " <y>0</y>\n"
37  " <width>220</width>\n"
38  " <height>170</height>\n"
39  " </rect>\n"
40  " </property>\n"
41 // " <property name=\"toolTip\" >\n"
42 // " <string>GstImageView</string>\n"
43 // " </property>\n"
44 // " <property name=\"whatsThis\" >\n"
45 // " <string>GstImageView</string>\n"
46 // " </property>\n"
47  " </widget>\n"
48  "</ui>\n";
49 }
50 
51 QString ImageViewPlugin::group() const {
52  return "Rock-Robotics";
53 }
54 
56  return "rock_widget_collection/ImageView.h";
57 }
58 
59 QString ImageViewPlugin::name() const {
60  return "ImageView";
61 }
62 
63 QString ImageViewPlugin::toolTip() const {
64  return whatsThis();
65 }
66 
68 {
69  return "";
70 }
71 
72 QWidget* ImageViewPlugin::createWidget(QWidget *parent)
73 {
74  return new ImageView(parent);
75 }
76 
77 void ImageViewPlugin::initialize(QDesignerFormEditorInterface *core)
78 {
79  if (initialized)
80  return;
81  initialized = true;
82 }
ImageViewPlugin(QObject *parent=0)
QString name() const
virtual ~ImageViewPlugin()
QString toolTip() const
QString includeFile() const
QString group() const
Image viewer with optional text and geometry overlay functionality.
Definition: ImageView.h:47
void initialize(QDesignerFormEditorInterface *core)
QString domXml() const
bool isInitialized() const
QWidget * createWidget(QWidget *parent)
QIcon icon() const
QString whatsThis() const
bool isContainer() const