Fireworks
Core
interface
CmsShowViewPopup.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_CmsShowViewPopup_h
2
#define Fireworks_Core_CmsShowViewPopup_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : CmsShowViewPopup
7
//
16
//
17
// Original Author:
18
// Created: Wed Jun 25 15:15:12 EDT 2008
19
//
20
21
// system include files
22
#include <vector>
23
#ifndef __CINT__
24
#include <memory>
25
#include <sigc++/sigc++.h>
26
#endif
27
#include "TGFrame.h"
28
29
// user include files
30
#include "
Fireworks/Core/interface/FWParameterSetterEditorBase.h
"
31
32
// forward declarations
33
class
TGLabel;
34
class
TGTextButton;
35
class
TGButton;
36
class
TGFrame;
37
class
TGTab;
38
class
TGCompositeFrame;
39
class
TEveWindow;
40
41
class
FWParameterBase
;
42
class
FWParameterSetterBase
;
43
class
FWViewBase
;
44
class
FWColorManager
;
45
class
FWDialogBuilder
;
46
47
/* Helper class to organise parameters in view controller */
48
49
class
ViewerParameterGUI
:
public
TGCompositeFrame,
public
FWParameterSetterEditorBase
{
50
public
:
51
ViewerParameterGUI
(
const
TGFrame*);
52
~ViewerParameterGUI
()
override
{}
53
54
ViewerParameterGUI
&
requestTab
(
const
char
*);
55
ViewerParameterGUI
&
addParam
(
const
FWParameterBase
*);
56
ViewerParameterGUI
&
separator
();
57
void
reset
();
58
void
populateComplete
();
59
60
TGCompositeFrame*
getTabContainer
();
61
void
addFrameToContainer
(TGCompositeFrame*);
62
63
private
:
64
TGTab*
m_tab
;
65
std::string
m_selectedTabName
;
66
#ifndef __CINT__
67
std::vector<std::shared_ptr<FWParameterSetterBase> >
m_setters
;
68
#endif
69
};
70
71
//==============================================================================
72
73
class
CmsShowViewPopup
:
public
TGTransientFrame {
74
public
:
75
CmsShowViewPopup
(
const
TGWindow*
p
=
nullptr
,
76
UInt_t
w
= 200,
77
UInt_t
h
= 200,
78
FWColorManager
* cm =
nullptr
,
79
FWViewBase
* wb =
nullptr
,
80
TEveWindow* ew =
nullptr
);
81
~CmsShowViewPopup
()
override
;
82
83
// ---------- const member functions ---------------------
84
85
// ---------- static member functions --------------------
86
87
// ---------- member functions ---------------------------
88
89
void
CloseWindow
()
override
;
90
void
MapWindow
()
override
;
91
void
UnmapWindow
()
override
;
92
93
bool
mapped
() {
return
m_mapped
; }
94
95
void
reset
(
FWViewBase
*, TEveWindow* ew);
96
97
void
saveImage
();
98
void
changeBackground
();
99
void
backgroundColorWasChanged
();
100
TEveWindow*
getEveWindow
()
const
{
return
m_eveWindow
; }
101
#ifndef __CINT__
102
sigc::signal<void>
closed_
;
103
#endif
104
105
ClassDefOverride
(
CmsShowViewPopup
, 0);
106
107
private
:
108
CmsShowViewPopup
(
const
CmsShowViewPopup
&);
// stop default
109
const
CmsShowViewPopup
&
operator=
(
const
CmsShowViewPopup
&);
// stop default
110
111
// ---------- member data --------------------------------
112
113
bool
m_mapped
;
114
115
TGLabel*
m_viewLabel
;
116
ViewerParameterGUI
*
m_paramGUI
;
117
TGTextButton*
m_saveImageButton
;
118
TGTextButton*
m_changeBackground
;
119
120
FWColorManager
*
m_colorManager
;
121
FWViewBase
*
m_viewBase
;
122
TEveWindow*
m_eveWindow
;
123
};
124
125
#endif
CmsShowViewPopup::~CmsShowViewPopup
~CmsShowViewPopup() override
Definition:
CmsShowViewPopup.cc:99
FWParameterSetterEditorBase
Definition:
FWParameterSetterEditorBase.h:27
CmsShowViewPopup::reset
void reset(FWViewBase *, TEveWindow *ew)
Definition:
CmsShowViewPopup.cc:101
CmsShowViewPopup::m_saveImageButton
TGTextButton * m_saveImageButton
Definition:
CmsShowViewPopup.h:117
ViewerParameterGUI::addFrameToContainer
void addFrameToContainer(TGCompositeFrame *)
Definition:
CmsShowViewPopup.cc:245
ViewerParameterGUI
Definition:
CmsShowViewPopup.h:49
CmsShowViewPopup::m_mapped
bool m_mapped
Definition:
CmsShowViewPopup.h:113
CmsShowViewPopup::m_viewBase
FWViewBase * m_viewBase
Definition:
CmsShowViewPopup.h:121
FWParameterSetterBase
Definition:
FWParameterSetterBase.h:31
ViewerParameterGUI::~ViewerParameterGUI
~ViewerParameterGUI() override
Definition:
CmsShowViewPopup.h:52
FWParameterBase
Definition:
FWParameterBase.h:31
ViewerParameterGUI::ViewerParameterGUI
ViewerParameterGUI(const TGFrame *)
Definition:
CmsShowViewPopup.cc:170
CmsShowViewPopup::MapWindow
void MapWindow() override
Definition:
CmsShowViewPopup.cc:139
CmsShowViewPopup::m_viewLabel
TGLabel * m_viewLabel
Definition:
CmsShowViewPopup.h:115
CmsShowViewPopup::mapped
bool mapped()
Definition:
CmsShowViewPopup.h:93
ViewerParameterGUI::m_selectedTabName
std::string m_selectedTabName
Definition:
CmsShowViewPopup.h:65
CmsShowViewPopup::operator=
const CmsShowViewPopup & operator=(const CmsShowViewPopup &)
CmsShowViewPopup::backgroundColorWasChanged
void backgroundColorWasChanged()
Definition:
CmsShowViewPopup.cc:160
FWParameterSetterEditorBase.h
CmsShowViewPopup
Definition:
CmsShowViewPopup.h:73
CmsShowViewPopup::CloseWindow
void CloseWindow() override
Definition:
CmsShowViewPopup.cc:134
ViewerParameterGUI::separator
ViewerParameterGUI & separator()
Definition:
CmsShowViewPopup.cc:232
FWDialogBuilder
Definition:
FWDialogBuilder.h:93
CmsShowViewPopup::m_paramGUI
ViewerParameterGUI * m_paramGUI
Definition:
CmsShowViewPopup.h:116
w
const double w
Definition:
UKUtility.cc:23
ViewerParameterGUI::m_tab
TGTab * m_tab
Definition:
CmsShowViewPopup.h:64
CmsShowViewPopup::m_eveWindow
TEveWindow * m_eveWindow
Definition:
CmsShowViewPopup.h:122
ViewerParameterGUI::reset
void reset()
Definition:
CmsShowViewPopup.cc:175
h
CmsShowViewPopup::UnmapWindow
void UnmapWindow() override
Definition:
CmsShowViewPopup.cc:144
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
ViewerParameterGUI::getTabContainer
TGCompositeFrame * getTabContainer()
Definition:
CmsShowViewPopup.cc:240
FWColorManager
Definition:
FWColorManager.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CmsShowViewPopup::closed_
sigc::signal< void > closed_
Definition:
CmsShowViewPopup.h:102
ViewerParameterGUI::m_setters
std::vector< std::shared_ptr< FWParameterSetterBase > > m_setters
Definition:
CmsShowViewPopup.h:67
CmsShowViewPopup::getEveWindow
TEveWindow * getEveWindow() const
Definition:
CmsShowViewPopup.h:100
ViewerParameterGUI::populateComplete
void populateComplete()
Definition:
CmsShowViewPopup.cc:256
CmsShowViewPopup::saveImage
void saveImage()
Definition:
CmsShowViewPopup.cc:149
FWViewBase
Definition:
FWViewBase.h:36
CmsShowViewPopup::changeBackground
void changeBackground()
Definition:
CmsShowViewPopup.cc:154
CmsShowViewPopup::m_changeBackground
TGTextButton * m_changeBackground
Definition:
CmsShowViewPopup.h:118
CmsShowViewPopup::CmsShowViewPopup
CmsShowViewPopup(const TGWindow *p=nullptr, UInt_t w=200, UInt_t h=200, FWColorManager *cm=nullptr, FWViewBase *wb=nullptr, TEveWindow *ew=nullptr)
Definition:
CmsShowViewPopup.cc:43
ViewerParameterGUI::addParam
ViewerParameterGUI & addParam(const FWParameterBase *)
Definition:
CmsShowViewPopup.cc:212
CmsShowViewPopup::m_colorManager
FWColorManager * m_colorManager
Definition:
CmsShowViewPopup.h:120
CmsShowViewPopup::ClassDefOverride
ClassDefOverride(CmsShowViewPopup, 0)
ViewerParameterGUI::requestTab
ViewerParameterGUI & requestTab(const char *)
Definition:
CmsShowViewPopup.cc:197
Generated for CMSSW Reference Manual by
1.8.16