KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVDropDownDialog.h
Go to the documentation of this file.
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 
24 
25  RQ_OBJECT("KVDropDownDialog")
26 
27 protected:
34 
35 public:
36 
37  KVDropDownDialog(const TGWindow* main, const Char_t* question,
38  const Char_t* choice_list, const Char_t* default_choice,
39  TString* chosen, Bool_t* ok);
40  virtual ~ KVDropDownDialog();
41 
42  void ReadAnswer();
43 
44  void DoClose();
45  void CloseWindow();
46 
47  ClassDef(KVDropDownDialog, 0) //General purpose dialog asking to choose from a drop down list
48 };
49 
50 #endif
#define RQ_OBJECT(sender_class)
char Char_t
bool Bool_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)