2 #include "TGComboBox.h"
32 for ( std::vector<std::string>::iterator
i = triggerProcessList.begin();
i!=triggerProcessList.end(); ++
i)
35 m_combo->AddEntry((*i).c_str(), cnt++);
45 AddFrame(
m_combo,
new TGLayoutHints(kLHintsNormal, 2,2,0,1));
48 m_combo->Connect(
"Selected(const char*)",
"FWGUIEventSelector",
this,
"triggerProcessCallback(const char*)");
57 m_text1->Connect(
"TextChanged(char*)",
"FWGUIEventSelector",
this,
"expressionCallback(char*)");
58 AddFrame(
m_text1,
new TGLayoutHints(kLHintsNormal | kLHintsExpandX, 2,2,1,1));
62 TGCompositeFrame *cfr =
new TGHorizontalFrame(
this, 120, 20, kFixedSize);
63 AddFrame(cfr,
new TGLayoutHints( kLHintsNormal, 2, 2, 1, 3 ));
69 cfr->AddFrame(
m_text2,
new TGLayoutHints(kLHintsNormal | kLHintsExpandX, 2,2,0,0));
73 TGHorizontalFrame* labFrame =
new TGHorizontalFrame(
this, 60, 22, kFixedSize);
74 AddFrame(labFrame,
new TGLayoutHints(kLHintsBottom, 2, 2, 2, 2));
77 labFrame->AddFrame(
m_nEvents,
new TGLayoutHints(kLHintsCenterY|kLHintsExpandX));
83 m_enableBtn->SetToolTipText(
"Enable/disable the selection");
85 m_enableBtn->Connect(
"Toggled(bool)",
"FWGUIEventSelector",
this,
"enableCallback(bool)");
86 AddFrame(
m_enableBtn,
new TGLayoutHints(kLHintsNormal | kLHintsCenterY , 2, 2, 0, 0));
92 AddFrame(
m_deleteBtn,
new TGLayoutHints(kLHintsRight|kLHintsCenterY, 2,2,0, 0));
93 TQObject::Connect(
m_deleteBtn,
"Clicked()",
"FWGUIEventSelector",
this,
"deleteCallback()");
113 Emit(
"removeSelector(FWGUIEventSelector*)", (Long_t)s);
141 Emit(
"selectorChanged()");
static const TString & coreIcondir()
void removeSelector(FWGUIEventSelector *)
FWGUIValidatingTextEntry * m_text2
FWGUIValidatingTextEntry * m_text1
void expressionCallback(char *)
std::string m_triggerProcess
FWGUIEventSelector(TGCompositeFrame *p, FWEventSelector *sel, std::vector< std::string > &triggerProcessList)
FWEventSelector * m_origSelector
void setProcess(const char *x)
FWHLTValidator * m_validator
T x() const
Cartesian x coordinate.
FWCustomIconsButton * m_deleteBtn
void setValidator(FWValidatorBase *)
std::string m_description
virtual ~FWGUIEventSelector()
FWEventSelector * m_guiSelector
void triggerProcessCallback(const char *)
void enableCallback(bool)
TGCheckButton * m_enableBtn