CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 <boost/shared_ptr.hpp>
6 #endif
7 #include "GuiTypes.h"
8 #include "TGFrame.h"
10 #ifndef __CINT__
12 #endif
13 
14 class TGHSlider;
15 class TGLabel;
16 class TGTextButton;
17 class TGCheckButton;
18 class CmsShowCommon;
19 class FWColorManager;
20 class FWColorSelect;
21 class FWParameterBase;
23 
24 class CmsShowCommonPopup : public TGTransientFrame,
26 {
27 public:
28  CmsShowCommonPopup( CmsShowCommon*, const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1);
29  virtual ~CmsShowCommonPopup();
30 
31  // ---------- member functions ---------------------------
32 
33  virtual void CloseWindow() { UnmapWindow(); }
34 
35  void switchBackground();
36  void changeGeomColor(Color_t);
37  void changeGeomTransparency2D(int);
38  void changeGeomTransparency3D(int);
39  void changeSelectionColorSet(Color_t);
40  void colorSetChanged();
41 
43 
44 private:
47 
48  void makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
49  void getColorSetColors (int& hci, int& sci);
50  // ---------- member data --------------------------------
51 
53 
54  TGTextButton *m_backgroundButton;
55  TGHSlider *m_gammaSlider;
56  TGTextButton *m_gammaButton;
57 
58 #ifndef __CINT__
62  std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
63 #endif
64 };
65 
66 
67 #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 &)
void makeSetter(TGCompositeFrame *frame, FWParameterBase *param)
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)
CmsShowCommon * m_common
std::vector< boost::shared_ptr< FWParameterSetterBase > > m_setters
unsigned int UInt_t
Definition: FUTypes.h:12
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
FWColorSelect * m_colorRnrCtxHighlightWidget
FWColorSelect * m_colorRnrCtxSelectWidget
T w() const