GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
qt4
Go4plugin
QGo4CommandsHistoryPlugin.cpp
Go to the documentation of this file.
1
// $Id: QGo4CommandsHistoryPlugin.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 "
QGo4CommandsHistory.h
"
15
#include "
QGo4CommandsHistoryPlugin.h
"
16
#include <QtPlugin>
17
18
19
QGo4CommandsHistoryPlugin::QGo4CommandsHistoryPlugin
(QObject *parent)
20
: QObject(parent)
21
{
22
initialized
=
false
;
23
}
24
25
void
QGo4CommandsHistoryPlugin::initialize
(QDesignerFormEditorInterface *
/* core */
)
26
{
27
if
(
initialized
)
28
return
;
29
30
initialized
=
true
;
31
}
32
33
bool
QGo4CommandsHistoryPlugin::isInitialized
()
const
34
{
35
return
initialized
;
36
}
37
38
QWidget *
QGo4CommandsHistoryPlugin::createWidget
(QWidget *parent)
39
{
40
return
new
QGo4CommandsHistory
(parent);
41
}
42
43
QString
QGo4CommandsHistoryPlugin::name
()
const
44
{
45
return
"QGo4CommandsHistory"
;
46
}
47
48
QString
QGo4CommandsHistoryPlugin::group
()
const
49
{
50
return
"Go4 Custom Widgets"
;
51
}
52
53
QIcon
QGo4CommandsHistoryPlugin::icon
()
const
54
{
55
return
QIcon(
":/go4logo2.png"
);
56
}
57
58
QString
QGo4CommandsHistoryPlugin::toolTip
()
const
59
{
60
return
"Command line combo box with history"
;
61
}
62
63
QString
QGo4CommandsHistoryPlugin::whatsThis
()
const
64
{
65
return
"ComboBox with command line functionality: enter key will execute command, history of commands is available"
;;
66
}
67
68
bool
QGo4CommandsHistoryPlugin::isContainer
()
const
69
{
70
return
false
;
71
}
72
73
QString
QGo4CommandsHistoryPlugin::domXml
()
const
74
{
75
return
"<widget class=\"QGo4CommandsHistory\" name=\"QGo4CommandsHistory\">\n"
76
" <property name=\"geometry\">\n"
77
" <rect>\n"
78
" <x>0</x>\n"
79
" <y>0</y>\n"
80
" <width>100</width>\n"
81
" <height>100</height>\n"
82
" </rect>\n"
83
" </property>\n"
84
"</widget>\n"
;
85
}
86
87
QString
QGo4CommandsHistoryPlugin::includeFile
()
const
88
{
89
return
"QGo4CommandsHistory.h"
;
90
}
91
92
QGo4CommandsHistoryPlugin::initialize
void initialize(QDesignerFormEditorInterface *core)
Definition:
QGo4CommandsHistoryPlugin.cpp:25
QGo4CommandsHistoryPlugin.h
QGo4CommandsHistoryPlugin::initialized
bool initialized
Definition:
QGo4CommandsHistoryPlugin.h:40
QGo4CommandsHistory.h
QGo4CommandsHistoryPlugin::QGo4CommandsHistoryPlugin
QGo4CommandsHistoryPlugin(QObject *parent=0)
Definition:
QGo4CommandsHistoryPlugin.cpp:19
QGo4CommandsHistoryPlugin::icon
QIcon icon() const
Definition:
QGo4CommandsHistoryPlugin.cpp:53
QGo4CommandsHistoryPlugin::name
QString name() const
Definition:
QGo4CommandsHistoryPlugin.cpp:43
QGo4CommandsHistoryPlugin::domXml
QString domXml() const
Definition:
QGo4CommandsHistoryPlugin.cpp:73
QGo4CommandsHistoryPlugin::includeFile
QString includeFile() const
Definition:
QGo4CommandsHistoryPlugin.cpp:87
QGo4CommandsHistoryPlugin::toolTip
QString toolTip() const
Definition:
QGo4CommandsHistoryPlugin.cpp:58
QGo4CommandsHistory
Definition:
QGo4CommandsHistory.h:27
QGo4CommandsHistoryPlugin::whatsThis
QString whatsThis() const
Definition:
QGo4CommandsHistoryPlugin.cpp:63
QGo4CommandsHistoryPlugin::createWidget
QWidget * createWidget(QWidget *parent)
Definition:
QGo4CommandsHistoryPlugin.cpp:38
QGo4CommandsHistoryPlugin::isInitialized
bool isInitialized() const
Definition:
QGo4CommandsHistoryPlugin.cpp:33
QGo4CommandsHistoryPlugin::isContainer
bool isContainer() const
Definition:
QGo4CommandsHistoryPlugin.cpp:68
QGo4CommandsHistoryPlugin::group
QString group() const
Definition:
QGo4CommandsHistoryPlugin.cpp:48
Generated on Fri Oct 26 2018 08:34:55 for GSI Object Oriented Online Offline (Go4) by
1.8.8