CMS 3D CMS Logo

CmsShowCommonPopup.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowCommonPopup_h
2 #define Fireworks_Core_CmsShowCommonPopup_h
3 
4 #ifndef __CINT__
5 #include <memory>
6 #endif
7 #include "GuiTypes.h"
8 #include "TGFrame.h"
10 #ifndef __CINT__
12 #endif
13 
14 class TGHSlider;
15 class TGLabel;
16 class TGComboBox;
17 class TGTextButton;
18 class TGCheckButton;
19 class CmsShowCommon;
20 class FWColorManager;
21 class FWColorSelect;
22 class FWParameterBase;
24 
25 class CmsShowCommonPopup : public TGTransientFrame, public FWParameterSetterEditorBase {
26 public:
27  CmsShowCommonPopup(CmsShowCommon*, const TGWindow* p = nullptr, UInt_t w = 1, UInt_t h = 1);
28  ~CmsShowCommonPopup() override;
29 
30  // ---------- member functions ---------------------------
31 
32  void CloseWindow() override { UnmapWindow(); }
33 
34  void switchBackground();
35  void permuteColors();
36  void randomizeColors();
37 
38  void changeGeomColor(Color_t);
39  void changeGeomTransparency2D(int);
40  void changeGeomTransparency3D(int);
41  void changeSelectionColorSet(Color_t);
42  void colorSetChanged();
43  void setPaletteGUI();
44 
45  TGComboBox* getCombo() { return m_combo; }
47 
48 private:
51 
52  TGFrame* makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
53  void getColorSetColors(int& hci, int& sci);
54  // ---------- member data --------------------------------
55 
57 
58  TGTextButton* m_backgroundButton;
59  TGHSlider* m_gammaSlider;
60  TGTextButton* m_gammaButton;
61 #ifndef __CINT__
65  std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
66 #endif
67  TGComboBox* m_combo;
68 };
69 
70 #endif
CmsShowCommonPopup::setPaletteGUI
void setPaletteGUI()
Definition: CmsShowCommonPopup.cc:318
FWParameterSetterEditorBase
Definition: FWParameterSetterEditorBase.h:27
CmsShowCommonPopup::ClassDefOverride
ClassDefOverride(CmsShowCommonPopup, 0)
CmsShowCommonPopup
Definition: CmsShowCommonPopup.h:25
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowCommonPopup::changeGeomTransparency2D
void changeGeomTransparency2D(int)
Definition: CmsShowCommonPopup.cc:276
FWParameterSetterBase
Definition: FWParameterSetterBase.h:31
FWParameterBase
Definition: FWParameterBase.h:31
CmsShowCommonPopup::colorSetChanged
void colorSetChanged()
Definition: CmsShowCommonPopup.cc:281
CmsShowCommonPopup::m_gammaSlider
TGHSlider * m_gammaSlider
Definition: CmsShowCommonPopup.h:59
CmsShowCommonPopup::switchBackground
void switchBackground()
Definition: CmsShowCommonPopup.cc:251
FWParameterSetterEditorBase.h
CmsShowCommonPopup::m_colorRnrCtxSelectWidget
FWColorSelect * m_colorRnrCtxSelectWidget
Definition: CmsShowCommonPopup.h:64
CmsShowCommonPopup::operator=
const CmsShowCommonPopup & operator=(const CmsShowCommonPopup &)
FWColorManager.h
w
const double w
Definition: UKUtility.cc:23
CmsShowCommonPopup::changeGeomTransparency3D
void changeGeomTransparency3D(int)
Definition: CmsShowCommonPopup.cc:278
CmsShowCommonPopup::changeGeomColor
void changeGeomColor(Color_t)
Definition: CmsShowCommonPopup.cc:257
h
CmsShowCommonPopup::m_colorRnrCtxHighlightWidget
FWColorSelect * m_colorRnrCtxHighlightWidget
Definition: CmsShowCommonPopup.h:63
FWColorSelect
Definition: FWColorSelect.h:107
CmsShowCommonPopup::permuteColors
void permuteColors()
Definition: CmsShowCommonPopup.cc:255
CmsShowCommonPopup::m_gammaButton
TGTextButton * m_gammaButton
Definition: CmsShowCommonPopup.h:60
CmsShowCommonPopup::m_backgroundButton
TGTextButton * m_backgroundButton
Definition: CmsShowCommonPopup.h:58
CmsShowCommonPopup::~CmsShowCommonPopup
~CmsShowCommonPopup() override
Definition: CmsShowCommonPopup.cc:247
FWColorManager
Definition: FWColorManager.h:45
CmsShowCommonPopup::makeSetter
TGFrame * makeSetter(TGCompositeFrame *frame, FWParameterBase *param)
Definition: CmsShowCommonPopup.cc:307
CmsShowCommonPopup::getCombo
TGComboBox * getCombo()
Definition: CmsShowCommonPopup.h:45
CmsShowCommonPopup::CloseWindow
void CloseWindow() override
Definition: CmsShowCommonPopup.h:32
CmsShowCommonPopup::changeSelectionColorSet
void changeSelectionColorSet(Color_t)
Definition: CmsShowCommonPopup.cc:263
CmsShowCommonPopup::getColorSetColors
void getColorSetColors(int &hci, int &sci)
Definition: CmsShowCommonPopup.cc:292
amptDefault_cfi.frame
frame
Definition: amptDefault_cfi.py:12
CmsShowCommonPopup::m_common
CmsShowCommon * m_common
Definition: CmsShowCommonPopup.h:56
CmsShowCommonPopup::m_setters
std::vector< std::shared_ptr< FWParameterSetterBase > > m_setters
Definition: CmsShowCommonPopup.h:65
kFWGeomColorSize
Definition: FWColorManager.h:42
CmsShowCommonPopup::m_combo
TGComboBox * m_combo
Definition: CmsShowCommonPopup.h:67
CmsShowCommon
Definition: CmsShowCommon.h:43
CmsShowCommonPopup::CmsShowCommonPopup
CmsShowCommonPopup(CmsShowCommon *, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
Definition: CmsShowCommonPopup.cc:32
CmsShowCommonPopup::m_colorSelectWidget
FWColorSelect * m_colorSelectWidget[kFWGeomColorSize]
Definition: CmsShowCommonPopup.h:62
CmsShowCommonPopup::randomizeColors
void randomizeColors()
Definition: CmsShowCommonPopup.cc:253