LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 {nullptr} |
Align to right. More... | |
TGLayoutHints * | fLeftLH {nullptr} |
Align to left. More... | |
TGTextButton * | fLabel {nullptr} |
Label on the left. More... | |
TGTextEntry * | fTextEntry {nullptr} |
TGListBox * | fListBox {nullptr} |
TGDoubleSlider * | fSlider {nullptr} |
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 86 of file ParameterSetEditDialog.h.
ParameterSetEditRow::ParameterSetEditRow | ( | ParameterSetEditFrame * | frame, |
TGHorizontalFrame * | lhs, | ||
TGHorizontalFrame * | rhs, | ||
const fhicl::ParameterSet & | ps, | ||
const std::string & | key | ||
) |
Definition at line 84 of file ParameterSetEditDialog.cxx.
References util::empty(), fChoice, fDOC, fGUI, fLabel, fLeftLH, fParamFlags, fRightLH, fValue, n, SetupCheckButton(), SetupListBox(), SetupRadioButtons(), SetupSlider(), SetupTextEntry(), util::size(), UnpackParameter(), and util::values().
ParameterSetEditRow::~ParameterSetEditRow | ( | ) |
Definition at line 160 of file ParameterSetEditDialog.cxx.
References fCheckButton, fLabel, fLeftLH, fListBox, fRadioButton, fRightLH, fSlider, and fTextEntry.
std::string ParameterSetEditRow::AsFHICL | ( | ) | const |
Definition at line 656 of file ParameterSetEditDialog.cxx.
References fDOC, fGUI, fKEY, fParamFlags, and fValue.
void ParameterSetEditRow::CheckButtonClicked | ( | ) |
Definition at line 598 of file ParameterSetEditDialog.cxx.
References fCheckButton, fFrame, fValue, evdb::ParameterSetEditFrame::Modified(), and value.
void ParameterSetEditRow::Finalize | ( | ) |
Definition at line 646 of file ParameterSetEditDialog.cxx.
References fTextEntry, fValue, and TextEntryReturnPressed().
|
staticprivate |
Definition at line 321 of file ParameterSetEditDialog.cxx.
References MF_LOG_ERROR.
Referenced by ParseGUItag().
void ParameterSetEditRow::ListBoxSelected | ( | int | id | ) |
Definition at line 565 of file ParameterSetEditDialog.cxx.
References fChoice, fFrame, fListBox, fValue, and evdb::ParameterSetEditFrame::Modified().
void ParameterSetEditRow::ListBoxSelectionChanged | ( | ) |
Definition at line 537 of file ParameterSetEditDialog.cxx.
References fChoice, fFrame, fListBox, fValue, and evdb::ParameterSetEditFrame::Modified().
|
staticprivate |
Definition at line 293 of file ParameterSetEditDialog.cxx.
References IsLegalGUItag().
Referenced by UnpackParameter().
void ParameterSetEditRow::RadioButtonClicked | ( | ) |
Definition at line 578 of file ParameterSetEditDialog.cxx.
References fFrame, fRadioButton, fValue, evdb::ParameterSetEditFrame::Modified(), and value.
|
private |
Definition at line 430 of file ParameterSetEditDialog.cxx.
References fCheckButton.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 370 of file ParameterSetEditDialog.cxx.
References fListBox, and util::size().
Referenced by ParameterSetEditRow().
|
private |
Definition at line 406 of file ParameterSetEditDialog.cxx.
References fRadioButton.
Referenced by ParameterSetEditRow().
|
private |
Definition at line 451 of file ParameterSetEditDialog.cxx.
References fSlider, fTextEntry, and util::size().
Referenced by ParameterSetEditRow().
|
private |
Definition at line 334 of file ParameterSetEditDialog.cxx.
References fTextEntry, and util::size().
Referenced by ParameterSetEditRow().
void ParameterSetEditRow::SliderPositionChanged | ( | ) |
Definition at line 614 of file ParameterSetEditDialog.cxx.
References fFrame, fParamFlags, fSlider, fTextEntry, fValue, and evdb::ParameterSetEditFrame::Modified().
void ParameterSetEditRow::TextEntryReturnPressed | ( | ) |
Definition at line 508 of file ParameterSetEditDialog.cxx.
References f1, f2, fFrame, fSlider, fTextEntry, fValue, evdb::ParameterSetEditFrame::Modified(), and n.
Referenced by Finalize().
|
staticprivate |
Definition at line 175 of file ParameterSetEditDialog.cxx.
References util::empty(), fhicl::ParameterSet::get(), MF_LOG_ERROR, ParseGUItag(), util::size(), tmp, and fhicl::ParameterSet::to_string().
Referenced by ParameterSetEditRow().
std::vector<TGCheckButton*> evdb::ParameterSetEditRow::fCheckButton |
Definition at line 154 of file ParameterSetEditDialog.h.
Referenced by CheckButtonClicked(), SetupCheckButton(), and ~ParameterSetEditRow().
std::vector<std::string> evdb::ParameterSetEditRow::fChoice |
Definition at line 161 of file ParameterSetEditDialog.h.
Referenced by ListBoxSelected(), ListBoxSelectionChanged(), and ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fDOC |
Definition at line 160 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), and ParameterSetEditRow().
ParameterSetEditFrame* evdb::ParameterSetEditRow::fFrame |
The parent frame.
Definition at line 143 of file ParameterSetEditDialog.h.
Referenced by CheckButtonClicked(), ListBoxSelected(), ListBoxSelectionChanged(), RadioButtonClicked(), SliderPositionChanged(), and TextEntryReturnPressed().
std::string evdb::ParameterSetEditRow::fGUI |
Definition at line 159 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), and ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fKEY |
Definition at line 158 of file ParameterSetEditDialog.h.
Referenced by AsFHICL().
TGTextButton* evdb::ParameterSetEditRow::fLabel {nullptr} |
Label on the left.
Definition at line 148 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGLayoutHints* evdb::ParameterSetEditRow::fLeftLH {nullptr} |
Align to left.
Definition at line 147 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGListBox* evdb::ParameterSetEditRow::fListBox {nullptr} |
Definition at line 151 of file ParameterSetEditDialog.h.
Referenced by ListBoxSelected(), ListBoxSelectionChanged(), SetupListBox(), and ~ParameterSetEditRow().
TGHorizontalFrame* evdb::ParameterSetEditRow::fMother |
Top level frame.
Definition at line 145 of file ParameterSetEditDialog.h.
unsigned int evdb::ParameterSetEditRow::fParamFlags |
Definition at line 157 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), ParameterSetEditRow(), and SliderPositionChanged().
std::vector<TGRadioButton*> evdb::ParameterSetEditRow::fRadioButton |
Definition at line 153 of file ParameterSetEditDialog.h.
Referenced by RadioButtonClicked(), SetupRadioButtons(), and ~ParameterSetEditRow().
TGLayoutHints* evdb::ParameterSetEditRow::fRightLH {nullptr} |
Align to right.
Definition at line 146 of file ParameterSetEditDialog.h.
Referenced by ParameterSetEditRow(), and ~ParameterSetEditRow().
TGDoubleSlider* evdb::ParameterSetEditRow::fSlider {nullptr} |
Definition at line 152 of file ParameterSetEditDialog.h.
Referenced by SetupSlider(), SliderPositionChanged(), TextEntryReturnPressed(), and ~ParameterSetEditRow().
TGTextEntry* evdb::ParameterSetEditRow::fTextEntry {nullptr} |
Definition at line 150 of file ParameterSetEditDialog.h.
Referenced by Finalize(), SetupSlider(), SetupTextEntry(), SliderPositionChanged(), TextEntryReturnPressed(), and ~ParameterSetEditRow().
std::string evdb::ParameterSetEditRow::fValue |
Definition at line 162 of file ParameterSetEditDialog.h.
Referenced by AsFHICL(), CheckButtonClicked(), Finalize(), ListBoxSelected(), ListBoxSelectionChanged(), ParameterSetEditRow(), RadioButtonClicked(), SliderPositionChanged(), and TextEntryReturnPressed().