ROOT logo
#ifndef HPR_DIALOGS
#define HPR_DIALOGS
#include <TGWindow.h>
#include <TGTextEntry.h>
#include <TGFrame.h>
#include <TGButton.h>
#include <TGListBox.h>
//_________________________________________________________________________________________

const char *GetString(const char *prompt, const char *defval, 
                             Bool_t * Ok=0, TGWindow *win=0, 
                             const char *ynprompt=0,Bool_t * yn=0,
                             const char *helptext=0,
                             const char *ynprompt1=0,Bool_t * yn1=0,
                             const char * FileName=0, TList * complist=0);
Int_t GetInteger(const char *prompt, Int_t defval, 
                        Bool_t * Ok=0, TGWindow *win=0, 
                        const char *ynprompt=0, Bool_t * yn=0,
                        const char *helptext=0,
                        const char *ynprompt1=0,Bool_t * yn1=0);
Float_t GetFloat(const char *prompt, Float_t defval, 
                        Bool_t * Ok=0, TGWindow *win=0, 
                        const char *ynprompt=0, Bool_t * yn=0,
                        const char *helptext=0,
                        const char *ynprompt1=0,Bool_t * yn1=0);
//_________________________________________________________________________________________

class TGMrbInputDialog : public TGTransientFrame{

private:
   const TGWindow   *fMyWindow;
   TGTextEntry      *fTE;      // text entry widget containing
   TList            *fWidgets; // keep track of widgets to be deleted in dtor
   char             *fRetStr;  // address to store return string
   const char       *fDefVal;  // address to store return string
   const char       *fHelpText;  // address to store return string
   TGCheckButton    *fCheckYesNo; //
   TGCheckButton    *fCheckYesNo1; //
   Bool_t           *fRetYesNo;    // address to store return boolean
   Bool_t           *fRetYesNo1;   // address to store return boolean
   Int_t            *fReturn;      // address to store cancel = -1 / ok =0 
   TGListBox        *fListBox;
   TString          fFileName;
   TList            *fCompList;
public:
   TGMrbInputDialog(const char *Prompt, const char *DefVal,Int_t * Return,
                    char *retstr, const TGWindow *Win = 0, 
                    const char *YNPrompt = 0, Bool_t * YesNo = 0 ,
                    const char *HelpText = 0,
                    const char *YNPrompt1 = 0, Bool_t * YesNo1 = 0,
                    const char * FileName = 0, TList * complist=0);
   virtual ~TGMrbInputDialog();
   void CloseWindow();
   virtual Bool_t  ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
   void SaveList();

ClassDef(TGMrbInputDialog,0)		// [GraphUtils] A dialog box
};   
#endif
 TGMrbInputDialog.h:1
 TGMrbInputDialog.h:2
 TGMrbInputDialog.h:3
 TGMrbInputDialog.h:4
 TGMrbInputDialog.h:5
 TGMrbInputDialog.h:6
 TGMrbInputDialog.h:7
 TGMrbInputDialog.h:8
 TGMrbInputDialog.h:9
 TGMrbInputDialog.h:10
 TGMrbInputDialog.h:11
 TGMrbInputDialog.h:12
 TGMrbInputDialog.h:13
 TGMrbInputDialog.h:14
 TGMrbInputDialog.h:15
 TGMrbInputDialog.h:16
 TGMrbInputDialog.h:17
 TGMrbInputDialog.h:18
 TGMrbInputDialog.h:19
 TGMrbInputDialog.h:20
 TGMrbInputDialog.h:21
 TGMrbInputDialog.h:22
 TGMrbInputDialog.h:23
 TGMrbInputDialog.h:24
 TGMrbInputDialog.h:25
 TGMrbInputDialog.h:26
 TGMrbInputDialog.h:27
 TGMrbInputDialog.h:28
 TGMrbInputDialog.h:29
 TGMrbInputDialog.h:30
 TGMrbInputDialog.h:31
 TGMrbInputDialog.h:32
 TGMrbInputDialog.h:33
 TGMrbInputDialog.h:34
 TGMrbInputDialog.h:35
 TGMrbInputDialog.h:36
 TGMrbInputDialog.h:37
 TGMrbInputDialog.h:38
 TGMrbInputDialog.h:39
 TGMrbInputDialog.h:40
 TGMrbInputDialog.h:41
 TGMrbInputDialog.h:42
 TGMrbInputDialog.h:43
 TGMrbInputDialog.h:44
 TGMrbInputDialog.h:45
 TGMrbInputDialog.h:46
 TGMrbInputDialog.h:47
 TGMrbInputDialog.h:48
 TGMrbInputDialog.h:49
 TGMrbInputDialog.h:50
 TGMrbInputDialog.h:51
 TGMrbInputDialog.h:52
 TGMrbInputDialog.h:53
 TGMrbInputDialog.h:54
 TGMrbInputDialog.h:55
 TGMrbInputDialog.h:56
 TGMrbInputDialog.h:57
 TGMrbInputDialog.h:58
 TGMrbInputDialog.h:59