1 #ifndef EVDB_PARAMETERSETEDITDIALOG_H 63 #define EVDB_PARAMETERSETEDITDIALOG_H 64 #include "RQ_OBJECT.h" 70 class TGTableLayoutHints;
81 class ParameterSetEditFrame;
87 RQ_OBJECT(
"evdb::ParameterSetEditRow")
90 TGHorizontalFrame* lhs,
91 TGHorizontalFrame* rhs,
93 const std::string& key);
97 std::string AsFHICL()
const;
99 void TextEntryReturnPressed();
100 void ListBoxSelectionChanged();
101 void ListBoxSelected(
int id);
102 void RadioButtonClicked();
103 void CheckButtonClicked();
104 void SliderPositionChanged();
107 void SetupTextEntry(TGCompositeFrame*
f,
109 const std::vector<std::string>&
value);
111 void SetupListBox(TGCompositeFrame* f,
112 const std::vector<std::string>& choice,
113 const std::vector<std::string>& value,
116 void SetupRadioButtons(TGCompositeFrame* f,
117 const std::vector<std::string>& choice,
118 const std::vector<std::string>& value);
120 void SetupCheckButton(TGCompositeFrame* f,
121 const std::vector<std::string>& choice,
122 const std::vector<std::string>& value);
124 void SetupSlider(TGCompositeFrame* f,
125 const std::vector<std::string>& choice,
126 const std::vector<std::string>& value);
129 static bool IsLegalGUItag(
const std::string& s);
130 static void ParseGUItag(
const std::string& guitag,
132 std::vector<std::string>& choice);
134 const std::string& key,
137 std::vector<std::string>& choice,
138 std::vector<std::string>& value,
146 TGLayoutHints* fRightLH{
nullptr};
147 TGLayoutHints* fLeftLH{
nullptr};
148 TGTextButton* fLabel{
nullptr};
150 TGTextEntry* fTextEntry{
nullptr};
151 TGListBox* fListBox{
nullptr};
152 TGDoubleSlider* fSlider{
nullptr};
170 RQ_OBJECT(
"evdb:ParameterSetEditFrame")
175 std::string AsFHICL()
const;
177 void HandleMouseWheel(Event_t*
event);
187 std::vector<TGHorizontalFrame*>
fLHS;
188 std::vector<TGHorizontalFrame*>
fRHS;
191 std::vector<ParameterSetEditRow*>
fRow;
203 RQ_OBJECT(
"evdb::ParameterSetEditDialog")
212 std::string TabName(
const std::string& s);
230
std::vector< TGRadioButton * > fRadioButton
TGCompositeFrame * fContainer
std::vector< ParameterSetEditRow * > fRow
TGCompositeFrame * fTopFrame
Manage all things related to colors for the event display.
ParameterSetEditFrame * fFrame
The parent frame.
std::vector< std::string > fChoice
std::vector< TGTableLayoutHints * > fRHSHints
Top-level interface to all parameter sets.
std::vector< TGHorizontalFrame * > fLHS
unsigned int fParameterSetID
TGHorizontalFrame * fMother
Top level frame.
A frame for editing a single paramter set.
std::vector< TGTableLayoutHints * > fLHSHints
TGHorizontalFrame * fButtons
std::vector< TGHorizontalFrame * > fRHS
A single row for editing a single parameter in a set.
std::vector< ParameterSetEditFrame * > fFrames
unsigned int fParameterSetID
std::vector< TGCheckButton * > fCheckButton
Event finding and building.