17 #include "TGComboBox.h" 63 TGCompositeFrame*
frame =
new TGHorizontalFrame(iParent);
69 m_widget->AddEntry(me->second.c_str(),
static_cast<Int_t
>(me->first));
70 if (me->second.length() > max_len)
71 max_len = me->second.length();
74 m_widget->Resize(8 * max_len + 20, 20);
77 m_widget->Connect(
"Selected(Int_t)",
"FWEnumParameterSetter",
this,
"doUpdate(Int_t)");
82 frame->AddFrame(
m_widget,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 2, 6, 2, 2));
83 frame->AddFrame(label,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 2, 4, 0, 0));
85 frame->AddFrame(label,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY));
86 frame->AddFrame(
m_widget,
new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 2, 8, 2, 2));
FWParameterSetterEditorBase * frame() const
void attach(FWParameterBase *) override
const std::map< Long_t, std::string > & entryMap() const
TGFrame * build(TGFrame *iParent, bool labelBack=true) override
~FWEnumParameterSetter() override
void setEnabled(bool) override
FWEnumParameter * m_param
const std::string & name() const