CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/Fireworks/Core/interface/CmsShowCommonPopup.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_CmsShowCommonPopup_h
00002 #define Fireworks_Core_CmsShowCommonPopup_h
00003 
00004 #ifndef __CINT__
00005 #include <boost/shared_ptr.hpp>
00006 #endif
00007 #include "GuiTypes.h"
00008 #include "TGFrame.h"
00009 #include "Fireworks/Core/interface/FWParameterSetterEditorBase.h"
00010 #ifndef __CINT__
00011 #include "Fireworks/Core/interface/FWColorManager.h"
00012 #endif
00013 
00014 class TGHSlider;
00015 class TGLabel;
00016 class TGTextButton;
00017 class TGCheckButton;
00018 class CmsShowCommon;
00019 class FWColorManager;
00020 class FWColorSelect;
00021 class FWParameterBase;
00022 class FWParameterSetterBase;
00023 
00024 class CmsShowCommonPopup : public TGTransientFrame, public FWParameterSetterEditorBase
00025 {
00026 public:
00027    CmsShowCommonPopup( CmsShowCommon*, const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1);
00028    virtual ~CmsShowCommonPopup();
00029 
00030    // ---------- member functions ---------------------------
00031 
00032    virtual void CloseWindow() { UnmapWindow(); }
00033 
00034    void switchBackground();
00035    void changeGeomColor(Color_t);
00036    void changeGeomTransparency2D(int);
00037    void changeGeomTransparency3D(int);
00038    void colorSetChanged();
00039  
00040    ClassDef(CmsShowCommonPopup, 0);
00041 
00042 private:
00043    CmsShowCommonPopup(const CmsShowCommonPopup&);
00044    const CmsShowCommonPopup& operator=(const CmsShowCommonPopup&);
00045 
00046    void makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
00047    // ---------- member data --------------------------------
00048 
00049    CmsShowCommon  *m_common;
00050 
00051    TGTextButton   *m_backgroundButton;
00052    TGHSlider      *m_gammaSlider;
00053    TGTextButton   *m_gammaButton;
00054 
00055 #ifndef __CINT__
00056    FWColorSelect* m_colorSelectWidget[kFWGeomColorSize];
00057    std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
00058 #endif
00059 };
00060 
00061 
00062 #endif