ROOT logo
// @(#)root/gpad:$Id$
// Author: Rene Brun   03/07/96

/*************************************************************************
 * Copyright (C) 1995-2000, 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_TDialogCanvas
#define ROOT_TDialogCanvas


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TDialogCanvas                                                        //
//                                                                      //
// A specialized canvas to set attributes.                              //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TCanvas
#include "TCanvas.h"
#endif
#ifndef ROOT_TAttText
#include "TAttText.h"
#endif

class TDialogCanvas : public TCanvas, public TAttText {

private:
   TDialogCanvas(const TDialogCanvas&);
   TDialogCanvas& operator=(const TDialogCanvas&);

protected:
   TObject     *fRefObject;   //Pointer to object to set attributes
   TPad        *fRefPad;      //Pad containing object

public:
   TDialogCanvas();
   TDialogCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
   TDialogCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy, UInt_t ww, UInt_t wh);
   virtual        ~TDialogCanvas();
   virtual void   Apply(const char *action="");
   virtual void   BuildStandardButtons();
   virtual void   Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0);
   TObject        *GetRefObject() const { return fRefObject; }
   TPad           *GetRefPad() const { return fRefPad; }
   virtual void   Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
   virtual void   RecursiveRemove(TObject *obj);
   virtual void   SetBorderMode(Short_t bordermode){ fBorderMode = bordermode; }
   virtual void   SetGrid(Int_t valuex = 1, Int_t valuey = 1);
   virtual void   SetLogx(Int_t value = 1);
   virtual void   SetLogy(Int_t value = 1);
   virtual void   SetName(const char *name) { fName = name; }
   virtual void   SetRefObject(TObject*obj) { fRefObject=obj; }
   virtual void   SetRefPad(TPad *pad) { fRefPad=pad; }
   virtual void   x3d(Option_t *option="");

   ClassDef(TDialogCanvas,0)  //A specialized canvas to set attributes.
};

inline void TDialogCanvas::Divide(Int_t, Int_t, Float_t, Float_t, Int_t) { }
inline void TDialogCanvas::SetGrid(Int_t, Int_t) { }
inline void TDialogCanvas::SetLogx(Int_t) { }
inline void TDialogCanvas::SetLogy(Int_t) { }
inline void TDialogCanvas::x3d(Option_t *) { }

#endif

 TDialogCanvas.h:1
 TDialogCanvas.h:2
 TDialogCanvas.h:3
 TDialogCanvas.h:4
 TDialogCanvas.h:5
 TDialogCanvas.h:6
 TDialogCanvas.h:7
 TDialogCanvas.h:8
 TDialogCanvas.h:9
 TDialogCanvas.h:10
 TDialogCanvas.h:11
 TDialogCanvas.h:12
 TDialogCanvas.h:13
 TDialogCanvas.h:14
 TDialogCanvas.h:15
 TDialogCanvas.h:16
 TDialogCanvas.h:17
 TDialogCanvas.h:18
 TDialogCanvas.h:19
 TDialogCanvas.h:20
 TDialogCanvas.h:21
 TDialogCanvas.h:22
 TDialogCanvas.h:23
 TDialogCanvas.h:24
 TDialogCanvas.h:25
 TDialogCanvas.h:26
 TDialogCanvas.h:27
 TDialogCanvas.h:28
 TDialogCanvas.h:29
 TDialogCanvas.h:30
 TDialogCanvas.h:31
 TDialogCanvas.h:32
 TDialogCanvas.h:33
 TDialogCanvas.h:34
 TDialogCanvas.h:35
 TDialogCanvas.h:36
 TDialogCanvas.h:37
 TDialogCanvas.h:38
 TDialogCanvas.h:39
 TDialogCanvas.h:40
 TDialogCanvas.h:41
 TDialogCanvas.h:42
 TDialogCanvas.h:43
 TDialogCanvas.h:44
 TDialogCanvas.h:45
 TDialogCanvas.h:46
 TDialogCanvas.h:47
 TDialogCanvas.h:48
 TDialogCanvas.h:49
 TDialogCanvas.h:50
 TDialogCanvas.h:51
 TDialogCanvas.h:52
 TDialogCanvas.h:53
 TDialogCanvas.h:54
 TDialogCanvas.h:55
 TDialogCanvas.h:56
 TDialogCanvas.h:57
 TDialogCanvas.h:58
 TDialogCanvas.h:59
 TDialogCanvas.h:60
 TDialogCanvas.h:61
 TDialogCanvas.h:62
 TDialogCanvas.h:63
 TDialogCanvas.h:64
 TDialogCanvas.h:65
 TDialogCanvas.h:66
 TDialogCanvas.h:67
 TDialogCanvas.h:68
 TDialogCanvas.h:69
 TDialogCanvas.h:70
 TDialogCanvas.h:71
 TDialogCanvas.h:72