4 #ifndef __KVNAMEVALUELISTGUI_H
5 #define __KVNAMEVALUELISTGUI_H
94 if (index < 0)
return nullptr;
111 void DisplayDialog();
#define RQ_OBJECT(sender_class)
GUI for setting KVNameValueList parameters.
TObject * GetDataWidget(int i) const
TGTransientFrame * GetMain() const
ClassDef(KVNameValueListGUI, 1) void DisplayDialog()
virtual TObject * AddABool(Int_t i, TGHorizontalFrame *hf)
virtual TObject * AddAString(Int_t i, TGHorizontalFrame *hf)
virtual TObject * AddAInt(Int_t i, TGHorizontalFrame *hf)
KVNameValueListGUI(const TGWindow *main, KVNameValueList *params, Bool_t *cancel_pressed, Bool_t wait_for_main=kTRUE)
Constructor.
bool EnableDependingOnBool(const TString &value_to_enable, const TString &bool_parameter)
virtual TObject * AddADouble(Int_t i, TGHorizontalFrame *hf)
TObject * GetDataWidget(const TString &parname) const
virtual ~KVNameValueListGUI()
Destructor.
TGTextButton * fCancelBut
Cancel button.
void RestoreData()
return all values to original state
TGTextButton * fOKBut
OK button.
KVNameValueList * theList
KVNameValueList fOriginal
KVNameValueList * GetList() const
Bool_t * fOK
set to kTRUE if OK button is pressed
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
Int_t GetNameIndex(const Char_t *name) const
int main(int argc, char **argv)