68class TGedTabInfo :
public TObject {
75 fElement(el), fContainer(
f) {}
123 gROOT->GetListOfCleanups()->Add(
this);
155 while ((pair = (
TPair*) next())) {
156 if (pair->
Value() != 0) {
164 while ((ti = (TGedTabInfo*) it1())) {
203 while ((ti = (TGedTabInfo *) next())) {
204 if (*ti->fElement->GetText() ==
name)
225 TGedTabInfo* ti =
new TGedTabInfo(te, tc);
248 while ((ti = (TGedTabInfo*)next())) {
277 "TGedEditor",
this,
"GlobalSetModel(TVirtualPad *, TObject *, Int_t)");
280 "TGedEditor",
this,
"GlobalClosed()");
289 if (
gROOT->GetListOfCanvases()->IsEmpty())
316 c->Connect(
"Selected(TVirtualPad*,TObject*,Int_t)",
"TGedEditor",
317 this,
"SetModel(TVirtualPad*,TObject*,Int_t)");
326 Disconnect(
fCanvas,
"Selected(TVirtualPad*,TObject*,Int_t)",
this,
"SetModel(TVirtualPad*,TObject*,Int_t)");
359 if (obj == 0) obj =
fPad;
365 if (
fModel != obj || force) {
392 while ((ti = (TGedTabInfo *) next())) {
405 while ((ti = (TGedTabInfo *) next())) {
406 ti->fElement->MapWindow();
407 ti->fContainer->MapWindow();
444 Int_t gedx = 0, gedy = 0;
464 if (!
gROOT->GetListOfCleanups()->FindObject(
this))
465 gROOT->GetListOfCleanups()->Add(
this);
478 gROOT->GetListOfCleanups()->Remove(
this);
513 if (edClass && edClass->
InheritsFrom(TGedFrame::Class())) {
534 exclbases = (exclpair->
Value() != 0);
554 if (recurse && !exclbases) {
583 if (recurse && pair->
Value() == 0)
625 while ((ti = (TGedTabInfo *) vistabs())) {
626 TIter fr(ti->fContainer->GetList());
638 ti->fContainer->Layout();
643 if ((el->
fFrame)->InheritsFrom(TGedFrame::Class())) {
670 printf(
"TGedEditor::PrintFrameStat()\n");
674 while ((pair = (
TPair*) next())) {
675 if (pair->
Value() != 0) {
677 printf(
"TGedFrame created for %s \n", cl->
GetName());
681 printf(
"SUMMARY: %d editors stored in the local map.\n",
sum);
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
Each class (see TClass) has a linked list of its base class(es).
TClass * GetClassPointer(Bool_t load=kTRUE)
Get pointer to the base class TClass.
UInt_t GetWindowHeight() const
TObject * GetClickSelected() const
TVirtualPad * GetClickSelectedPad() const
Int_t GetWindowTopX()
Returns current top x position of window on screen.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
Bool_t GetShowEditor() const
virtual void ToggleEditor()
Toggle editor.
TVirtualPad * GetSelectedPad() const override
UInt_t GetWindowWidth() const
UInt_t GetWh() const override
TClass instances represent classes, structs and namespaces in the ROOT type system.
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
TList * GetListOfBases()
Return list containing the TBaseClass(es) of a class.
Bool_t InheritsFrom(const char *cl) const
Return kTRUE if this class inherits from a class with name "classname".
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 Bool_t IsEmpty() const
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
const TGWindow * GetRoot() const
Returns current root (i.e.
void SetRoot(TGWindow *root=nullptr)
Sets the current root (i.e.
UInt_t GetDisplayWidth() const
Get display width.
virtual TList * GetList() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void Layout()
Layout the elements of the composite frame.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual void MapWindow()
map window
virtual void MapSubwindows()
map sub windows
virtual void UnmapWindow()
unmap window
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
const char * GetString() const
TGTabElement * GetTabTab(Int_t tabIndex) const
Return the tab element of tab with index tabIndex.
Int_t GetNumberOfTabs() const
Return number of tabs.
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...
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
TGTabElement * GetCurrentTab() const
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
virtual void SetCanvas(TCanvas *c)
Change connection to another canvas.
virtual void Hide()
Hide editor. The editor is put into non-active state.
void ConfigureGedFrames(Bool_t objChaged)
Call SetModel in class editors.
void ReinitWorkspace()
Clears windows in editor tab.
virtual void CloseWindow()
Called when closed via WM close button. Calls Hide().
virtual TGCompositeFrame * GetEditorTab(const char *name)
Find or create tab with name.
virtual void RecursiveRemove(TObject *obj)
Remove references to fModel in case the fModel is being deleted.
static TGedEditor * GetFrameCreator()
Returns TGedEditor that currently creates TGedFrames.
void ActivateEditors(TList *bcl, Bool_t recurse)
Searches GedFrames for classes in the given list.
virtual ~TGedEditor()
Editor destructor.
void PrintFrameStat()
Print contents of fFrameMap.
virtual void Show()
Show editor.
virtual TGedTabInfo * GetEditorTabInfo(const char *name)
Find or create tab with name.
void InsertGedFrame(TGedFrame *f)
Insert GedFrame in fGedFrames list according to priorities.
virtual void SetGlobal(Bool_t global)
Set editor global.
virtual void SetModel(TVirtualPad *pad, TObject *obj, Int_t event, Bool_t force=kFALSE)
Activate object editors according to the selected object.
TGedEditor(const TGedEditor &)=delete
TGCompositeFrame * fTabContainer
static void SetFrameCreator(TGedEditor *e)
Set the TGedEditor that currently creates TGedFrames.
virtual void GlobalClosed()
Delete global editor if no canvas exists.
void ExcludeClassEditor(TClass *cl, Bool_t recurse=kFALSE)
Exclude editor for class cl from current construction.
void ActivateEditor(TClass *cl, Bool_t recurse)
Searches for GedFrames for given class.
virtual void DisconnectFromCanvas()
Disconnect this editor from the Selected signal of fCanvas.
virtual void Update(TGedFrame *frame=0)
Virtual method that is called on any change in the dependent frames.
virtual TGedFrame * CreateNameFrame(const TGWindow *parent, const char *tab_name)
Virtual function for creation of top name-frame in each tab.
virtual void GlobalSetModel(TVirtualPad *, TObject *, Int_t)
Set canvas to global editor.
virtual void ConnectToCanvas(TCanvas *c)
Connect this editor to the Selected signal of canvas 'c'.
static TGedEditor * fgFrameCreator
TGCompositeFrame * fFrame
virtual void SetGedEditor(TGedEditor *ed)
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
void SetModelClass(TClass *mcl)
virtual Bool_t AcceptModel(TObject *)
virtual void Add(TObject *obj)
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
virtual TObjLink * FirstLink() const
virtual void AddBefore(const TObject *before, TObject *obj)
Insert object before object before in the list.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void Clear(Option_t *option="")
Remove all objects from the list.
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
const THashTable * GetTable() const
void Clear(Option_t *option="")
Remove all (key,value) pairs from the map.
virtual const char * GetName() const
Returns name of object.
Wrapper around a TObject so it can be stored in a TList.
TObject * GetObject() const
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
const char * GetName() const override
Returns name of object.
Class used by TMap to store (key,value) pairs.
void SetValue(TObject *val)
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.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
static void Terminate()
Close the global pad editor. Static method.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0
virtual TCanvas * GetCanvas() const =0
static uint64_t sum(uint64_t i)