library: libGed #include "TGedEditor.h"

# TGedEditor

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

## class TGedEditor : public TVirtualPadEditor, public TGMainFrame

| Inheritance Chart:
`TVirtualPadEditor`
`TObject`
| <- | `TGObject`
| <- | `TGWindow`
`TQObject`
| <- | `TGFrame`
| <- | `TGCompositeFrame`
| <- | `TGMainFrame`
| <- | `TGedEditor` |

        protected:

          virtual void GetBaseClassEditor(TClass* cl)
          virtual void GetClassEditor(TClass* cl)
          virtual void GetEditors()

        public:

                          TGedEditor(TCanvas* canvas = 0)
                          TGedEditor(const TGedEditor&)
                  virtual ~TGedEditor()
           static TClass* Class()
             virtual void CloseWindow()
             virtual void ConnectToCanvas(TCanvas* c)
             virtual void DeleteEditors()
             virtual void DisconnectEditors(TCanvas* canvas)
                 TCanvas* GetCanvas() const
             virtual void Hide()
          virtual TClass* IsA() const
           virtual Bool_t IsGlobal() const
             virtual void RecursiveRemove(TObject* obj)
             virtual void SetCanvas(TCanvas* c)
             virtual void SetGlobal(Bool_t global)
             virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event)
             virtual void Show()
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                  TGCanvas* fCan           provides scroll bars
                     TGTab* fTab           tab widget holding the editor
          TGCompositeFrame* fTabContainer  main tab container
          TGCompositeFrame* fStyle         style tab container frame
                   TObject* fModel         selected object
               TVirtualPad* fPad           selected pad
                   TCanvas* fCanvas        canvas related to the editor
                    TClass* fClass         class of the selected object
                      Int_t fWid           widget id
                     Bool_t fGlobal        true if editor is global

## Class Description

     TGedEditor

     Editor is a composite frame that contains TGedToolBox and
     TGedAttFrames. It is connected to a Canvas and listens for
     selected objects

TGedEditor(TCanvas* canvas) : TGMainFrame(gClient->GetRoot(), 175, 20)

void CloseWindow()

     When closed via WM close button, just unmap (i.e. hide) editor
     for later use.

void GetEditors()

     Get existing editors of selected object

void GetBaseClassEditor(TClass *cl)

     Scan the base classes of cl and add attribute editors to the list.

void GetClassEditor(TClass *cl)

     Add attribute editor of class cl to the list of fStyle frame.

void ConnectToCanvas(TCanvas *c)

     Connect this editor to the selected object in the canvas 'c'.

void SetCanvas(TCanvas *newcan)

     Change connection to another canvas.

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

void Show()

     Show editor.

void Hide()

     Hide editor.

void DisconnectEditors(TCanvas *canvas)

     Disconnect GUI editors connected to canvas.

void DeleteEditors()

     Delete GUI editors connected to the canvas fCanvas.

~TGedEditor()

     Editor destructor.

void RecursiveRemove(TObject* obj)

     Remove references to fModel in case the fModel is being deleted.
     Deactivate attribute frames if they point to obj.

### Inline Functions

               TCanvas* GetCanvas() const
                 Bool_t IsGlobal() const
                   void SetGlobal(Bool_t global)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
             TGedEditor TGedEditor(const TGedEditor&)

Author: Marek Biskup, Ilka Antcheva 02/08/2003
Last update: root/ged:$Name: $:$Id: TGedEditor.cxx,v 1.22 2005/06/15 13:12:57 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *