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,
27 {
28 public:
29  CmsShowCommonPopup( CmsShowCommon*, const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1);
30  virtual ~CmsShowCommonPopup();
31 
32  // ---------- member functions ---------------------------
33 
34  virtual void CloseWindow() { UnmapWindow(); }
35 
36  void switchBackground();
37  void permuteColors();
38  void randomizeColors();
39 
40  void changeGeomColor(Color_t);
41  void changeGeomTransparency2D(int);
42  void changeGeomTransparency3D(int);
43  void changeSelectionColorSet(Color_t);
44  void colorSetChanged();
45  void setPaletteGUI();
46 
47  TGComboBox* getCombo() {return m_combo;}
49 
50 private:
53 
54  TGFrame* makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
55  void getColorSetColors (int& hci, int& sci);
56  // ---------- member data --------------------------------
57 
59 
60  TGTextButton *m_backgroundButton;
61  TGHSlider *m_gammaSlider;
62  TGTextButton *m_gammaButton;
63 #ifndef __CINT__
67  std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
68 #endif
69  TGComboBox *m_combo;
70 };
71 
72 
73 
74 #endif
void changeSelectionColorSet(Color_t)
CmsShowCommonPopup(CmsShowCommon *, const TGWindow *p=0, UInt_t w=1, UInt_t h=1)
FWColorSelect * m_colorSelectWidget[kFWGeomColorSize]
const CmsShowCommonPopup & operator=(const CmsShowCommonPopup &)
const double w
Definition: UKUtility.cc:23
ClassDef(CmsShowCommonPopup, 0)
virtual void CloseWindow()
TGTextButton * m_gammaButton
TGTextButton * m_backgroundButton
void changeGeomTransparency2D(int)
void changeGeomTransparency3D(int)
void changeGeomColor(Color_t)
void getColorSetColors(int &hci, int &sci)
std::vector< std::shared_ptr< FWParameterSetterBase > > m_setters
CmsShowCommon * m_common
TGComboBox * getCombo()
TGFrame * makeSetter(TGCompositeFrame *frame, FWParameterBase *param)
FWColorSelect * m_colorRnrCtxHighlightWidget
FWColorSelect * m_colorRnrCtxSelectWidget