Fireworks
Core
interface
CmsShowModelPopup.h
Go to the documentation of this file.
1
#ifndef Fireworks_Core_CmsShowModelPopup_h
2
#define Fireworks_Core_CmsShowModelPopup_h
3
// -*- C++ -*-
4
//
5
// Package: Core
6
// Class : CmsShowModelPopup
7
//
16
//
17
// Original Author:
18
// Created: Fri Jun 27 11:23:31 EDT 2008
19
//
20
21
// system include files
22
#include <set>
23
#include <vector>
24
#ifndef __CINT__
25
#include <sigc++/connection.h>
26
#endif
27
#include "GuiTypes.h"
28
#include "TGFrame.h"
29
30
// user include files
31
#ifndef __CINT__
32
#include "
Fireworks/Core/interface/FWModelChangeSignal.h
"
33
#endif
34
35
// forward declarations
36
class
FWEventItem
;
37
class
FWSelectionManager
;
38
class
FWColorManager
;
39
//class FWModelId;
40
class
FWColorSelect
;
41
class
TGCheckButton;
42
class
TGLabel;
43
class
TGTextButton;
44
class
TGTextButton;
45
class
TGHSlider;
46
class
FWDetailViewManager
;
47
class
FWSelectionManager
;
48
class
FWDialogBuilder
;
49
50
class
CmsShowModelPopup
;
51
52
class
CmsShowModelPopup
:
public
TGTransientFrame {
53
public
:
54
friend
class
CmsShowModelPopupDetailViewButtonAdapter
;
55
56
CmsShowModelPopup
(
FWDetailViewManager
*,
57
FWSelectionManager
*,
58
const
FWColorManager
*,
59
const
TGWindow*
p
=
nullptr
,
60
UInt_t
w
= 1,
61
UInt_t
h
= 1);
62
~CmsShowModelPopup
()
override
;
63
64
void
CloseWindow
()
override
{ UnmapWindow(); }
65
// ---------- const member functions ---------------------
66
67
// ---------- static member functions --------------------
68
69
// ---------- member functions ---------------------------
70
void
fillModelPopup
(
const
FWSelectionManager
& iSelMgr);
71
void
updateDisplay
();
72
void
colorSetChanged
();
73
void
disconnectAll
();
74
void
changeModelColor
(Color_t iColor);
75
void
changeModelOpacity
(Int_t opacity = 100);
76
void
toggleModelVisible
(Bool_t on = kTRUE);
77
void
openDetailedView
();
78
79
void
clicked
();
80
81
ClassDefOverride
(
CmsShowModelPopup
, 0);
82
83
private
:
84
CmsShowModelPopup
(
const
CmsShowModelPopup
&);
// stop default
85
86
const
CmsShowModelPopup
&
operator=
(
const
CmsShowModelPopup
&);
// stop default
87
88
// ---------- member data --------------------------------
89
TGLabel*
m_modelLabel
;
90
FWColorSelect
*
m_colorSelectWidget
;
91
TGCheckButton*
m_isVisibleButton
;
92
std::vector<TGTextButton*>
m_openDetailedViewButtons
;
93
94
#ifndef __CINT__
95
std::set<FWModelId>
m_models
;
96
sigc::connection
m_modelChangedConn
;
97
sigc::connection
m_destroyedConn
;
98
sigc::connection
m_changes
;
99
#endif
100
FWDetailViewManager
*
m_detailViewManager
;
101
const
FWColorManager
*
m_colorManager
;
102
TGHSlider*
m_opacitySlider
;
103
FWDialogBuilder
*
m_dialogBuilder
;
104
};
105
106
#endif
CmsShowModelPopup::m_opacitySlider
TGHSlider * m_opacitySlider
Definition:
CmsShowModelPopup.h:102
CmsShowModelPopup::disconnectAll
void disconnectAll()
Definition:
CmsShowModelPopup.cc:262
CmsShowModelPopup::m_modelChangedConn
sigc::connection m_modelChangedConn
Definition:
CmsShowModelPopup.h:96
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
CmsShowModelPopup::m_colorSelectWidget
FWColorSelect * m_colorSelectWidget
Definition:
CmsShowModelPopup.h:90
CmsShowModelPopup::m_isVisibleButton
TGCheckButton * m_isVisibleButton
Definition:
CmsShowModelPopup.h:91
CmsShowModelPopup::changeModelColor
void changeModelColor(Color_t iColor)
Definition:
CmsShowModelPopup.cc:289
CmsShowModelPopup::clicked
void clicked()
Definition:
CmsShowModelPopup.cc:340
FWModelChangeSignal.h
FWDetailViewManager
Definition:
FWDetailViewManager.h:35
CmsShowModelPopup::changeModelOpacity
void changeModelOpacity(Int_t opacity=100)
Definition:
CmsShowModelPopup.cc:305
CmsShowModelPopup::colorSetChanged
void colorSetChanged()
Definition:
CmsShowModelPopup.cc:251
FWDialogBuilder
Definition:
FWDialogBuilder.h:93
w
const double w
Definition:
UKUtility.cc:23
CmsShowModelPopup::updateDisplay
void updateDisplay()
Definition:
CmsShowModelPopup.cc:235
CmsShowModelPopup::~CmsShowModelPopup
~CmsShowModelPopup() override
Definition:
CmsShowModelPopup.cc:107
CmsShowModelPopup::m_changes
sigc::connection m_changes
Definition:
CmsShowModelPopup.h:98
h
CmsShowModelPopup::openDetailedView
void openDetailedView()
Definition:
CmsShowModelPopup.cc:334
CmsShowModelPopup::m_openDetailedViewButtons
std::vector< TGTextButton * > m_openDetailedViewButtons
Definition:
CmsShowModelPopup.h:92
FWSelectionManager
Definition:
FWSelectionManager.h:34
CmsShowModelPopup::CloseWindow
void CloseWindow() override
Definition:
CmsShowModelPopup.h:64
CmsShowModelPopup::m_modelLabel
TGLabel * m_modelLabel
Definition:
CmsShowModelPopup.h:89
CmsShowModelPopup::ClassDefOverride
ClassDefOverride(CmsShowModelPopup, 0)
CmsShowModelPopup::fillModelPopup
void fillModelPopup(const FWSelectionManager &iSelMgr)
Definition:
CmsShowModelPopup.cc:134
CmsShowModelPopup::m_models
std::set< FWModelId > m_models
Definition:
CmsShowModelPopup.h:95
CmsShowModelPopup::m_dialogBuilder
FWDialogBuilder * m_dialogBuilder
Definition:
CmsShowModelPopup.h:103
CmsShowModelPopup::CmsShowModelPopupDetailViewButtonAdapter
friend class CmsShowModelPopupDetailViewButtonAdapter
Definition:
CmsShowModelPopup.h:54
FWColorSelect
Definition:
FWColorSelect.h:107
FWColorManager
Definition:
FWColorManager.h:45
CmsShowModelPopup
Definition:
CmsShowModelPopup.h:52
FWEventItem
Definition:
FWEventItem.h:56
CmsShowModelPopup::m_colorManager
const FWColorManager * m_colorManager
Definition:
CmsShowModelPopup.h:101
CmsShowModelPopup::CmsShowModelPopup
CmsShowModelPopup(FWDetailViewManager *, FWSelectionManager *, const FWColorManager *, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
Definition:
CmsShowModelPopup.cc:54
CmsShowModelPopup::m_destroyedConn
sigc::connection m_destroyedConn
Definition:
CmsShowModelPopup.h:97
CmsShowModelPopup::toggleModelVisible
void toggleModelVisible(Bool_t on=kTRUE)
Definition:
CmsShowModelPopup.cc:321
CmsShowModelPopup::operator=
const CmsShowModelPopup & operator=(const CmsShowModelPopup &)
CmsShowModelPopup::m_detailViewManager
FWDetailViewManager * m_detailViewManager
Definition:
CmsShowModelPopup.h:100
Generated for CMSSW Reference Manual by
1.8.16