File indexing completed on 2024-04-06 12:11:31
0001 #ifndef Fireworks_Core_FWEnumParameterSetter_h
0002 #define Fireworks_Core_FWEnumParameterSetter_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <Rtypes.h>
0023
0024
0025 #include "Fireworks/Core/interface/FWParameterSetterBase.h"
0026 #include "Fireworks/Core/interface/FWEnumParameter.h"
0027
0028
0029 class TGComboBox;
0030
0031 class FWEnumParameterSetter : public FWParameterSetterBase {
0032 public:
0033 FWEnumParameterSetter();
0034 ~FWEnumParameterSetter() override;
0035
0036
0037
0038
0039
0040
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;
0051 const FWEnumParameterSetter& operator=(const FWEnumParameterSetter&) = delete;
0052
0053 private:
0054 void attach(FWParameterBase*) override;
0055
0056
0057
0058 FWEnumParameter* m_param;
0059 TGComboBox* m_widget;
0060 };
0061
0062 #endif