ROOT
v6-22
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
// //
17
// Input Dialog Widget //
18
// //
19
// An Input dialog box //
20
// //
21
///////////////////////////////////////////////////////////////////////////
22
23
#include "
TGFrame.h
"
24
25
class
TGLabel
;
26
class
TGTextEntry
;
27
class
TGTextButton
;
28
29
class
TGInputDialog
:
public
TGTransientFrame
{
30
31
private
:
32
TGLabel
*
fLabel
{
nullptr
};
// text entry label
33
TGTextEntry
*
fTE
{
nullptr
};
// text entry widget
34
TGTextButton
*
fOk
{
nullptr
};
// ok button
35
TGTextButton
*
fCancel
{
nullptr
};
// cancel button
36
char
*
fRetStr
{
nullptr
};
// address to store return string
37
char
*
fOwnBuf
{
nullptr
};
// internal buffer when return string not specified
38
39
TGInputDialog
(
const
TGInputDialog
&) =
delete
;
40
TGInputDialog
&
operator=
(
const
TGInputDialog
&) =
delete
;
41
42
public
:
43
TGInputDialog
(
const
TGWindow
*p =
nullptr
,
const
TGWindow
*
main
=
nullptr
,
44
const
char
*prompt =
nullptr
,
const
char
*defval =
nullptr
,
45
char
*retstr =
nullptr
,
UInt_t
options =
kVerticalFrame
);
46
~TGInputDialog
();
47
virtual
Bool_t
ProcessMessage
(
Long_t
msg,
Long_t
parm1,
Long_t
);
48
49
ClassDef
(
TGInputDialog
, 0)
// Simple input dialog
50
51
};
52
53
#endif
kVerticalFrame
@ kVerticalFrame
Definition:
GuiTypes.h:381
Long_t
long Long_t
Definition:
RtypesCore.h:52
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:322
TGFrame.h
TGInputDialog
Definition:
TGInputDialog.h:29
TGInputDialog::TGInputDialog
TGInputDialog(const TGInputDialog &)=delete
TGInputDialog::fCancel
TGTextButton * fCancel
Definition:
TGInputDialog.h:35
TGInputDialog::fOwnBuf
char * fOwnBuf
Definition:
TGInputDialog.h:37
TGInputDialog::fRetStr
char * fRetStr
Definition:
TGInputDialog.h:36
TGInputDialog::operator=
TGInputDialog & operator=(const TGInputDialog &)=delete
TGInputDialog::~TGInputDialog
~TGInputDialog()
Cleanup dialog.
Definition:
TGInputDialog.cxx:133
TGInputDialog::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t)
Handle button and text enter events.
Definition:
TGInputDialog.cxx:142
TGInputDialog::fOk
TGTextButton * fOk
Definition:
TGInputDialog.h:34
TGInputDialog::fTE
TGTextEntry * fTE
Definition:
TGInputDialog.h:33
TGInputDialog::fLabel
TGLabel * fLabel
Definition:
TGInputDialog.h:32
TGLabel
Definition:
TGLabel.h:32
TGTextButton
Definition:
TGButton.h:142
TGTextEntry
Definition:
TGTextEntry.h:39
TGTransientFrame
Definition:
TGFrame.h:553
TGWindow
Definition:
TGWindow.h:31
bool
unsigned int
main
int main(int argc, char **argv)
Definition:
histspeedtest.cxx:752
gui
gui
inc
TGInputDialog.h
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:51:22 (GVA Time) using Doxygen 1.9.4