// @(#)root/ged:$Name:  $:$Id: TStylePreview.h,v 1.0 2005/09/08
// Author: Denis Favre-Miville   08/09/05

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TStylePreview
#define ROOT_TStylePreview

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TStylePreview                                                       //
//                                                                      //
//  This class may be used to preview the result of applying a style    //
//       to a canvas. The result is shown on a clone of the object,     //
//       in a different shown over the initial canvas.                  //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif

class TCanvas;
class TList;
class TRootEmbeddedCanvas;
class TStyle;
class TVirtualPad;

class TStylePreview : public TGTransientFrame {

private:
   TRootEmbeddedCanvas  *fEcan;                    // canvas for preview
   TVirtualPad          *fPad;                     // original pad previewed
   TList                *fTrashListLayout;         // to avoid memory leak

public:
   TStylePreview(const TGWindow *p, TStyle *style, TVirtualPad *currentPad);
   virtual ~TStylePreview();
   void Update(TStyle *style, TVirtualPad *pad);
   void MapTheWindow();
   TCanvas *GetMainCanvas();

   ClassDef(TStylePreview, 0) // Preview window used by the TStyleManager class
};

#endif


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.