00001 // @(#)root/gui:$Id: TGInputDialog.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: David Gonzalez Maline 19/07/2006 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGInputDialog 00013 #define ROOT_TGInputDialog 00014 00015 /////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // Input Dialog Widget // 00018 // // 00019 // An Input dialog box // 00020 // // 00021 /////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGFrame 00024 #include "TGFrame.h" 00025 #endif 00026 00027 class TGLabel; 00028 class TGTextEntry; 00029 class TGTextButton; 00030 00031 class TGInputDialog : public TGTransientFrame { 00032 00033 private: 00034 TGLabel *fLabel; // text entry label 00035 TGTextEntry *fTE; // text entry widget 00036 TGTextButton *fOk; // ok button 00037 TGTextButton *fCancel; // cancel button 00038 char *fRetStr; // address to store return string 00039 00040 TGInputDialog(const TGInputDialog&); // Not implemented 00041 TGInputDialog &operator= (const TGInputDialog&); // Not implemented 00042 00043 public: 00044 TGInputDialog(const TGWindow *p = 0, const TGWindow *main = 0, 00045 const char *prompt =0, const char *defval = 0, 00046 char *retstr = 0, UInt_t options = kVerticalFrame); 00047 ~TGInputDialog(); 00048 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t); 00049 00050 ClassDef(TGInputDialog, 0) // Simple input dialog 00051 00052 }; 00053 00054 #endif