Logo ROOT   6.10/09
Reference Guide
TGInputDialog.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: David Gonzalez Maline 19/07/2006
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGInputDialog
13 #define ROOT_TGInputDialog
14 
15 ///////////////////////////////////////////////////////////////////////////
16 // //
17 // Input Dialog Widget //
18 // //
19 // An Input dialog box //
20 // //
21 ///////////////////////////////////////////////////////////////////////////
22 
23 #include "TGFrame.h"
24 
25 class TGLabel;
26 class TGTextEntry;
27 class TGTextButton;
28 
30 
31 private:
32  TGLabel *fLabel; // text entry label
33  TGTextEntry *fTE; // text entry widget
34  TGTextButton *fOk; // ok button
35  TGTextButton *fCancel; // cancel button
36  char *fRetStr; // address to store return string
37 
38  TGInputDialog(const TGInputDialog&); // Not implemented
39  TGInputDialog &operator= (const TGInputDialog&); // Not implemented
40 
41 public:
42  TGInputDialog(const TGWindow *p = 0, const TGWindow *main = 0,
43  const char *prompt =0, const char *defval = 0,
44  char *retstr = 0, UInt_t options = kVerticalFrame);
46  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
47 
48  ClassDef(TGInputDialog, 0) // Simple input dialog
49 
50 };
51 
52 #endif
TGTextButton * fCancel
Definition: TGInputDialog.h:35
bool Bool_t
Definition: RtypesCore.h:59
TGLabel * fLabel
Definition: TGInputDialog.h:32
#define ClassDef(name, id)
Definition: Rtypes.h:297
~TGInputDialog()
Cleanup dialog.
unsigned int UInt_t
Definition: RtypesCore.h:42
TGInputDialog(const TGInputDialog &)
TGTextEntry * fTE
Definition: TGInputDialog.h:33
long Long_t
Definition: RtypesCore.h:50
TGTextButton * fOk
Definition: TGInputDialog.h:34
TGInputDialog & operator=(const TGInputDialog &)
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
Handle button and text enter events.
int main(int argc, char **argv)