Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TGFrame.h"
17
18class TGLabel;
19class TGTextEntry;
20class TGTextButton;
21
23
24private:
25 TGLabel *fLabel{nullptr}; ///< text entry label
26 TGTextEntry *fTE{nullptr}; ///< text entry widget
27 TGTextButton *fOk{nullptr}; ///< ok button
28 TGTextButton *fCancel{nullptr}; ///< cancel button
29 char *fRetStr{nullptr}; ///< address to store return string
30 char *fOwnBuf{nullptr}; ///< internal buffer when return string not specified
31
32 TGInputDialog(const TGInputDialog&) = delete;
34
35public:
36 TGInputDialog(const TGWindow *p = nullptr, const TGWindow *main = nullptr,
37 const char *prompt = nullptr, const char *defval = nullptr,
38 char *retstr = nullptr, UInt_t options = kVerticalFrame);
39 ~TGInputDialog() override;
40
42
43 ClassDefOverride(TGInputDialog, 0) // Simple input dialog
44
45};
46
47#endif
@ kVerticalFrame
Definition GuiTypes.h:381
int main()
Definition Prototype.cxx:12
long Longptr_t
Definition RtypesCore.h:82
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Input Dialog Widget.
TGInputDialog(const TGInputDialog &)=delete
TGTextButton * fCancel
cancel button
char * fOwnBuf
internal buffer when return string not specified
char * fRetStr
address to store return string
TGInputDialog & operator=(const TGInputDialog &)=delete
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override
Handle button and text enter events.
TGTextButton * fOk
ok button
~TGInputDialog() override
Cleanup dialog.
TGTextEntry * fTE
text entry widget
TGLabel * fLabel
text entry label
This class handles GUI labels.
Definition TGLabel.h:24
Yield an action as soon as it is clicked.
Definition TGButton.h:142
A TGTextEntry is a one line text input widget.
Definition TGTextEntry.h:24
Defines transient windows that typically are used for dialogs windows.
Definition TGFrame.h:498
ROOT GUI Window base class.
Definition TGWindow.h:23