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.4 2012/05/09 04:51:04 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 TGComboBox* getWidget() { return m_widget; } 00052 00053 private: 00054 FWEnumParameterSetter(const FWEnumParameterSetter&); // stop default 00055 const FWEnumParameterSetter& operator=(const FWEnumParameterSetter&); // stop default 00056 00057 virtual void attach(FWParameterBase*); 00058 00059 // ---------- member data -------------------------------- 00060 00061 FWEnumParameter *m_param; 00062 TGComboBox *m_widget; 00063 }; 00064 00065 #endif