41 unsigned int nCategories = opts->
fCategories.size();
43 fFrame =
new TGGroupFrame(
f,
"Please complete these fields", kVerticalFrame);
58 for(
unsigned int c = 0;
c < nCategories; ++
c){
59 std::vector<std::string>
types;
60 std::vector<std::string>
labels;
72 TGGroupFrame *catframe = 0;
73 catframe =
new TGGroupFrame(
fFrame,
75 kRaisedFrame|kVerticalFrame);
82 for(
unsigned int i = 0; i < types.size(); ++i){
83 TGHorizontalFrame* fieldframe =
new TGHorizontalFrame(catframe);
87 if(types[i] ==
"Text") {
88 TGLabel *
l =
new TGLabel(fieldframe, labels[i].c_str());
89 fieldframe->AddFrame(l);
90 fTextBoxes.push_back(
new TGTextEntry(fieldframe));
94 if(types[i] ==
"Number"){
95 TGLabel *l =
new TGLabel(fieldframe, labels[i].c_str());
96 fieldframe->AddFrame(l);
98 ne =
new TGNumberEntry(fieldframe,
102 TGNumberFormat::kNESInteger);
103 fieldframe->AddFrame(ne);
109 if(types[i] ==
"CheckButton"){
110 TGCheckButton* cb =
new TGCheckButton(fieldframe,
113 fieldframe->AddFrame(cb);
117 if(types[i] ==
"RadioButton"){
118 TGRadioButton* rb =
new TGRadioButton(fieldframe,
121 fieldframe->AddFrame(rb);
122 rb->Connect(
"Clicked()",
136 fFrame->Connect(
"ProcessedEvent(Event_t*)",
139 "HandleMouseWheel(Event_t*)");
std::vector< unsigned int > fFieldsPerCategory
names of the various categories for the scan
TGLayoutHints * fFieldFrameHints
TGLayoutHints * fCatFrameLH
std::vector< TGTextEntry * > fTextBoxes
Text box fields.
std::vector< TGCheckButton * > fCheckButtons
Check button fields.
std::vector< int > fRadioButtonIds
Ids for the radio buttons.
TGLayoutHints * fFrameHints
std::vector< std::string > fFieldLabels
types of the fields, ie TextEntry, Buttons, NumberEntry, etc
std::vector< std::string > fFieldTypes
number of fields in each category
std::vector< TGNumberEntry * > fNumberBoxes
Number box fields.
std::vector< std::string > fCategories
base file name for scanning
static const char types[][NUM_HTML_LIST_TYPES]
std::vector< TGGroupFrame * > fCatFrames
Mother for a category.
std::vector< TGLabel * > fNumberLabels
Label for number fields.
std::vector< TGRadioButton * > fRadioButtons
Radio button fields.
std::vector< TGHorizontalFrame * > fFieldFrames
Mother for each field.