CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/Fireworks/Core/interface/FWEnumParameterSetter.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWEnumParameterSetter_h
00002 #define Fireworks_Core_FWEnumParameterSetter_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWEnumParameterSetter
00007 // 
00016 //
00017 // Original Author:  matevz
00018 //         Created:  Fri Apr 30 15:17:29 CEST 2010
00019 // $Id: FWEnumParameterSetter.h,v 1.3 2011/02/11 19:56:36 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 #include <Rtypes.h>
00024 
00025 // user include files
00026 #include "Fireworks/Core/interface/FWParameterSetterBase.h"
00027 #include "Fireworks/Core/interface/FWEnumParameter.h"
00028 
00029 // forward declarations
00030 class TGComboBox;
00031 
00032 class FWEnumParameterSetter : public FWParameterSetterBase
00033 {
00034 
00035 public:
00036    FWEnumParameterSetter();
00037    virtual ~FWEnumParameterSetter();
00038 
00039    // ---------- const member functions ---------------------
00040 
00041    // ---------- static member functions --------------------
00042 
00043    // ---------- member functions ---------------------------
00044 
00045    virtual TGFrame* build(TGFrame* iParent, bool labelBack = true);
00046 
00047    virtual void setEnabled(bool);
00048 
00049    void doUpdate(Int_t id);
00050 
00051 
00052 private:
00053    FWEnumParameterSetter(const FWEnumParameterSetter&);                  // stop default
00054    const FWEnumParameterSetter& operator=(const FWEnumParameterSetter&); // stop default
00055 
00056    virtual void attach(FWParameterBase*);
00057 
00058    // ---------- member data --------------------------------
00059 
00060    FWEnumParameter *m_param;
00061    TGComboBox      *m_widget;
00062 };
00063 
00064 #endif