KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDropDownDialog Class Reference

Detailed Description

Ask user to choose between several options in a drop-down list.

Definition at line 24 of file KVDropDownDialog.h.

#include <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 ()
 Delete all widgets.
 
void CloseWindow ()
 
void DoClose ()
 
void ReadAnswer ()
 

Private Attributes

TStringfAnswer
 the answer to the question
 
TGTextButtonfCancelBut
 Cancel button.
 
TGComboBoxfDropDown
 drop down list
 
TGTransientFramefMain
 
Bool_tfOK
 set to kTRUE if OK button is pressed
 
TGTextButtonfOKBut
 OK button.
 

Constructor & Destructor Documentation

◆ KVDropDownDialog()

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.

◆ ~KVDropDownDialog()

KVDropDownDialog::~KVDropDownDialog ( )
virtual

Delete all widgets.

Definition at line 142 of file KVDropDownDialog.cpp.

Member Function Documentation

◆ CloseWindow()

void KVDropDownDialog::CloseWindow ( )

Definition at line 167 of file KVDropDownDialog.cpp.

◆ DoClose()

void KVDropDownDialog::DoClose ( )

Definition at line 157 of file KVDropDownDialog.cpp.

◆ ReadAnswer()

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.

Member Data Documentation

◆ fAnswer

TString* KVDropDownDialog::fAnswer
private

the answer to the question

Definition at line 30 of file KVDropDownDialog.h.

◆ fCancelBut

TGTextButton* KVDropDownDialog::fCancelBut
private

Cancel button.

Definition at line 33 of file KVDropDownDialog.h.

◆ fDropDown

TGComboBox* KVDropDownDialog::fDropDown
private

drop down list

Definition at line 31 of file KVDropDownDialog.h.

◆ fMain

TGTransientFrame* KVDropDownDialog::fMain
private

Definition at line 29 of file KVDropDownDialog.h.

◆ fOK

Bool_t* KVDropDownDialog::fOK
private

set to kTRUE if OK button is pressed

Definition at line 34 of file KVDropDownDialog.h.

◆ fOKBut

TGTextButton* KVDropDownDialog::fOKBut
private

OK button.

Definition at line 32 of file KVDropDownDialog.h.