library: libGed #include "TPadEditor.h"

# TPadEditor

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

## class TPadEditor : public TGedFrame

| Inheritance Chart:
`TObject`
| <- | `TGObject`
| <- | `TGWindow`
`TQObject`
| <- | `TGFrame`
| <- | `TGCompositeFrame`
`TGWidget`
| <- | `TGedFrame`
| <- | `TPadEditor` |

        protected:

          virtual void ConnectSignals2Slots()

        public:

                          TPadEditor(const TGWindow* p, Int_t id, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground())
                          TPadEditor(const TPadEditor&)
                  virtual ~TPadEditor()
           static TClass* Class()
             virtual void DoBorderMode()
             virtual void DoBorderSize(Int_t size)
             virtual void DoCrosshair(Bool_t on)
             virtual void DoEditable(Bool_t on)
             virtual void DoFixedAspectRatio(Bool_t on)
             virtual void DoGridX(Bool_t on)
             virtual void DoGridY(Bool_t on)
             virtual void DoLogX(Bool_t on)
             virtual void DoLogY(Bool_t on)
             virtual void DoLogZ(Bool_t on)
             virtual void DoTickX(Bool_t on)
             virtual void DoTickY(Bool_t on)
          virtual TClass* IsA() const
             virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                         TPad* fPadPointer  TPad object
                TGCheckButton* fEditable    set pad editable
                TGCheckButton* fCrosshair   set crosshair
                TGCheckButton* fFixedAR     set fixed aspect ratio
                TGCheckButton* fGridX       set grid on X
                TGCheckButton* fGridY       set grid on Y
                TGCheckButton* fLogX        set log scale on X
                TGCheckButton* fLogY        set log scale on Y
                TGCheckButton* fLogZ        set log scale on Z
                TGCheckButton* fTickX       set ticks on X
                TGCheckButton* fTickY       set ticks on Y
                TGRadioButton* fBmode       set sinken pad border mode
                TGRadioButton* fBmode0      set no pad border
                TGRadioButton* fBmode1      set raised pad border mode
          TGLineWidthComboBox* fBsize       set pad border size
                        Bool_t fInit        init flag
             TGCompositeFrame* f7           container frame;

## Class Description

      TPadEditor

      Editor of pad/canvas objects.
           color and fill style,
          'Edit' check box sets pad/canvad editable,
          'Crosshair' sets a cross hair on the pad,
          'Fixed aspect ratio' can be set when resizing the pad
          'TickX' and 'TickY' set ticks along the X and Y axis
          'GridX' and 'GridY' set a grid along the X and Y axis
           pad/canvas border size can be set if a sinken or a raised
           border mode is selected; no border mode can be set to

/* */

TPadEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, id, width, height, options | kVerticalFrame, back)

     Constructor of TPad editor GUI.

~TPadEditor()

     Destructor of fill editor.

void ConnectSignals2Slots()

     Connect signals to slots.

void SetModel(TVirtualPad* pad, TObject* obj, Int_t)

     Pick up the used fill attributes.

void DoEditable(Bool_t on)

     Slot connected to the check box 'Editable'.

void DoCrosshair(Bool_t on)

     Slot connected to the check box 'Crosshair'.

void DoFixedAspectRatio(Bool_t on)

     Slot connected to the check box 'Fixed aspect ratio'.

void DoGridX(Bool_t on)

     Slot connected to the check box 'GridX'.

void DoGridY(Bool_t on)

     Slot connected to the check box 'GridY'.

void DoLogX(Bool_t on)

     Slot connected to the check box 'LogX'.

void DoLogY(Bool_t on)

     Slot connected to the check box 'LogY'.

void DoLogZ(Bool_t on)

     Slot connected to the check box 'LogZ'.

void DoTickX(Bool_t on)

     Slot connected to the check box 'TickX'.

void DoTickY(Bool_t on)

     Slot connected to the check box 'TickY'.

void DoBorderMode()

     Slot connected to the border mode settings.

void DoBorderSize(Int_t size)

     Slot connected to the border size settings.

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
             TPadEditor TPadEditor(const TPadEditor&)

Author: Ilka Antcheva 24/06/04
Last update: root/ged:$Name: TPadEditor.cxx
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *