#include "TStyleDialog.h"

TStyleDialog


class description - source file - inheritance tree (.pdf)

class TStyleDialog : public TGTransientFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGMainFrame
<-
TGTransientFrame
<-
TStyleDialog

    public:
TStyleDialog(TStyleManager* sm, TStyle* cur, Int_t mode, TVirtualPad* currentPad = 0) TStyleDialog(const TStyleDialog&) virtual ~TStyleDialog() static TClass* Class() void DoCancel() void DoCloseWindow() void DoOK() void DoUpdate() virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TStyleManager* fStyleManager parent style manager TGTextEntry* fName TStyle name text entry TGLabel* fNameLabel name label TGTextEntry* fTitle TStyle title text entry TGLabel* fTitleLabel title label TGLabel* fWarnLabel label for warnings TGTextButton* fOK save button TGTextButton* fCancel cancel button TStyle* fCurStyle style to copy or to rename Int_t fMode 1=new, 2=rename, 3=import TVirtualPad* fCurPad current pad from which to import TList* fTrashListFrame to avoid memory leak TList* fTrashListLayout to avoid memory leak

Class Description

                                                                      
  TStyleDialog                                                        
                                                                      
  This small class is useful to ask the user for a name and a title,  
       in order to rename a style, create a new style or import a     
       style from a canvas.                                           
                                                                      


TStyleDialog(TStyleManager *sm, TStyle *cur, Int_t mode, TVirtualPad *currentPad) : TGTransientFrame(0, sm)
  Constructor. Create the dialog window and draw it centered over the
 main window 'mf'. A pointer to the style to copy or rename is given
 by 'cur' and the parameter 'mode' specify the mode:
    1 = copy  |  2 = rename  |  3 = import from canvas.

~TStyleDialog()
 Destructor.

void DoCancel()
  Slot called when the Cancel button is clicked. Close the window
 without saving submitted changes.

void DoCloseWindow()
  Slot called when the window is closed via the window manager.
 Close the window without saving submitted changes.

void DoOK()
  Slot called when the OK button is clicked. Rename or create the style
 before closing the window.

void DoUpdate()
  Slot called every time the name is changed. Provide some protection
 to avoid letting the user use an empty name or an already used one.
  A warning message can be shown and the OK button disabled.



Inline Functions


             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
        TStyleDialog TStyleDialog(const TStyleDialog&)


Author: Denis Favre-Miville 08/09/05
Last update: root/ged:$Name: $:$Id: TStyleDialog.cxx,v 1.0 2005/09/08
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.