Logo ROOT  
Reference Guide
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Denis Favre-Miville 08/09/05
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 *************************************************************************/
12#ifndef ROOT_TStyleDialog
13#define ROOT_TStyleDialog
16#include "TGFrame.h"
18class TGLabel;
19class TGTextButton;
20class TGTextEntry;
22class TList;
23class TStyle;
24class TStyleManager;
25class TVirtualPad;
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
45 TStyleDialog(TStyleManager *sm, TStyle *cur, Int_t mode,
46 TVirtualPad *currentPad = 0);
47 virtual ~TStyleDialog();
49 void DoCloseWindow(); // SLOT
50 void DoCancel(); // SLOT
51 void DoOK(); // SLOT
52 void DoUpdate(); // SLOT
54 ClassDef(TStyleDialog, 0) // Dialog box used by the TStyleManager class
int Int_t
Definition: RtypesCore.h:45
#define ClassDef(name, id)
Definition: Rtypes.h:325
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
A doubly linked list.
Definition: TList.h:44
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
void DoCancel()
Slot called when the Cancel button is clicked.
TList * fTrashListLayout
to avoid memory leak
Definition: TStyleDialog.h:42
void DoOK()
Slot called when the OK button is clicked.
Int_t fMode
1=new, 2=rename, 3=import
Definition: TStyleDialog.h:39
TGTextEntry * fTitle
TStyle title text entry.
Definition: TStyleDialog.h:33
void DoCloseWindow()
Slot called when the window is closed via the window manager.
TVirtualPad * fCurPad
current pad from which to import
Definition: TStyleDialog.h:40
TList * fTrashListFrame
to avoid memory leak
Definition: TStyleDialog.h:41
TStyle * fCurStyle
style to copy or to rename
Definition: TStyleDialog.h:38
TGTextButton * fOK
save button
Definition: TStyleDialog.h:36
TGTextEntry * fName
TStyle name text entry.
Definition: TStyleDialog.h:31
TGTextButton * fCancel
cancel button
Definition: TStyleDialog.h:37
virtual ~TStyleDialog()
TStyleDialog(TStyleManager *sm, TStyle *cur, Int_t mode, TVirtualPad *currentPad=0)
TStyleManager * fStyleManager
parent style manager
Definition: TStyleDialog.h:30
TGLabel * fTitleLabel
title label
Definition: TStyleDialog.h:34
TGLabel * fNameLabel
name label
Definition: TStyleDialog.h:32
void DoUpdate()
Slot called every time the name is changed.
TGLabel * fWarnLabel
label for warnings
Definition: TStyleDialog.h:35
This class provides a Graphical User Interface to manage styles in ROOT.
Definition: TStyleManager.h:54
TStyle objects may be created to define special styles.
Definition: TStyle.h:29
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition: TVirtualPad.h:51