KaliVeda
1.13/01
Heavy-Ion Analysis Toolkit
|
General purpose dialog box asking for some input in the form of a string.
Definition at line 23 of file KVInputDialog.h.
Public Member Functions | |
KVInputDialog (const TGWindow *main, const Char_t *question, TString *answer, Bool_t *ok, const Char_t *tooltip="") | |
virtual | ~ KVInputDialog () |
void | CloseWindow () |
void | DoClose () |
void | ReadAnswer () |
Protected Attributes | |
TString * | fAnswer |
the answer to the question More... | |
TGTextButton * | fCancelBut |
Cancel button. More... | |
TGTransientFrame * | fMain |
Bool_t * | fOK |
set to kTRUE if OK button is pressed More... | |
TGTextButton * | fOKBut |
OK button. More... | |
KVTextEntry * | fTextEntry |
text entry for answer More... | |
#include <KVInputDialog.h>
KVInputDialog::KVInputDialog | ( | const TGWindow * | main, |
const Char_t * | question, | ||
TString * | answer, | ||
Bool_t * | ok, | ||
const Char_t * | tooltip = "" |
||
) |
Create the dialog box asking a "question" and receiving the "answer" If you want a default value to appear, put it in 'answer' before opening dialogue 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 25 of file KVInputDialog.cpp.
|
virtual |
void KVInputDialog::CloseWindow | ( | ) |
Definition at line 149 of file KVInputDialog.cpp.
void KVInputDialog::DoClose | ( | ) |
Definition at line 139 of file KVInputDialog.cpp.
void KVInputDialog::ReadAnswer | ( | ) |
Read text from text entry widget and store in "answer" TString. Set "ok" Bool_t flag to kTRUE
Definition at line 160 of file KVInputDialog.cpp.
|
protected |
the answer to the question
Definition at line 29 of file KVInputDialog.h.
|
protected |
Cancel button.
Definition at line 32 of file KVInputDialog.h.
|
protected |
Definition at line 28 of file KVInputDialog.h.
|
protected |
set to kTRUE if OK button is pressed
Definition at line 33 of file KVInputDialog.h.
|
protected |
OK button.
Definition at line 31 of file KVInputDialog.h.
|
protected |
text entry for answer
Definition at line 30 of file KVInputDialog.h.