CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/Fireworks/Core/interface/FWViewEnergyScaleEditor.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWViewEnergyScaleEditor_h
00002 #define Fireworks_Core_FWViewEnergyScaleEditor_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWViewEnergyScaleEditor
00007 // 
00016 //
00017 // Original Author:  Alja Mrak-Tadel
00018 //         Created:  Fri Sep 24 18:52:28 CEST 2010
00019 // $Id: FWViewEnergyScaleEditor.h,v 1.3 2012/08/01 00:41:36 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #ifndef __CINT__
00026 #include <boost/shared_ptr.hpp>
00027 #endif
00028 #include "TGFrame.h"
00029 #include "Fireworks/Core/interface/FWParameterSetterEditorBase.h"
00030 
00031 class FWViewEnergyScale;
00032 class FWParameterSetterBase;
00033 class FWParameterBase;
00034 class TGCheckButton;
00035 
00036 // forward declarations
00037 
00038 class FWViewEnergyScaleEditor : public TGVerticalFrame, public FWParameterSetterEditorBase
00039 {
00040 public:
00041    FWViewEnergyScaleEditor( FWViewEnergyScale* s, TGCompositeFrame* w, bool addAutoScaleControll = true);
00042    virtual ~FWViewEnergyScaleEditor();
00043 
00044    // ---------- const member functions ---------------------
00045 
00046    // ---------- static member functions --------------------
00047 
00048    // ---------- member functions ---------------------------
00049    void setEnabled(bool);
00050 
00051    ClassDef(FWViewEnergyScaleEditor, 0);
00052 
00053 private:
00054    FWViewEnergyScaleEditor(const FWViewEnergyScaleEditor&); // stop default
00055    const FWViewEnergyScaleEditor& operator=(const FWViewEnergyScaleEditor&); // stop default
00056    
00057    void addParam(FWParameterBase*, const char* title = 0);   
00058    
00059    // ---------- member data --------------------------------
00060 
00061    FWViewEnergyScale* m_scale;
00062    bool               m_enabled;
00063 
00064 #ifndef __CINT__
00065    std::vector<boost::shared_ptr<FWParameterSetterBase> > m_setters;
00066 #endif
00067 };
00068 
00069 
00070 #endif