// @(#)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 #include "TCanvas.h" #include "TAttText.h" class TDialogCanvas : public TCanvas, public TAttText { private: TDialogCanvas(const TDialogCanvas &) = delete; TDialogCanvas& operator=(const TDialogCanvas &) = delete; protected: TObject *fRefObject{nullptr}; ///< Pointer to object to set attributes TPad *fRefPad{nullptr}; ///< 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); ~TDialogCanvas() override; virtual void Apply(const char *action=""); virtual void BuildStandardButtons(); void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0) override; TObject *GetRefObject() const { return fRefObject; } TPad *GetRefPad() const { return fRefPad; } void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override; void RecursiveRemove(TObject *obj) override; void SetBorderMode(Short_t bordermode) override { fBorderMode = bordermode; } void SetGrid(Int_t valuex = 1, Int_t valuey = 1) override; void SetLogx(Int_t value = 1) override; void SetLogy(Int_t value = 1) override; void SetName(const char *name) override { fName = name; } virtual void SetRefObject(TObject *obj) { fRefObject = obj; } virtual void SetRefPad(TPad *pad) { fRefPad = pad; } void x3d(Option_t *option = "") override; ClassDefOverride(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