Back to home page

EIC code displayed by LXR

 
 

    


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

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_TStylePreview
0013 #define ROOT_TStylePreview
0014 
0015 #include "TGFrame.h"
0016 
0017 class TCanvas;
0018 class TList;
0019 class TRootEmbeddedCanvas;
0020 class TStyle;
0021 class TVirtualPad;
0022 
0023 class TStylePreview : public TGTransientFrame {
0024 
0025 private:
0026    TRootEmbeddedCanvas  *fEcan;                    ///< canvas for preview
0027    TVirtualPad          *fPad;                     ///< original pad previewed
0028    TList                *fTrashListLayout;         ///< to avoid memory leak
0029 
0030 public:
0031    TStylePreview(const TGWindow *p, TStyle *style, TVirtualPad *currentPad);
0032    ~TStylePreview() override;
0033    void Update(TStyle *style, TVirtualPad *pad);
0034    void MapTheWindow();
0035    TCanvas *GetMainCanvas();
0036 
0037    ClassDefOverride(TStylePreview, 0) // Preview window used by the TStyleManager class
0038 };
0039 
0040 #endif