KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Attributes | List of all members
KVInputDialog Class Reference

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

TStringfAnswer
 the answer to the question More...
 
TGTextButtonfCancelBut
 Cancel button. More...
 
TGTransientFramefMain
 
Bool_tfOK
 set to kTRUE if OK button is pressed More...
 
TGTextButtonfOKBut
 OK button. More...
 
KVTextEntryfTextEntry
 text entry for answer More...
 

#include <KVInputDialog.h>

Constructor & Destructor Documentation

◆ KVInputDialog()

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.

◆ ~ KVInputDialog()

virtual KVInputDialog::~ KVInputDialog ( )
virtual

Member Function Documentation

◆ CloseWindow()

void KVInputDialog::CloseWindow ( )

Definition at line 149 of file KVInputDialog.cpp.

◆ DoClose()

void KVInputDialog::DoClose ( )

Definition at line 139 of file KVInputDialog.cpp.

◆ ReadAnswer()

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.

Member Data Documentation

◆ fAnswer

TString* KVInputDialog::fAnswer
protected

the answer to the question

Definition at line 29 of file KVInputDialog.h.

◆ fCancelBut

TGTextButton* KVInputDialog::fCancelBut
protected

Cancel button.

Definition at line 32 of file KVInputDialog.h.

◆ fMain

TGTransientFrame* KVInputDialog::fMain
protected

Definition at line 28 of file KVInputDialog.h.

◆ fOK

Bool_t* KVInputDialog::fOK
protected

set to kTRUE if OK button is pressed

Definition at line 33 of file KVInputDialog.h.

◆ fOKBut

TGTextButton* KVInputDialog::fOKBut
protected

OK button.

Definition at line 31 of file KVInputDialog.h.

◆ fTextEntry

KVTextEntry* KVInputDialog::fTextEntry
protected

text entry for answer

Definition at line 30 of file KVInputDialog.h.


The documentation for this class was generated from the following files: