KaliVeda
Toolkit for HIC analysis
KVInputDialog.h
1 /*
2 $Id: KVInputDialog.h,v 1.4 2007/12/11 16:04:28 franklan Exp $
3 $Revision: 1.4 $
4 $Date: 2007/12/11 16:04:28 $
5 $Author: franklan $
6 */
7 
8 #ifndef __KVINPUTDIALOG_H
9 #define __KVINPUTDIALOG_H
10 
11 #include "RQ_OBJECT.h"
12 class TGTransientFrame;
13 class TString;
14 class KVTextEntry;
15 class TGTextButton;
16 class TGWindow;
17 
25 
26  RQ_OBJECT("KVInputDialog")
27 
28 protected:
29  TGTransientFrame* fMain;
30  TString* fAnswer;
31  KVTextEntry* fTextEntry;
32  TGTextButton* fOKBut;
33  TGTextButton* fCancelBut;
34  Bool_t* fOK;
35 
36 public:
37 
38  KVInputDialog(const TGWindow* main, const Char_t* question,
39  TString* answer, Bool_t* ok, const Char_t* tooltip =
40  "");
41  virtual ~ KVInputDialog();
42 
43  void ReadAnswer();
44 
45  void DoClose();
46  void CloseWindow();
47 
48  ClassDef(KVInputDialog, 0) //General purpose dialog asking for a string value
49 };
50 
51 #endif
#define RQ_OBJECT(sender_class)
bool Bool_t
char Char_t
#define ClassDef(name, id)
General purpose dialog box asking for some input in the form of a string.
Definition: KVInputDialog.h:24
KVInputDialog(const TGWindow *main, const Char_t *question, TString *answer, Bool_t *ok, const Char_t *tooltip="")
virtual ~ KVInputDialog()
TGTextEntry without any limit on the length of the text.
Definition: KVTextEntry.h:22
int main(int argc, char **argv)