ROOT
v6-32
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
18
class
TGLabel
;
19
class
TGTextEntry
;
20
class
TGTextButton
;
21
22
class
TGInputDialog
:
public
TGTransientFrame
{
23
24
private
:
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
;
33
TGInputDialog
&
operator=
(
const
TGInputDialog
&) =
delete
;
34
35
public
:
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
41
Bool_t
ProcessMessage
(
Longptr_t
msg,
Longptr_t
parm1,
Longptr_t
)
override
;
42
43
ClassDefOverride
(
TGInputDialog
, 0)
// Simple input dialog
44
45
};
46
47
#endif
kVerticalFrame
@ kVerticalFrame
Definition
GuiTypes.h:381
main
int main()
Definition
Prototype.cxx:12
Longptr_t
long Longptr_t
Definition
RtypesCore.h:82
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:341
TGFrame.h
p
winID h TVirtualViewer3D TVirtualGLPainter p
Definition
TGWin32VirtualGLProxy.cxx:51
TGInputDialog
Input Dialog Widget.
Definition
TGInputDialog.h:22
TGInputDialog::TGInputDialog
TGInputDialog(const TGInputDialog &)=delete
TGInputDialog::fCancel
TGTextButton * fCancel
cancel button
Definition
TGInputDialog.h:28
TGInputDialog::fOwnBuf
char * fOwnBuf
internal buffer when return string not specified
Definition
TGInputDialog.h:30
TGInputDialog::fRetStr
char * fRetStr
address to store return string
Definition
TGInputDialog.h:29
TGInputDialog::operator=
TGInputDialog & operator=(const TGInputDialog &)=delete
TGInputDialog::ProcessMessage
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t) override
Handle button and text enter events.
Definition
TGInputDialog.cxx:143
TGInputDialog::fOk
TGTextButton * fOk
ok button
Definition
TGInputDialog.h:27
TGInputDialog::~TGInputDialog
~TGInputDialog() override
Cleanup dialog.
Definition
TGInputDialog.cxx:134
TGInputDialog::fTE
TGTextEntry * fTE
text entry widget
Definition
TGInputDialog.h:26
TGInputDialog::fLabel
TGLabel * fLabel
text entry label
Definition
TGInputDialog.h:25
TGLabel
This class handles GUI labels.
Definition
TGLabel.h:24
TGTextButton
Yield an action as soon as it is clicked.
Definition
TGButton.h:142
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGTransientFrame
Defines transient windows that typically are used for dialogs windows.
Definition
TGFrame.h:498
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
bool
unsigned int
gui
gui
inc
TGInputDialog.h
ROOT v6-32 - Reference Guide Generated on Fri Nov 1 2024 15:07:58 (GVA Time) using Doxygen 1.9.8