Logo ROOT  
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
18class TGLabel;
19class TGTextButton;
20class TGTextEntry;
22class TList;
23class TStyle;
24class TStyleManager;
25class TVirtualPad;
26
28
29private:
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
44public:
45 TStyleDialog(TStyleManager *sm, TStyle *cur, Int_t mode,
46 TVirtualPad *currentPad = 0);
47 virtual ~TStyleDialog();
48
49 void DoCloseWindow(); // SLOT
50 void DoCancel(); // SLOT
51 void DoOK(); // SLOT
52 void DoUpdate(); // SLOT
53
54 ClassDef(TStyleDialog, 0) // Dialog box used by the TStyleManager class
55};
56
57#endif
#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:38
This small class is useful to ask the user for a name and a title, in order to rename a style,...
void DoCancel()
Slot called when the Cancel button is clicked.
TList * fTrashListLayout
to avoid memory leak
void DoOK()
Slot called when the OK button is clicked.
Int_t fMode
1=new, 2=rename, 3=import
TGTextEntry * fTitle
TStyle title text entry.
void DoCloseWindow()
Slot called when the window is closed via the window manager.
TVirtualPad * fCurPad
current pad from which to import
TList * fTrashListFrame
to avoid memory leak
TStyle * fCurStyle
style to copy or to rename
TGTextButton * fOK
save button
TGTextEntry * fName
TStyle name text entry.
TGTextButton * fCancel
cancel button
virtual ~TStyleDialog()
Destructor.
TStyleManager * fStyleManager
parent style manager
TGLabel * fTitleLabel
title label
TGLabel * fNameLabel
name label
void DoUpdate()
Slot called every time the name is changed.
TGLabel * fWarnLabel
label for warnings
This class provides a Graphical User Interface to manage styles in ROOT.
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