Logo ROOT  
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#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);
40 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t);
41
42 ClassDef(TGInputDialog, 0) // Simple input dialog
43
44};
45
46#endif
@ kVerticalFrame
Definition: GuiTypes.h:381
unsigned int UInt_t
Definition: RtypesCore.h:46
long Long_t
Definition: RtypesCore.h:54
bool Bool_t
Definition: RtypesCore.h:63
#define ClassDef(name, id)
Definition: Rtypes.h:325
int main(int argc, char *argv[])
Definition: cef_main.cxx:54
Input Dialog Widget.
Definition: TGInputDialog.h:22
TGInputDialog(const TGInputDialog &)=delete
TGTextButton * fCancel
cancel button
Definition: TGInputDialog.h:28
char * fOwnBuf
internal buffer when return string not specified
Definition: TGInputDialog.h:30
char * fRetStr
address to store return string
Definition: TGInputDialog.h:29
TGInputDialog & operator=(const TGInputDialog &)=delete
~TGInputDialog()
Cleanup dialog.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
Handle button and text enter events.
TGTextButton * fOk
ok button
Definition: TGInputDialog.h:27
TGTextEntry * fTE
text entry widget
Definition: TGInputDialog.h:26
TGLabel * fLabel
text entry label
Definition: TGInputDialog.h:25
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:499
ROOT GUI Window base class.
Definition: TGWindow.h:23