rock_widget_collection  0.1
ImageViewOldPlugin.cc
Go to the documentation of this file.
1 #include "ImageViewOldPlugin.h"
2 #include "ImageViewOld.h"
3 
4 
6  : QObject(parent)
7  {
8  initialized = false;
9  }
10 
12  {
13  }
14 
15  void ImageViewOldPlugin::initialize(QDesignerFormEditorInterface *formEditor)
16  {
17  if (initialized)
18  return;
19  initialized = true;
20  }
21 
23  {
24  return initialized;
25  }
26 
27  QWidget *ImageViewOldPlugin::createWidget(QWidget *parent)
28  {
29  return new ImageViewOld(parent);
30  }
31 
32  QString ImageViewOldPlugin::name() const
33  {
34  return "ImageViewOld";
35  }
36 
37  QString ImageViewOldPlugin::group() const
38  {
39  return "Rock-Robotics";
40  }
41 
43  {
44  return QIcon(":/image_view_old/icon.png");
45  }
46 
48  {
49  return "Old widget for displaying images. This one is deprecated, use ImageView instead.";
50  }
51 
53  {
54  return "Old widget for displaying images. This one is deprecated, use ImageView instead.";
55  }
56 
58  {
59  return false;
60  }
61 
63  {
64  return "<widget class=\"ImageViewOld\" name=\"imageviewold\">\n"
65  " <property name=\"geometry\">\n"
66  " <rect>\n"
67  " <x>0</x>\n"
68  " <y>0</y>\n"
69  " <width>320</width>\n"
70  " <height>240</height>\n"
71  " </rect>\n"
72  " </property>\n"
73  " <property name=\"toolTip\" >\n"
74  " <string>ImageView</string>\n"
75  " </property>\n"
76  " <property name=\"whatsThis\" >\n"
77  " <string>Widget for displaying frames.</string>\n"
78  " </property>\n"
79  "</widget>\n";
80  }
81 
83  {
84  return "image_view_widget/ImageView.h";
85  }
86 
QString toolTip() const
ImageViewOldPlugin(QObject *parent=0)
QString group() const
QString name() const
void initialize(QDesignerFormEditorInterface *core)
QString domXml() const
QWidget * createWidget(QWidget *parent)
QString includeFile() const
bool isInitialized() const
QString whatsThis() const