library: libGpad #include "TDialogCanvas.h"

# TDialogCanvas

class description - source file - inheritance tree (.pdf)

## class TDialogCanvas : public TCanvas, public TAttText

| Inheritance Chart:
`TObject`
`TAttLine`
`TAttFill`
`TAttPad`
`TQObject`
| <- | `TVirtualPad`
| <- | `TPad`
| <- | `TCanvas`
`TAttText`
| <- | `TDialogCanvas` |
<- |
`TAttFillCanvas` |
`TAttLineCanvas` |
`TAttMarkerCanvas` |
`TAttTextCanvas` |
`TDrawPanelHist` |
`TFitPanel` | <- |
`TFitPanelGraph` |

        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()
           static TClass* Class()
             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
                    TPad* GetRefPad() const
          virtual TClass* IsA() const
             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)
             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)
             virtual void SetRefObject(TObject* obj)
             virtual void SetRefPad(TPad* pad)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)
             virtual void x3d(Option_t* option = "")

### Data Members

        protected:

          TObject* fRefObject  Pointer to object to set attributes
             TPad* fRefPad     Pad containing object

## Class Description

    *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*
    *-*   A DialogCanvas is a canvas specialized to set attributes.
    *-*   It contains, in general, TGroupButton objects.
    *-*   When the APPLY button is executed, the actions corresponding
    *-*   to the active buttons are executed via the Interpreter.
    *-*
    *-*  See examples in TAttLineCanvas, TAttFillCanvas, TAttTextCanvas, TAttMarkerCanvas

TDialogCanvas() : TCanvas()

    *-*-*-*-*-*-*-*-*-*-*-*DialogCanvas default constructor*-*-*-*-*-*-*-*-*-*-*
    *-*                    ================================

TDialogCanvas(const char *name, const char *title, Int_t ww, Int_t wh) : TCanvas(name,title,-ww,wh)

    *-*-*-*-*-*-*-*-*-*-*-*DialogCanvas constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                    ========================

TDialogCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy, UInt_t ww, UInt_t wh) : TCanvas(name,title,-wtopx,wtopy,ww,wh)

    *-*-*-*-*-*-*-*-*-*-*-*DialogCanvas constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                    ========================

~TDialogCanvas()

    *-*-*-*-*-*-*-*-*-*-*DialogCanvas default destructor*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ===============================

void Apply(const char *action)

    *-*-*-*-*-*-*-*-*Called when the APPLY button is executed*-*-*-*-*-*-*-*-*-*-*
    *-*              ========================================

void BuildStandardButtons()

    *-*-*-*-*-*-*-*-*Create APPLY, gStyle and CLOSE buttons*-*-*-*-*-*-*-*-*-*-*
    *-*              ======================================

void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)

    *-*-*-*-*-*-*-*-*-*-*Set world coordinate system for the pad*-*-*-*-*-*-*
    *-*                  =======================================

void RecursiveRemove(TObject *obj)

    *-*-*-*-*-*-*-*Recursively remove object from a pad and its subpads*-*-*-*-*
    *-*            ====================================================

### Inline Functions

                   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
                  TPad* GetRefPad() const
                   void SetBorderMode(Short_t bordermode)
                   void SetGrid(Int_t valuex = 1, Int_t valuey = 1)
                   void SetLogx(Int_t value = 1)
                   void SetLogy(Int_t value = 1)
                   void SetName(const char* name)
                   void SetRefObject(TObject* obj)
                   void SetRefPad(TPad* pad)
                   void x3d(Option_t* option = "")
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)

Author: Rene Brun 03/07/96
Last update: root/gpad:$Name: $:$Id: TDialogCanvas.cxx,v 1.9 2003/03/05 20:11:10 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *