CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void changeSelectionColorSet(Color_t)
CmsShowCommonPopup(CmsShowCommon *, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
FWColorSelect * m_colorSelectWidget[kFWGeomColorSize]
const CmsShowCommonPopup & operator=(const CmsShowCommonPopup &)
const double w
Definition: UKUtility.cc:23
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()
void CloseWindow() override
TGFrame * makeSetter(TGCompositeFrame *frame, FWParameterBase *param)
FWColorSelect * m_colorRnrCtxHighlightWidget
FWColorSelect * m_colorRnrCtxSelectWidget
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
ClassDefOverride(CmsShowCommonPopup, 0)