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