LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
A single row for editing a single parameter in a set. More...
#include "ParameterSetEditDialog.h"
Public Member Functions | |
ParameterSetEditRow (ParameterSetEditFrame *frame, TGHorizontalFrame *lhs, TGHorizontalFrame *rhs, const fhicl::ParameterSet &ps, const std::string &key) | |
~ParameterSetEditRow () | |
void | Finalize () |
std::string | AsFHICL () const |
void | TextEntryReturnPressed () |
void | ListBoxSelectionChanged () |
void | ListBoxSelected (int id) |
void | RadioButtonClicked () |
void | CheckButtonClicked () |
void | SliderPositionChanged () |
Public Attributes | |
ParameterSetEditFrame * | fFrame |
The parent frame. More... | |
TGHorizontalFrame * | fMother |
Top level frame. More... | |
TGLayoutHints * | fRightLH |
Align to right. More... | |
TGLayoutHints * | fLeftLH |
Align to left. More... | |
TGTextButton * | fLabel |
Label on the left. More... | |
TGTextEntry * | fTextEntry |
TGListBox * | fListBox |
TGDoubleSlider * | fSlider |
std::vector< TGRadioButton * > | fRadioButton |
std::vector< TGCheckButton * > | fCheckButton |
unsigned int | fParamFlags |
std::string | fKEY |
std::string | fGUI |
std::string | fDOC |
std::vector< std::string > | fChoice |
std::string | fValue |
Private Member Functions | |
void | SetupTextEntry (TGCompositeFrame *f, unsigned int flags, const std::vector< std::string > &value) |
void | SetupListBox (TGCompositeFrame *f, const std::vector< std::string > &choice, const std::vector< std::string > &value, bool ismulti) |
void | SetupRadioButtons (TGCompositeFrame *f, const std::vector< std::string > &choice, const std::vector< std::string > &value) |
void | SetupCheckButton (TGCompositeFrame *f, const std::vector< std::string > &choice, const std::vector< std::string > &value) |
void | SetupSlider (TGCompositeFrame *f, const std::vector< std::string > &choice, const std::vector< std::string > &value) |
Static Private Member Functions | |
static bool | IsLegalGUItag (const std::string &s) |
static void | ParseGUItag (const std::string &guitag, std::string &frame, std::vector< std::string > &choice) |
static void | UnpackParameter (const fhicl::ParameterSet &ps, const std::string &key, unsigned int &flags, std::string &tag, std::vector< std::string > &choice, std::vector< std::string > &value, std::string &gui, std::string &doc) |
A single row for editing a single parameter in a set.
===================================================================
Definition at line 85 of file ParameterSetEditDialog.h.
ParameterSetEditRow::ParameterSetEditRow | ( | ParameterSetEditFrame * | frame, |
TGHorizontalFrame * | lhs, | ||
TGHorizontalFrame * | rhs, | ||
const fhicl::ParameterSet & | ps, | ||
const std::string & | key | ||
) |
Definition at line 71 of file ParameterSetEditDialog.cxx.
References fChoice, fDOC, fGUI, fLabel, fLeftLH, fParamFlags, fRightLH, fValue, kCHECK_BOX, kINTEGER_PARAM, kLIST_BOX_MULTI, kLIST_BOX_SINGLE, kPARAMETER_SET_PARAM, kRADIO_BUTTONS, kSLIDER, kSLIDER_INT, kTEXT_ENTRY, kVECTOR_PARAM, SetupCheckButton(), SetupListBox(), SetupRadioButtons(), SetupSlider(), SetupTextEntry(), and UnpackParameter().
ParameterSetEditRow::~ParameterSetEditRow | ( | ) |
Definition at line 153 of file ParameterSetEditDialog.cxx.
References fCheckButton, fLabel, fLeftLH, fListBox, fRadioButton, fRightLH, fSlider, and fTextEntry.
std::string ParameterSetEditRow::AsFHICL | ( | ) | const |
Definition at line 632 of file ParameterSetEditDialog.cxx.
References fDOC, fGUI, fKEY, fParamFlags, fValue, kNO_GUI_TAGS, and s.
void ParameterSetEditRow::CheckButtonClicked | ( | ) |
Definition at line 573 of file ParameterSetEditDialog.cxx.
References fCheckButton, fFrame, fValue, evdb::ParameterSetEditFrame::Modified(), and fhicl::detail::atom::value().
void ParameterSetEditRow::Finalize | ( | ) |
Definition at line 621 of file ParameterSetEditDialog.cxx.
References fTextEntry, fValue, and TextEntryReturnPressed().
|
staticprivate |
Definition at line 320 of file ParameterSetEditDialog.cxx.
References LOG_ERROR.
Referenced by ParseGUItag().
void ParameterSetEditRow::ListBoxSelected | ( | int | id | ) |
Definition at line 543 of file ParameterSetEditDialog.cxx.
References fChoice, fFrame, fListBox, fValue, and evdb::ParameterSetEditFrame::Modified().
void ParameterSetEditRow::ListBoxSelectionChanged | ( | ) |
Definition at line 517 of file ParameterSetEditDialog.cxx.
References fChoice, fFrame, fListBox, fValue, and evdb::ParameterSetEditFrame::Modified().
|
staticprivate |
Definition at line 291 of file ParameterSetEditDialog.cxx.
References IsLegalGUItag(), kTEXT_ENTRY, and s.
Referenced by UnpackParameter().
void ParameterSetEditRow::RadioButtonClicked | ( | ) |
Definition at line 554 of file ParameterSetEditDialog.cxx.
References fFrame, fRadioButton, fValue, evdb::ParameterSetEditFrame::Modified(), and fhicl::detail::atom::value().
|
private |
Definition at line 417 of file ParameterSetEditDialog.cxx.
References fCheckButton.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 361 of file ParameterSetEditDialog.cxx.
References fListBox, kRowH, and kRowW.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 393 of file ParameterSetEditDialog.cxx.
References fRadioButton.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 438 of file ParameterSetEditDialog.cxx.
References fSlider, fTextEntry, kRowH, kRowW, max, and min.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 331 of file ParameterSetEditDialog.cxx.
References fTextEntry, kPARAMETER_SET_PARAM, kRowH, kRowW, and kVECTOR_PARAM.
Referenced by ParameterSetEditRow().
void ParameterSetEditRow::SliderPositionChanged | ( | ) |
Definition at line 587 of file ParameterSetEditDialog.cxx.
References fFrame, fParamFlags, fSlider, fTextEntry, fValue, kINTEGER_PARAM, kVECTOR_PARAM, and evdb::ParameterSetEditFrame::Modified().
void ParameterSetEditRow::TextEntryReturnPressed | ( | ) |
Definition at line 488 of file ParameterSetEditDialog.cxx.
References larg4::f1, larg4::f2, fFrame, fSlider, fTextEntry, fValue, evdb::ParameterSetEditFrame::Modified(), and n.
Referenced by Finalize().
|
staticprivate |
Definition at line 172 of file ParameterSetEditDialog.cxx.
References fhicl::ParameterSet::get(), kHAVE_GUI_TAGS, kNO_GUI_TAGS, kPARAMETER_SET_PARAM, kSINGLE_VALUED_PARAM, kTEXT_ENTRY, kVECTOR_PARAM, LOG_ERROR, ParseGUItag(), s, and fhicl::ParameterSet::to_string().
Referenced by ParameterSetEditRow().
std::vector<TGCheckButton*> evdb::ParameterSetEditRow::fCheckButton |
Definition at line 153 of file ParameterSetEditDialog.h.
Referenced by CheckButtonClicked(), SetupCheckButton(), and ~ParameterSetEditRow().
std::vector<std::string> evdb::ParameterSetEditRow::fChoice |
Definition at line 159 of file ParameterSetEditDialog.h.
Referenced by ListBoxSelected(), ListBoxSelectionChanged(), and ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fDOC |
Definition at line 158 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), and ParameterSetEditRow().
ParameterSetEditFrame* evdb::ParameterSetEditRow::fFrame |
The parent frame.
Definition at line 142 of file ParameterSetEditDialog.h.
Referenced by CheckButtonClicked(), ListBoxSelected(), ListBoxSelectionChanged(), RadioButtonClicked(), SliderPositionChanged(), and TextEntryReturnPressed().
std::string evdb::ParameterSetEditRow::fGUI |
Definition at line 157 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), and ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fKEY |
Definition at line 156 of file ParameterSetEditDialog.h.
Referenced by AsFHICL().
TGTextButton* evdb::ParameterSetEditRow::fLabel |
Label on the left.
Definition at line 147 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGLayoutHints* evdb::ParameterSetEditRow::fLeftLH |
Align to left.
Definition at line 146 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGListBox* evdb::ParameterSetEditRow::fListBox |
Definition at line 150 of file ParameterSetEditDialog.h.
Referenced by ListBoxSelected(), ListBoxSelectionChanged(), SetupListBox(), and ~ParameterSetEditRow().
TGHorizontalFrame* evdb::ParameterSetEditRow::fMother |
Top level frame.
Definition at line 144 of file ParameterSetEditDialog.h.
unsigned int evdb::ParameterSetEditRow::fParamFlags |
Definition at line 155 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), ParameterSetEditRow(), and SliderPositionChanged().
std::vector<TGRadioButton*> evdb::ParameterSetEditRow::fRadioButton |
Definition at line 152 of file ParameterSetEditDialog.h.
Referenced by RadioButtonClicked(), SetupRadioButtons(), and ~ParameterSetEditRow().
TGLayoutHints* evdb::ParameterSetEditRow::fRightLH |
Align to right.
Definition at line 145 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGDoubleSlider* evdb::ParameterSetEditRow::fSlider |
Definition at line 151 of file ParameterSetEditDialog.h.
Referenced by SetupSlider(), SliderPositionChanged(), TextEntryReturnPressed(), and ~ParameterSetEditRow().
TGTextEntry* evdb::ParameterSetEditRow::fTextEntry |
Definition at line 149 of file ParameterSetEditDialog.h.
Referenced by Finalize(), SetupSlider(), SetupTextEntry(), SliderPositionChanged(), TextEntryReturnPressed(), and ~ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fValue |
Definition at line 160 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), CheckButtonClicked(), Finalize(), ListBoxSelected(), ListBoxSelectionChanged(), ParameterSetEditRow(), RadioButtonClicked(), SliderPositionChanged(), and TextEntryReturnPressed().