KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVInputDialog.h
Go to the documentation of this file.
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 
24 
25  RQ_OBJECT("KVInputDialog")
26 
27 protected:
34 
35 public:
36 
37  KVInputDialog(const TGWindow* main, const Char_t* question,
38  TString* answer, Bool_t* ok, const Char_t* tooltip =
39  "");
40  virtual ~ KVInputDialog();
41 
42  void ReadAnswer();
43 
44  void DoClose();
45  void CloseWindow();
46 
47  ClassDef(KVInputDialog, 0) //General purpose dialog asking for a string value
48 };
49 
50 #endif
#define RQ_OBJECT(sender_class)
char Char_t
bool Bool_t
#define ClassDef(name, id)
General purpose dialog box asking for some input in the form of a string.
Definition: KVInputDialog.h:23
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:30
TGTextButton * fOKBut
OK button.
Definition: KVInputDialog.h:31
TString * fAnswer
the answer to the question
Definition: KVInputDialog.h:29
Bool_t * fOK
set to kTRUE if OK button is pressed
Definition: KVInputDialog.h:33
TGTransientFrame * fMain
Definition: KVInputDialog.h:28
virtual ~ KVInputDialog()
TGTextButton * fCancelBut
Cancel button.
Definition: KVInputDialog.h:32
TGTextEntry without any limit on the length of the text.
Definition: KVTextEntry.h:20
int main(int argc, char **argv)