77 Warning(
Form(
"TEveListTreeItem::%s()", func),
"not supported.");
125 fSignalsConnected (
kFALSE)
214 fListTree->
Connect(
"MouseOver(TGListTreeItem*, UInt_t)",
"TEveGListTreeEditorFrame",
215 this,
"ItemBelowMouse(TGListTreeItem*, UInt_t)");
216 fListTree->
Connect(
"Clicked(TGListTreeItem*, Int_t, UInt_t, Int_t, Int_t)",
"TEveGListTreeEditorFrame",
217 this,
"ItemClicked(TGListTreeItem*, Int_t, UInt_t, Int_t, Int_t)");
218 fListTree->
Connect(
"DoubleClicked(TGListTreeItem*, Int_t)",
"TEveGListTreeEditorFrame",
219 this,
"ItemDblClicked(TGListTreeItem*, Int_t)");
220 fListTree->
Connect(
"KeyPressed(TGListTreeItem*, ULong_t, ULong_t)",
"TEveGListTreeEditorFrame",
221 this,
"ItemKeyPress(TGListTreeItem*, UInt_t, UInt_t)");
234 this,
"ItemBelowMouse(TGListTreeItem*, UInt_t)");
236 this,
"ItemClicked(TGListTreeItem*, Int_t, UInt_t, Int_t, Int_t)");
238 this,
"ItemDblClicked(TGListTreeItem*, Int_t)");
240 this,
"ItemKeyPress(TGListTreeItem*, UInt_t, UInt_t)");
347 static const TEveException eh(
"TEveGListTreeEditorFrame::ItemClicked ");
382 static const TEveException eh(
"TEveGListTreeEditorFrame::ItemDblClicked ");
384 if (btn != 1)
return;
404 title.
Form(
"%d : %s[%d]", i,
424 static const TEveException eh(
"TEveGListTreeEditorFrame::ItemKeyPress ");
427 if (entry == 0)
return;
440 throw(eh +
"DestroyDenied set for this item.");
453 throw(eh +
"DestroyDenied set for this top-level item.");
490 "Export to CINT",
"ExportToCINT",
this,
"const char*,TObject*", 1);
504 gClient->GetDefaultRoot()->GetId(),
505 0, 0,
x,
y, childdum);
511 kNewMainFrameSlot, kNewTabSlot,
512 kNewViewer, kNewScene,
513 kNewBrowser, kNewCanvas, kNewCanvasExt, kNewTextEditor, kNewHtmlBrowser,
514 kSel_PS_Ignore, kSel_PS_Element, kSel_PS_Projectable, kSel_PS_Compound,
515 kSel_PS_PableCompound, kSel_PS_Master, kSel_PS_END,
516 kHil_PS_Ignore, kHil_PS_Element, kHil_PS_Projectable, kHil_PS_Compound,
517 kHil_PS_PableCompound, kHil_PS_Master, kHil_PS_END,
519 kWinDecorNormal, kWinDecorHide, kWinDecorTitleBar, kWinDecorMiniBar
557 kSel_PS_PableCompound);
560 kSel_PS_Ignore, kSel_PS_END - 1);
570 kHil_PS_PableCompound);
573 kHil_PS_Ignore, kHil_PS_END - 1);
582 wd->
AddEntry(
"Normal", kWinDecorNormal);
583 wd->
AddEntry(
"Hide", kWinDecorHide);
584 wd->
AddEntry(
"Title bars", kWinDecorTitleBar);
585 wd->
AddEntry(
"Mini bars", kWinDecorMiniBar);
590 this,
"EveMenu(Int_t)");
609 case kNewMainFrameSlot: {
628 gROOT->ProcessLineFast(
"new TBrowser");
633 gROOT->ProcessLineFast(
"new TCanvas");
638 case kNewCanvasExt: {
639 gROOT->ProcessLineFast(
"new TCanvas");
642 case kNewTextEditor: {
644 gROOT->ProcessLineFast(
Form(
"new TGTextEditor((const char *)0, (const TGWindow *)0x%lx)", (
ULong_t)
gClient->GetRoot()));
649 case kNewHtmlBrowser: {
654 gROOT->ProcessLine(
Form(
"new TGHtmlBrowser(\"http://root.cern.ch/root/html/ClassIndex.html\", \ 662 case kSel_PS_Element:
663 case kSel_PS_Projectable:
664 case kSel_PS_Compound:
665 case kSel_PS_PableCompound:
666 case kSel_PS_Master: {
669 kSel_PS_Ignore, kSel_PS_END - 1);
673 case kHil_PS_Element:
674 case kHil_PS_Projectable:
675 case kHil_PS_Compound:
676 case kHil_PS_PableCompound:
677 case kHil_PS_Master: {
680 kHil_PS_Ignore, kHil_PS_END - 1);
683 case kVerticalBrowser: {
693 case kWinDecorNormal: {
697 case kWinDecorHide: {
701 case kWinDecorTitleBar: {
705 case kWinDecorMiniBar: {
753 gROOT->GetListOfBrowsers()->Remove(tb);
void SetBrowserImp(TBrowserImp *i)
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void SetFrame(TGFrame *frame, Bool_t prev)=0
virtual const char * GetName() const
Returns name of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetPadBottom(Int_t v)
virtual Pixel_t GetActiveColor() const
Return highlight color corresponding to current state of TEveElement.
virtual void SetCanvas(TGCanvas *canvas)
void ShowNormalEveDecorations()
Show eve decorations (title-bar or mini-bar) as specified for the contained window on all frames...
virtual void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1)
Start embedding external frame in the tab "pos" and tab element "subpos".
virtual UInt_t GetOptions() const
virtual void * GetUserData() const =0
virtual void ReallyDelete()
Override from TRootBrowser.
virtual Bool_t IsChecked() const
TGCompositeFrame * GetTabContainer(Int_t tabIndex) const
Return container of tab with index tabIndex.
static TEveWindowSlot * CreateWindowInTab(TGTab *tab, TEveWindow *eve_parent=0)
Create a new tab in a given tab-widget and populate it with a default window-slot.
Specialization of TGedEditor for proper update propagation to TEveManager.
TString & ReplaceAll(const TString &s1, const TString &s2)
TList * GetMenuList() const
Return the list of menu items associated with the class.
virtual void UserPickedElement(TEveElement *el, Bool_t multi=kFALSE)
Called when user picks/clicks on an element.
void InitPlugins(Option_t *opt="")
Initialize default plugins.
void HideBottomTab()
Hide the bottom tab (usually holding command-line widget).
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
virtual void SetContainer(TGFrame *f)
void ItemKeyPress(TGListTreeItem *entry, UInt_t keysym, UInt_t mask)
A key has been pressed for an item.
Specialization of TRootBrowser for Eve.
virtual Bool_t SetRnrState(Bool_t rnr)
Set render state of this element and of its children to the same value.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
void NotSupported(const char *func) const
Warn about access to function members that should never be called.
virtual void Associate(const TGWindow *w)
Description of TEveWindowSlot.
TGFileBrowser * fFileBrowser
Bool_t ElementPaste(TEveElement *element)
Paste has been called.
Int_t DeleteChildren(TGListTreeItem *item)
Delete children of item from list.
void ReconfToHorizontal()
Reconfigure to horizontal layout, list-tree and editor side by side.
virtual void SetBrowser(TBrowser *b)
virtual Int_t GetNItems() const
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Int_t GetPickToSelect() const
void SetFileBrowser(TGFileBrowser *b)
Set the default file browser.
void RemoveFromListTree(TEveElement *element, TGListTree *lt, TGListTreeItem *lti)
Remove top-level element from list-tree with specified tree-item.
void SetPickToSelect(Int_t ps)
virtual void Layout()
Layout the elements of the composite frame.
void SetAutoCheckBoxPic(Bool_t on)
static TString fgEditorClass
TEveWindow * GetEveWindow() const
void DisconnectSignals()
Disconnect list-tree signals.
static TEveWindowSlot * CreateWindowMainFrame(TEveWindow *eve_parent=0)
Create a new main-frame and populate it with a default window-slot.
void HideAllEveDecorations()
Hide all eve decorations (title-bar and mini-bar) on all frames.
virtual void ElementChanged(Bool_t update_scenes=kTRUE, Bool_t redraw=kFALSE)
Call this after an element has been changed so that the state can be propagated around the framework...
static void Terminate()
Properly terminate global TEveManager.
virtual void Toggle()
Item's check-box state has been toggled ...
virtual void SetUserData(void *, Bool_t=kFALSE)
TGHorizontalFrame * fTopMenuFrame
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGCompositeFrame(const TGCompositeFrame &)
virtual void SetGlobal(Bool_t global)
Set editor global.
TGFileBrowser * MakeFileBrowser(Bool_t make_default=kFALSE)
Create a file-browser.
void SetEventHandled(Bool_t eh=kTRUE)
TGCompositeFrame * fFrame
virtual TList * GetList() const
TGCompositeFrame * fLTFrame
TEveBrowser(const TEveBrowser &)
Abstract base-class for frame-slots that encompass EVE-windows (sub-classes of TEveWindow).
virtual void ExpandIntoListTree(TGListTree *ltree, TGListTreeItem *parent)
Populates parent with elements.
void CalculateReparentXY(TGObject *parent, Int_t &x, Int_t &y)
Calculate position of a widget for reparenting into parent.
TGViewPort * GetViewPort() const
virtual void CloseWindow()
Virtual from TGMainFrame. Calls TEveManager::Terminate().
void SetNewBrowser(TRootBrowser *b)
void SanitizeTabCounts()
TRootBrowser keeps (somewhat unnecessarily) counters for number ob tabs on each position.
virtual void BrowseObj(TObject *obj)
Browse object.
Using a TBrowser one can browse all ROOT objects.
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 SetPadRight(Int_t v)
virtual void DestroyWindowAndSlot()
Destroy eve-window and its frame-slot.
TGListTreeItem * GetCurrent() const
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
TGeoNode * GetDaughter(Int_t ind) const
TEveGListTreeEditorFrame(const TEveGListTreeEditorFrame &)
R__EXTERN TSystem * gSystem
void SetUserControl(Bool_t ctrl=kTRUE)
void SetTabTitle(const char *title, Int_t pos=kRight, Int_t subpos=-1)
Set text "title" of Tab "subpos" in TGTab "pos".
R__EXTERN TEveManager * gEve
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
TEveViewer * SpawnNewViewer(const char *name, const char *title="", Bool_t embed=kTRUE)
Create a new GL viewer.
char * Form(const char *fmt,...)
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void CloseTab(Int_t id)
Remove tab element id from right tab.
void ReconfToVertical()
Reconfigure to vertical layout, list-tree above the editor.
void SetColorMode(EColorMarkupMode colorMode)
The ROOT global object gROOT contains a list of all defined classes.
TEveWindowManager * GetWindowManager() const
void SetShowTitleBars(Bool_t state)
Set show title-bar state on all frames.
void Warning(const char *location, const char *msgfmt,...)
static void SetEditorClass(const char *edclass)
Set GED editor class.
TGTab * GetTabRight() const
TEveSelection * GetHighlight() const
void InitPlugins(Option_t *opt="FI")
Initialize standard plugins.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
TGListTreeItem * GetParent() const
void SelectWindow(TEveWindow *w)
Entry-point for communicating the fact that a window was acted upon in such a way that it should beco...
void ItemClicked(TGListTreeItem *entry, Int_t btn, UInt_t mask, Int_t x, Int_t y)
Item has been clicked, based on mouse button do:
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void SetLayoutHints(ULong_t lh)
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
void ItemDblClicked(TGListTreeItem *item, Int_t btn)
Item has been double-clicked, potentially expand the children.
void EveMenu(Int_t id)
Handle events from Eve menu.
TGListTreeItem * GetFirstChild() const
TGHorizontalFrame * fPreMenuFrame
virtual void SetString(const char *s)
TEveSelection * GetSelection() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void StopEmbedding(const char *name=0)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual ~TEveGListTreeEditorFrame()
Destructor.
TGFileBrowser * GetFileBrowser() const
Returns the default file-browser.
virtual TObject * GetObject(const TEveException &eh) const
Get a TObject associated with this render-element.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Mother of all ROOT objects.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
virtual void UnmapWindow()
virtual void SetPadTop(Int_t v)
void RemoveElement(TEveElement *element, TEveElement *parent)
Remove element from parent.
Special list-tree-item for Eve.
void SetupCintExport(TClass *cl)
Add "Export to CINT" into context-menu for class cl.
void ConnectSignals()
Connect list-tree signals.
TEveGListTreeEditorFrame * GetLTEFrame() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Int_t GetNdaughters() const
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
Exception class thrown by TEve classes and macros.
Composite GUI frame for parallel display of a TGListTree and TEveGedEditor.
const Mask_t kKeyControlMask
Int_t GetDenyDestroy() const
Returns the number of times deny-destroy has been requested on the element.
virtual void SetPadLeft(Int_t v)
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void CloseTab(Int_t id)
Virtual from TRootBrowser. Need to intercept closing of Eve tabs.
virtual UChar_t GetSelectedLevel() const
Get selection level, needed for rendering selection and highlight feedback.
Int_t GetNumberOfTabs() const
Return number of tabs.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TContextMenu * GetContextMenu() const
TGeoVolume * GetVolume() const
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
ABC describing GUI independent browser implementation protocol.
const char * Data() const
void ItemBelowMouse(TGListTreeItem *entry, UInt_t mask)
Different item is below mouse.