GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
qt4
Go4plugin
QRootWindowPlugin.cpp
Go to the documentation of this file.
1
// $Id$
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 fuer 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 "
QRootWindow.h
"
15
#include "
QRootWindowPlugin.h
"
16
17
#include <QtPlugin>
18
19
20
QRootWindowPlugin::QRootWindowPlugin
(QObject *parent)
21
: QObject(parent)
22
{
23
initialized
=
false
;
24
}
25
26
void
QRootWindowPlugin::initialize
(QDesignerFormEditorInterface *
/* core */
)
27
{
28
if
(
initialized
)
29
return
;
30
initialized
=
true
;
31
}
32
33
bool
QRootWindowPlugin::isInitialized
()
const
34
{
35
return
initialized
;
36
}
37
38
QWidget *
QRootWindowPlugin::createWidget
(QWidget *parent)
39
{
40
QRootWindow
* widg=
new
QRootWindow
(parent, 0,
true
);
41
QPalette* npal=
new
QPalette(widg->palette());
42
npal->setBrush(QPalette::Window,QPixmap(
":/root.png"
));
43
widg->setPalette(*npal);
44
widg->setAutoFillBackground(
true
);
45
return
widg;
46
}
47
48
QString
QRootWindowPlugin::name
()
const
49
{
50
return
"QRootWindow"
;
51
}
52
53
QString
QRootWindowPlugin::group
()
const
54
{
55
return
"Go4 Custom Widgets"
;
56
}
57
58
QIcon
QRootWindowPlugin::icon
()
const
59
{
60
return
QIcon(
":/go4logo2.png"
);
61
}
62
63
QString
QRootWindowPlugin::toolTip
()
const
64
{
65
return
"Qwidget to embed a ROOT TGCompositeFrame"
;
66
}
67
68
QString
QRootWindowPlugin::whatsThis
()
const
69
{
70
return
"ROOT TGFrame embedded into a QWidget "
;
71
}
72
73
bool
QRootWindowPlugin::isContainer
()
const
74
{
75
return
false
;
76
}
77
78
QString
QRootWindowPlugin::domXml
()
const
79
{
80
return
"<widget class=\"QRootWindow\" name=\"QRootWindow\">\n"
81
" <property name=\"geometry\">\n"
82
" <rect>\n"
83
" <x>0</x>\n"
84
" <y>0</y>\n"
85
" <width>100</width>\n"
86
" <height>100</height>\n"
87
" </rect>\n"
88
" </property>\n"
89
"</widget>\n"
;
90
}
91
92
QString
QRootWindowPlugin::includeFile
()
const
93
{
94
return
"QRootWindow.h"
;
95
}
96
97
QRootWindowPlugin.h
QRootWindow.h
QRootWindowPlugin::initialize
void initialize(QDesignerFormEditorInterface *core)
Definition
QRootWindowPlugin.cpp:26
QRootWindowPlugin::isInitialized
bool isInitialized() const
Definition
QRootWindowPlugin.cpp:33
QRootWindowPlugin::isContainer
bool isContainer() const
Definition
QRootWindowPlugin.cpp:73
QRootWindowPlugin::initialized
bool initialized
Definition
QRootWindowPlugin.h:40
QRootWindowPlugin::icon
QIcon icon() const
Definition
QRootWindowPlugin.cpp:58
QRootWindowPlugin::name
QString name() const
Definition
QRootWindowPlugin.cpp:48
QRootWindowPlugin::whatsThis
QString whatsThis() const
Definition
QRootWindowPlugin.cpp:68
QRootWindowPlugin::domXml
QString domXml() const
Definition
QRootWindowPlugin.cpp:78
QRootWindowPlugin::toolTip
QString toolTip() const
Definition
QRootWindowPlugin.cpp:63
QRootWindowPlugin::createWidget
QWidget * createWidget(QWidget *parent)
Definition
QRootWindowPlugin.cpp:38
QRootWindowPlugin::includeFile
QString includeFile() const
Definition
QRootWindowPlugin.cpp:92
QRootWindowPlugin::group
QString group() const
Definition
QRootWindowPlugin.cpp:53
QRootWindowPlugin::QRootWindowPlugin
QRootWindowPlugin(QObject *parent=nullptr)
Definition
QRootWindowPlugin.cpp:20
QRootWindow
Qt widget wrapper for ROOT TGWindow class.
Definition
QRootWindow.h:32
Generated by
1.13.2