2 #include "TGComboBox.h"
13 std::vector<std::string>& triggerProcessList)
14 : TGHorizontalFrame(
p),
15 m_guiSelector(nullptr),
16 m_origSelector(nullptr),
23 m_validator(nullptr) {
31 for (std::vector<std::string>::iterator
i = triggerProcessList.begin();
i != triggerProcessList.end(); ++
i) {
32 if (*
i ==
sel->m_triggerProcess)
34 m_combo->AddEntry((*i).c_str(), cnt++);
38 m_combo->AddEntry(
sel->m_triggerProcess.c_str(), cnt);
43 AddFrame(
m_combo,
new TGLayoutHints(kLHintsNormal, 2, 2, 0, 1));
46 m_combo->Connect(
"Selected(const char*)",
"FWGUIEventSelector",
this,
"triggerProcessCallback(const char*)");
55 m_text1->Connect(
"TextChanged(char*)",
"FWGUIEventSelector",
this,
"expressionCallback(char*)");
56 AddFrame(
m_text1,
new TGLayoutHints(kLHintsNormal | kLHintsExpandX, 2, 2, 1, 1));
60 TGCompositeFrame* cfr =
new TGHorizontalFrame(
this, 120, 20, kFixedSize);
61 AddFrame(cfr,
new TGLayoutHints(kLHintsNormal, 2, 2, 1, 3));
67 cfr->AddFrame(
m_text2,
new TGLayoutHints(kLHintsNormal | kLHintsExpandX, 2, 2, 0, 0));
71 TGHorizontalFrame* labFrame =
new TGHorizontalFrame(
this, 60, 22, kFixedSize);
72 AddFrame(labFrame,
new TGLayoutHints(kLHintsBottom, 2, 2, 2, 2));
75 labFrame->AddFrame(
m_nEvents,
new TGLayoutHints(kLHintsCenterY | kLHintsExpandX));
81 m_enableBtn->SetToolTipText(
"Enable/disable the selection");
83 m_enableBtn->Connect(
"Toggled(bool)",
"FWGUIEventSelector",
this,
"enableCallback(bool)");
84 AddFrame(
m_enableBtn,
new TGLayoutHints(kLHintsNormal | kLHintsCenterY, 2, 2, 0, 0));
91 AddFrame(
m_deleteBtn,
new TGLayoutHints(kLHintsRight | kLHintsCenterY, 2, 2, 0, 0));
92 TQObject::Connect(
m_deleteBtn,
"Clicked()",
"FWGUIEventSelector",
this,
"deleteCallback()");
108 Emit(
"removeSelector(FWGUIEventSelector*)", (Long_t)
s);
131 Emit(
"selectorChanged()");