00001 #ifndef Fireworks_Core_FWBoolParameterSetter_h 00002 #define Fireworks_Core_FWBoolParameterSetter_h 00003 // -*- C++ -*- 00004 // 00005 // Package: Core 00006 // Class : FWBoolParameterSetter 00007 // 00016 // 00017 // Original Author: Chris Jones 00018 // Created: Mon Mar 10 11:22:26 CDT 2008 00019 // $Id: FWBoolParameterSetter.h,v 1.6 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/FWBoolParameter.h" 00028 00029 // forward declarations 00030 class TGCheckButton; 00031 00032 class FWBoolParameterSetter : public FWParameterSetterBase 00033 { 00034 00035 public: 00036 FWBoolParameterSetter(); 00037 virtual ~FWBoolParameterSetter(); 00038 00039 // ---------- const member functions --------------------- 00040 00041 // ---------- static member functions -------------------- 00042 00043 // ---------- member functions --------------------------- 00044 virtual void attach(FWParameterBase*) ; 00045 virtual TGFrame* build(TGFrame* iParent, bool labelBack = true) ; 00046 virtual void setEnabled(bool); 00047 void doUpdate(); 00048 00049 private: 00050 FWBoolParameterSetter(const FWBoolParameterSetter&); // stop default 00051 00052 const FWBoolParameterSetter& operator=(const FWBoolParameterSetter&); // stop default 00053 00054 // ---------- member data -------------------------------- 00055 FWBoolParameter* m_param; 00056 TGCheckButton* m_widget; 00057 }; 00058 00059 00060 #endif