00001 // $Id: QGo4BrowserTreeWidgetPlugin.cpp 478 2009-10-29 12:26:09Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "QGo4BrowserTreeWidget.h" 00015 #include "QGo4BrowserTreeWidgetPlugin.h" 00016 #include <QtPlugin> 00017 00018 00019 00020 QGo4BrowserTreeWidgetPlugin::QGo4BrowserTreeWidgetPlugin(QObject *parent) 00021 : QObject(parent) 00022 { 00023 initialized = false; 00024 } 00025 00026 void QGo4BrowserTreeWidgetPlugin::initialize(QDesignerFormEditorInterface * /* core */) 00027 { 00028 if (initialized) 00029 return; 00030 00031 initialized = true; 00032 } 00033 00034 bool QGo4BrowserTreeWidgetPlugin::isInitialized() const 00035 { 00036 return initialized; 00037 } 00038 00039 QWidget *QGo4BrowserTreeWidgetPlugin::createWidget(QWidget *parent) 00040 { 00041 return new QGo4BrowserTreeWidget(parent); 00042 } 00043 00044 QString QGo4BrowserTreeWidgetPlugin::name() const 00045 { 00046 return "QGo4BrowserTreeWidget"; 00047 } 00048 00049 QString QGo4BrowserTreeWidgetPlugin::group() const 00050 { 00051 return "Go4 Custom Widgets"; 00052 } 00053 00054 QIcon QGo4BrowserTreeWidgetPlugin::icon() const 00055 { 00056 return QIcon(":/go4logo2.png"); 00057 } 00058 00059 QString QGo4BrowserTreeWidgetPlugin::toolTip() const 00060 { 00061 return "Go4browser list view"; 00062 00063 } 00064 00065 QString QGo4BrowserTreeWidgetPlugin::whatsThis() const 00066 { 00067 return "List view, used in browser to handle start drag event of its items"; 00068 } 00069 00070 bool QGo4BrowserTreeWidgetPlugin::isContainer() const 00071 { 00072 return false; 00073 } 00074 00075 QString QGo4BrowserTreeWidgetPlugin::domXml() const 00076 { 00077 return "<widget class=\"QGo4BrowserTreeWidget\" name=\"Go4BrowserListView widget\">\n" 00078 " <property name=\"geometry\">\n" 00079 " <rect>\n" 00080 " <x>0</x>\n" 00081 " <y>0</y>\n" 00082 " <width>100</width>\n" 00083 " <height>100</height>\n" 00084 " </rect>\n" 00085 " </property>\n" 00086 "</widget>\n"; 00087 } 00088 00089 QString QGo4BrowserTreeWidgetPlugin::includeFile() const 00090 { 00091 return "QGo4BrowserTreeWidget.h"; 00092 } 00093 00094