Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:31

0001 #ifndef Fireworks_Core_FWEnumParameterSetter_h
0002 #define Fireworks_Core_FWEnumParameterSetter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWEnumParameterSetter
0007 //
0008 /**\class FWEnumParameterSetter FWEnumParameterSetter.h Fireworks/Core/interface/FWEnumParameterSetter.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  matevz
0018 //         Created:  Fri Apr 30 15:17:29 CEST 2010
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/FWEnumParameter.h"
0027 
0028 // forward declarations
0029 class TGComboBox;
0030 
0031 class FWEnumParameterSetter : public FWParameterSetterBase {
0032 public:
0033   FWEnumParameterSetter();
0034   ~FWEnumParameterSetter() override;
0035 
0036   // ---------- const member functions ---------------------
0037 
0038   // ---------- static member functions --------------------
0039 
0040   // ---------- member functions ---------------------------
0041 
0042   TGFrame* build(TGFrame* iParent, bool labelBack = true) override;
0043 
0044   void setEnabled(bool) override;
0045 
0046   void doUpdate(Int_t id);
0047 
0048   TGComboBox* getWidget() { return m_widget; }
0049 
0050   FWEnumParameterSetter(const FWEnumParameterSetter&) = delete;                   // stop default
0051   const FWEnumParameterSetter& operator=(const FWEnumParameterSetter&) = delete;  // stop default
0052 
0053 private:
0054   void attach(FWParameterBase*) override;
0055 
0056   // ---------- member data --------------------------------
0057 
0058   FWEnumParameter* m_param;
0059   TGComboBox* m_widget;
0060 };
0061 
0062 #endif