KaliVeda
Toolkit for HIC analysis
KVDropDownDialog.h
1 /*
2 $Id: KVDropDownDialog.h,v 1.2 2009/03/03 14:27:15 franklan Exp $
3 $Revision: 1.2 $
4 $Date: 2009/03/03 14:27:15 $
5 $Author: franklan $
6 */
7 
8 #ifndef __KVDropDownDialog_H
9 #define __KVDropDownDialog_H
10 
11 #include "RQ_OBJECT.h"
12 class TGTransientFrame;
13 class TString;
14 class TGComboBox;
15 class TGTextButton;
16 class TGWindow;
17 
25 
26  RQ_OBJECT("KVDropDownDialog")
27 
28 protected:
35 
36 public:
37 
38  KVDropDownDialog(const TGWindow* main, const Char_t* question,
39  const Char_t* choice_list, const Char_t* default_choice,
40  TString* chosen, Bool_t* ok);
41  virtual ~ KVDropDownDialog();
42 
43  void ReadAnswer();
44 
45  void DoClose();
46  void CloseWindow();
47 
48  ClassDef(KVDropDownDialog, 0) //General purpose dialog asking to choose from a drop down list
49 };
50 
51 #endif
#define RQ_OBJECT(sender_class)
bool Bool_t
char Char_t
#define ClassDef(name, id)
Ask user to choose between several options in a drop-down list.
TGTransientFrame * fMain
TGTextButton * fCancelBut
Cancel button.
TString * fAnswer
the answer to the question
Bool_t * fOK
set to kTRUE if OK button is pressed
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()
TGComboBox * fDropDown
drop down list
TGTextButton * fOKBut
OK button.
int main(int argc, char **argv)