ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
TStyleDialog.h
Go to the documentation of this file.
1
// @(#)root/ged:$Id$
2
// Author: Denis Favre-Miville 08/09/05
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, 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_TStyleDialog
13
#define ROOT_TStyleDialog
14
15
16
#include "
TGFrame.h
"
17
18
class
TGLabel
;
19
class
TGTextButton
;
20
class
TGTextEntry
;
21
class
TGTransientFrame
;
22
class
TList
;
23
class
TStyle
;
24
class
TStyleManager
;
25
class
TVirtualPad
;
26
27
class
TStyleDialog
:
public
TGTransientFrame
{
28
29
private
:
30
TStyleManager
*
fStyleManager
;
///< parent style manager
31
TGTextEntry
*
fName
;
///< TStyle name text entry
32
TGLabel
*
fNameLabel
;
///< name label
33
TGTextEntry
*
fTitle
;
///< TStyle title text entry
34
TGLabel
*
fTitleLabel
;
///< title label
35
TGLabel
*
fWarnLabel
;
///< label for warnings
36
TGTextButton
*
fOK
;
///< save button
37
TGTextButton
*
fCancel
;
///< cancel button
38
TStyle
*
fCurStyle
;
///< style to copy or to rename
39
Int_t
fMode
;
///< 1=new, 2=rename, 3=import
40
TVirtualPad
*
fCurPad
;
///< current pad from which to import
41
TList
*
fTrashListFrame
;
///< to avoid memory leak
42
TList
*
fTrashListLayout
;
///< to avoid memory leak
43
44
public
:
45
TStyleDialog
(
TStyleManager
*sm,
TStyle
*cur,
Int_t
mode
,
46
TVirtualPad
*currentPad =
nullptr
);
47
~TStyleDialog
()
override
;
48
49
void
DoCloseWindow
();
// SLOT
50
void
DoCancel
();
// SLOT
51
void
DoOK
();
// SLOT
52
void
DoUpdate
();
// SLOT
53
54
ClassDefOverride
(
TStyleDialog
, 0)
// Dialog box used by the TStyleManager class
55
};
56
57
#endif
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:341
TGFrame.h
mode
Option_t Option_t TPoint TPoint const char mode
Definition
TGWin32VirtualXProxy.cxx:68
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
TList
A doubly linked list.
Definition
TList.h:38
TStyleDialog
This small class is useful to ask the user for a name and a title, in order to rename a style,...
Definition
TStyleDialog.h:27
TStyleDialog::DoCancel
void DoCancel()
Slot called when the Cancel button is clicked.
Definition
TStyleDialog.cxx:240
TStyleDialog::fTrashListLayout
TList * fTrashListLayout
to avoid memory leak
Definition
TStyleDialog.h:42
TStyleDialog::DoOK
void DoOK()
Slot called when the OK button is clicked.
Definition
TStyleDialog.cxx:260
TStyleDialog::~TStyleDialog
~TStyleDialog() override
Destructor.
Definition
TStyleDialog.cxx:199
TStyleDialog::fMode
Int_t fMode
1=new, 2=rename, 3=import
Definition
TStyleDialog.h:39
TStyleDialog::fTitle
TGTextEntry * fTitle
TStyle title text entry.
Definition
TStyleDialog.h:33
TStyleDialog::DoCloseWindow
void DoCloseWindow()
Slot called when the window is closed via the window manager.
Definition
TStyleDialog.cxx:251
TStyleDialog::fCurPad
TVirtualPad * fCurPad
current pad from which to import
Definition
TStyleDialog.h:40
TStyleDialog::fTrashListFrame
TList * fTrashListFrame
to avoid memory leak
Definition
TStyleDialog.h:41
TStyleDialog::fCurStyle
TStyle * fCurStyle
style to copy or to rename
Definition
TStyleDialog.h:38
TStyleDialog::fOK
TGTextButton * fOK
save button
Definition
TStyleDialog.h:36
TStyleDialog::fName
TGTextEntry * fName
TStyle name text entry.
Definition
TStyleDialog.h:31
TStyleDialog::fCancel
TGTextButton * fCancel
cancel button
Definition
TStyleDialog.h:37
TStyleDialog::fStyleManager
TStyleManager * fStyleManager
parent style manager
Definition
TStyleDialog.h:30
TStyleDialog::fTitleLabel
TGLabel * fTitleLabel
title label
Definition
TStyleDialog.h:34
TStyleDialog::fNameLabel
TGLabel * fNameLabel
name label
Definition
TStyleDialog.h:32
TStyleDialog::DoUpdate
void DoUpdate()
Slot called every time the name is changed.
Definition
TStyleDialog.cxx:297
TStyleDialog::fWarnLabel
TGLabel * fWarnLabel
label for warnings
Definition
TStyleDialog.h:35
TStyleManager
This class provides a Graphical User Interface to manage styles in ROOT.
Definition
TStyleManager.h:54
TStyle
TStyle objects may be created to define special styles.
Definition
TStyle.h:29
TVirtualPad
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition
TVirtualPad.h:51
int
gui
ged
inc
TStyleDialog.h
ROOT v6-32 - Reference Guide Generated on Fri Nov 1 2024 15:07:54 (GVA Time) using Doxygen 1.9.8