GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QGo4BrowserTreeWidgetPlugin.cpp
Go to the documentation of this file.
1 // $Id: QGo4BrowserTreeWidgetPlugin.cpp 478 2009-10-29 12:26:09Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "QGo4BrowserTreeWidget.h"
16 #include <QtPlugin>
17 
18 
19 
21  : QObject(parent)
22  {
23  initialized = false;
24  }
25 
26  void QGo4BrowserTreeWidgetPlugin::initialize(QDesignerFormEditorInterface * /* core */)
27  {
28  if (initialized)
29  return;
30 
31  initialized = true;
32  }
33 
35  {
36  return initialized;
37  }
38 
40  {
41  return new QGo4BrowserTreeWidget(parent);
42  }
43 
45  {
46  return "QGo4BrowserTreeWidget";
47  }
48 
50  {
51  return "Go4 Custom Widgets";
52  }
53 
55  {
56  return QIcon(":/go4logo2.png");
57  }
58 
60  {
61  return "Go4browser list view";
62 
63  }
64 
66  {
67  return "List view, used in browser to handle start drag event of its items";
68  }
69 
71  {
72  return false;
73  }
74 
76  {
77  return "<widget class=\"QGo4BrowserTreeWidget\" name=\"Go4BrowserListView widget\">\n"
78  " <property name=\"geometry\">\n"
79  " <rect>\n"
80  " <x>0</x>\n"
81  " <y>0</y>\n"
82  " <width>100</width>\n"
83  " <height>100</height>\n"
84  " </rect>\n"
85  " </property>\n"
86  "</widget>\n";
87  }
88 
90  {
91  return "QGo4BrowserTreeWidget.h";
92  }
93 
94 
void initialize(QDesignerFormEditorInterface *core)
QWidget * createWidget(QWidget *parent)