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:
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="")
KVTextEntry * fTextEntry
text entry for answer
Definition: KVInputDialog.h:31
TGTextButton * fOKBut
OK button.
Definition: KVInputDialog.h:32
TString * fAnswer
the answer to the question
Definition: KVInputDialog.h:30
Bool_t * fOK
set to kTRUE if OK button is pressed
Definition: KVInputDialog.h:34
TGTransientFrame * fMain
Definition: KVInputDialog.h:29
virtual ~ KVInputDialog()
TGTextButton * fCancelBut
Cancel button.
Definition: KVInputDialog.h:33
TGTextEntry without any limit on the length of the text.
Definition: KVTextEntry.h:22
int main(int argc, char **argv)