// @(#)root/ged:$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_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

Last change: Wed Jun 25 08:53:49 2008
Last generated: 2008-06-25 08:53

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.