67 class TGedTabInfo :
public TObject {
74 fElement(el), fContainer(f) {}
87 return fgFrameCreator;
122 gROOT->GetListOfCleanups()->Add(
this);
155 if (pair->Value() != 0) {
163 while ((ti = (TGedTabInfo*) it1())) {
202 while ((ti = (TGedTabInfo *)
next())) {
203 if (*ti->fElement->GetText() ==
name)
224 TGedTabInfo* ti =
new TGedTabInfo(te, tc);
247 while ((ti = (TGedTabInfo*)
next())) {
276 "TGedEditor",
this,
"GlobalSetModel(TVirtualPad *, TObject *, Int_t)");
279 "TGedEditor",
this,
"GlobalClosed()");
288 if (
gROOT->GetListOfCanvases()->IsEmpty())
315 c->
Connect(
"Selected(TVirtualPad*,TObject*,Int_t)",
"TGedEditor",
316 this,
"SetModel(TVirtualPad*,TObject*,Int_t)");
325 Disconnect(
fCanvas,
"Selected(TVirtualPad*,TObject*,Int_t)",
this,
"SetModel(TVirtualPad*,TObject*,Int_t)");
358 if (obj == 0) obj =
fPad;
391 while ((ti = (TGedTabInfo *)
next())) {
404 while ((ti = (TGedTabInfo *)
next())) {
405 ti->fElement->MapWindow();
406 ti->fContainer->MapWindow();
443 Int_t gedx = 0, gedy = 0;
463 if (!
gROOT->GetListOfCleanups()->FindObject(
this))
464 gROOT->GetListOfCleanups()->Add(
this);
477 gROOT->GetListOfCleanups()->Remove(
this);
533 exclbases = (exclpair->
Value() != 0);
553 if (recurse && !exclbases) {
582 if (recurse && pair->
Value() == 0)
624 while ((ti = (TGedTabInfo *) vistabs())) {
625 TIter fr(ti->fContainer->GetList());
632 el->fFrame->Layout();
633 el->fFrame->MapWindow();
637 ti->fContainer->Layout();
669 printf(
"TGedEditor::PrintFrameStat()\n");
674 if (pair->Value() != 0) {
680 printf(
"SUMMARY: %d editors stored in the local map.\n", sum);
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Bool_t AcceptModel(TObject *)
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
virtual void MapSubwindows()
virtual TGCompositeFrame * GetEditorTab(const char *name)
Find or create tab with name.
void SetRoot(TGWindow *root=0)
Sets the current root (i.e.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
TGTabElement * GetCurrentTab() const
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
void SetValue(TObject *val)
void InsertGedFrame(TGedFrame *f)
Insert GedFrame in fGedFrames list according to priorities.
TClass * GetClassPointer(Bool_t load=kTRUE)
Get pointer to the base class TClass.
const TGWindow * GetRoot() const
Returns current root (i.e.
void ActivateEditor(TClass *cl, Bool_t recurse)
Searches for GedFrames for given class.
const THashTable * GetTable() const
void ActivateEditors(TList *bcl, Bool_t recurse)
Searches GedFrames for classes in the given list.
virtual void SetContainer(TGFrame *f)
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection)...
virtual TList * GetList() const
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
virtual void SetModel(TVirtualPad *pad, TObject *obj, Int_t event)
Activate object editors according to the selected object.
virtual TGedFrame * CreateNameFrame(const TGWindow *parent, const char *tab_name)
Virtual function for creation of top name-frame in each tab.
UInt_t GetDisplayWidth() const
Get display width.
void PrintFrameStat()
Print contents of fFrameMap.
UInt_t GetWindowHeight() const
static void SetFrameCreator(TGedEditor *e)
Set the TGedEditor that currently creates TGedFrames.
virtual ~TGedEditor()
Editor destructor.
virtual void Layout()
Layout the elements of the composite frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
Int_t GetNumberOfTabs() const
Return number of tabs.
virtual void ConnectToCanvas(TCanvas *c)
Connect this editor to the Selected signal of canvas 'c'.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
TGedEditor(const TGedEditor &)
virtual Bool_t IsEmpty() const
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
virtual void SetGlobal(Bool_t global)
Set editor global.
TClass * fClass
pointer to the foreign object
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TGedTabInfo * GetEditorTabInfo(const char *name)
Find or create tab with name.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
const char * GetName() const
Returns name of object.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Update(TGedFrame *frame=0)
Virtual method that is called on any change in the dependent frames.
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
TObject * GetObject() const
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
char * Form(const char *fmt,...)
const char * GetString() const
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
virtual void RecursiveRemove(TObject *obj)
Remove references to fModel in case the fModel is being deleted.
virtual void ToggleEditor()
Toggle editor.
virtual TObjLink * FirstLink() const
virtual void GlobalSetModel(TVirtualPad *, TObject *, Int_t)
Set canvas to global editor.
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
UInt_t GetWindowWidth() const
virtual void Show()
Show editor.
Each class (see TClass) has a linked list of its base class(es).
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
Int_t GetWindowTopX()
Returns current top x position of window on screen.
virtual void Modified(Bool_t flag=1)=0
Class used by TMap to store (key,value) pairs.
Bool_t GetShowEditor() const
void ReinitWorkspace()
Clears windows in editor tab.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Wrapper around a TObject so it can be stored in a TList.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
static TGedEditor * fgFrameCreator
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual void Hide()
Hide editor. The editor is put into non-active state.
TVirtualPad * GetClickSelectedPad() const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
TObject * GetClickSelected() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
void ConfigureGedFrames(Bool_t objChaged)
Call SetModel in class editors.
Mother of all ROOT objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void UnmapWindow()
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
virtual void Add(TObject *obj)
virtual void CloseWindow()
Called when closed via WM close button. Calls Hide().
TVirtualPad * GetSelectedPad() const
static void Terminate()
Close the global pad editor. Static method.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
virtual void GlobalClosed()
Delete global editor if no canvas exists.
virtual void DisconnectFromCanvas()
Disconnect this editor from the Selected signal of fCanvas.
UInt_t GetWh() const
Get Wh.
void SetModelClass(TClass *mcl)
void Clear(Option_t *option="")
Remove all (key,value) pairs from the map.
TGCompositeFrame * fTabContainer
TGViewPort * GetViewPort() const
virtual void SetGedEditor(TGedEditor *ed)
virtual TCanvas * GetCanvas() const =0
virtual void SetCanvas(TCanvas *c)
Change connection to another canvas.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.