Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:46:23

0001 #ifndef Fireworks_Core_FWBoolParameterSetter_h
0002 #define Fireworks_Core_FWBoolParameterSetter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWBoolParameterSetter
0007 //
0008 /**\class FWBoolParameterSetter FWBoolParameterSetter.h Fireworks/Core/interface/FWBoolParameterSetter.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Mon Mar 10 11:22:26 CDT 2008
0019 //
0020 
0021 // system include files
0022 #include <Rtypes.h>
0023 
0024 // user include files
0025 #include "Fireworks/Core/interface/FWParameterSetterBase.h"
0026 #include "Fireworks/Core/interface/FWBoolParameter.h"
0027 
0028 // forward declarations
0029 class TGCheckButton;
0030 
0031 class FWBoolParameterSetter : public FWParameterSetterBase {
0032 public:
0033   FWBoolParameterSetter();
0034   ~FWBoolParameterSetter() override;
0035 
0036   // ---------- const member functions ---------------------
0037 
0038   // ---------- static member functions --------------------
0039 
0040   // ---------- member functions ---------------------------
0041   void attach(FWParameterBase*) override;
0042   TGFrame* build(TGFrame* iParent, bool labelBack = true) override;
0043   void setEnabled(bool) override;
0044   void doUpdate();
0045 
0046   FWBoolParameterSetter(const FWBoolParameterSetter&) = delete;  // stop default
0047 
0048   const FWBoolParameterSetter& operator=(const FWBoolParameterSetter&) = delete;  // stop default
0049 
0050 private:
0051   // ---------- member data --------------------------------
0052   FWBoolParameter* m_param;
0053   TGCheckButton* m_widget;
0054 };
0055 
0056 #endif