Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:57

0001 // @(#)root/gui:$Id$
0002 // Author: David Gonzalez Maline  19/07/2006
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGInputDialog
0013 #define ROOT_TGInputDialog
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 class TGLabel;
0019 class TGTextEntry;
0020 class TGTextButton;
0021 
0022 class TGInputDialog : public TGTransientFrame {
0023 
0024 private:
0025    TGLabel          *fLabel{nullptr};   ///< text entry label
0026    TGTextEntry      *fTE{nullptr};      ///< text entry widget
0027    TGTextButton     *fOk{nullptr};      ///< ok button
0028    TGTextButton     *fCancel{nullptr};  ///< cancel button
0029    char             *fRetStr{nullptr};  ///< address to store return string
0030    char             *fOwnBuf{nullptr};  ///< internal buffer when return string not specified
0031 
0032    TGInputDialog(const TGInputDialog&) = delete;
0033    TGInputDialog &operator= (const TGInputDialog&) = delete;
0034 
0035 public:
0036    TGInputDialog(const TGWindow *p = nullptr, const TGWindow *main = nullptr,
0037                  const char *prompt = nullptr, const char *defval = nullptr,
0038                  char *retstr = nullptr, UInt_t options = kVerticalFrame);
0039    ~TGInputDialog() override;
0040 
0041    Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override;
0042 
0043    ClassDefOverride(TGInputDialog, 0)  // Simple input dialog
0044 
0045 };
0046 
0047 #endif