library: libGed #include "TGedEditor.h"

# TGedEditor

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

## 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 Hide()
          virtual TClass* IsA() const
             virtual void RecursiveRemove(TObject* obj)
             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:

                     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

## 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(), 110, 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)

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

void Show()

     Show editor.

void DeleteEditors()

     Delete GUI editors connected to the canvas fCanvas.

void Hide()

     Hide editor.

~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

                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.8 2004/06/25 17:13:23 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *