KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Ask user to choose between several options in a drop-down list.
Definition at line 23 of file KVDropDownDialog.h.
Public Member Functions | |
KVDropDownDialog (const TGWindow *main, const Char_t *question, const Char_t *choice_list, const Char_t *default_choice, TString *chosen, Bool_t *ok) | |
virtual | ~ KVDropDownDialog () |
void | CloseWindow () |
void | DoClose () |
void | ReadAnswer () |
Protected Attributes | |
TString * | fAnswer |
the answer to the question More... | |
TGTextButton * | fCancelBut |
Cancel button. More... | |
TGComboBox * | fDropDown |
drop down list More... | |
TGTransientFrame * | fMain |
Bool_t * | fOK |
set to kTRUE if OK button is pressed More... | |
TGTextButton * | fOKBut |
OK button. More... | |
#include <KVDropDownDialog.h>
KVDropDownDialog::KVDropDownDialog | ( | const TGWindow * | main, |
const Char_t * | question, | ||
const Char_t * | choice_list, | ||
const Char_t * | default_choice, | ||
TString * | chosen, | ||
Bool_t * | ok | ||
) |
Create the dialog box asking a "question". Possible answers are in "choice list" (whitespace-separated list). Default choice (will be visible in combo box when dialog opens) is "default". The Bool_t variable will be set to kTRUE if "OK" is pressed (kFALSE otherwise) Optional argument 'tooltip' will be displayed when mouse held over text entry widget
Definition at line 28 of file KVDropDownDialog.cpp.
|
virtual |
void KVDropDownDialog::CloseWindow | ( | ) |
Definition at line 167 of file KVDropDownDialog.cpp.
void KVDropDownDialog::DoClose | ( | ) |
Definition at line 157 of file KVDropDownDialog.cpp.
void KVDropDownDialog::ReadAnswer | ( | ) |
Read text from drop down list and store in "answer" TString. Set "ok" Bool_t flag to kTRUE
Definition at line 178 of file KVDropDownDialog.cpp.
|
protected |
the answer to the question
Definition at line 29 of file KVDropDownDialog.h.
|
protected |
Cancel button.
Definition at line 32 of file KVDropDownDialog.h.
|
protected |
drop down list
Definition at line 30 of file KVDropDownDialog.h.
|
protected |
Definition at line 28 of file KVDropDownDialog.h.
|
protected |
set to kTRUE if OK button is pressed
Definition at line 33 of file KVDropDownDialog.h.
|
protected |
OK button.
Definition at line 31 of file KVDropDownDialog.h.