Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:27

0001 // @(#)root/ged:$Id$
0002 // Author: Denis Favre-Miville   08/09/05
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TStyleDialog
0013 #define ROOT_TStyleDialog
0014 
0015 
0016 #include "TGFrame.h"
0017 
0018 class TGLabel;
0019 class TGTextButton;
0020 class TGTextEntry;
0021 class TGTransientFrame;
0022 class TList;
0023 class TStyle;
0024 class TStyleManager;
0025 class TVirtualPad;
0026 
0027 class TStyleDialog : public TGTransientFrame {
0028 
0029 private:
0030    TStyleManager       *fStyleManager;    ///< parent style manager
0031    TGTextEntry         *fName;            ///< TStyle name text entry
0032    TGLabel             *fNameLabel;       ///< name label
0033    TGTextEntry         *fTitle;           ///< TStyle title text entry
0034    TGLabel             *fTitleLabel;      ///< title label
0035    TGLabel             *fWarnLabel;       ///< label for warnings
0036    TGTextButton        *fOK;              ///< save button
0037    TGTextButton        *fCancel;          ///< cancel button
0038    TStyle              *fCurStyle;        ///< style to copy or to rename
0039    Int_t                fMode;            ///< 1=new, 2=rename, 3=import
0040    TVirtualPad         *fCurPad;          ///< current pad from which to import
0041    TList               *fTrashListFrame;  ///< to avoid memory leak
0042    TList               *fTrashListLayout; ///< to avoid memory leak
0043 
0044 public:
0045    TStyleDialog(TStyleManager *sm, TStyle *cur, Int_t mode,
0046                   TVirtualPad *currentPad = nullptr);
0047    ~TStyleDialog() override;
0048 
0049    void DoCloseWindow();                  // SLOT
0050    void DoCancel();                       // SLOT
0051    void DoOK();                           // SLOT
0052    void DoUpdate();                       // SLOT
0053 
0054    ClassDefOverride(TStyleDialog, 0) // Dialog box used by the TStyleManager class
0055 };
0056 
0057 #endif