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;
401 for (
Int_t i=0; i<
n->GetNdaughters(); i++)
404 title.
Form(
"%d : %s[%d]", i,
405 n->GetDaughter(i)->GetVolume()->GetName(),
406 n->GetDaughter(i)->GetNdaughters());
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);
const Mask_t kKeyControlMask
include TDocParser_001 C image html pict1_TDocParser_001 png width
void Warning(const char *location, const char *msgfmt,...)
R__EXTERN TEveManager * gEve
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
ABC describing GUI independent browser implementation protocol.
virtual void SetBrowser(TBrowser *b)
Using a TBrowser one can browse all ROOT objects.
TContextMenu * GetContextMenu() const
void SetBrowserImp(TBrowserImp *i)
TClass instances represent classes, structs and namespaces in the ROOT type system.
TList * GetMenuList() const
Return the list of menu items associated with the class.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
Specialization of TRootBrowser for Eve.
TEveBrowser(const TEveBrowser &)
void CalculateReparentXY(TGObject *parent, Int_t &x, Int_t &y)
Calculate position of a widget for reparenting into parent.
TGFileBrowser * GetFileBrowser() const
Returns the default file-browser.
void SanitizeTabCounts()
TRootBrowser keeps (somewhat unnecessarily) counters for number ob tabs on each position.
void EveMenu(Int_t id)
Handle events from Eve menu.
void SetupCintExport(TClass *cl)
Add "Export to CINT" into context-menu for class cl.
virtual void CloseTab(Int_t id)
Virtual from TRootBrowser. Need to intercept closing of Eve tabs.
TGFileBrowser * MakeFileBrowser(Bool_t make_default=kFALSE)
Create a file-browser.
void SetFileBrowser(TGFileBrowser *b)
Set the default file browser.
void InitPlugins(Option_t *opt="FI")
Initialize standard plugins.
virtual void CloseWindow()
Virtual from TGMainFrame. Calls TEveManager::Terminate().
void HideBottomTab()
Hide the bottom tab (usually holding command-line widget).
virtual void ReallyDelete()
Override from TRootBrowser.
TGFileBrowser * fFileBrowser
Abstract base-class for frame-slots that encompass EVE-windows (sub-classes of TEveWindow).
TEveWindow * GetEveWindow() const
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
virtual UChar_t GetSelectedLevel() const
Get selection level, needed for rendering selection and highlight feedback.
virtual Int_t GetNItems() const
virtual void ExpandIntoListTree(TGListTree *ltree, TGListTreeItem *parent)
Populates parent with elements.
Int_t GetDenyDestroy() const
Returns the number of times deny-destroy has been requested on the element.
virtual Bool_t SetRnrState(Bool_t rnr)
Set render state of this element and of its children to the same value.
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.
virtual TObject * GetObject(const TEveException &eh) const
Get a TObject associated with this render-element.
Exception class thrown by TEve classes and macros.
Composite GUI frame for parallel display of a TGListTree and TEveGedEditor.
static TString fgEditorClass
static void SetEditorClass(const char *edclass)
Set GED editor class.
virtual ~TEveGListTreeEditorFrame()
Destructor.
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:
void DisconnectSignals()
Disconnect list-tree signals.
TEveGListTreeEditorFrame(const TEveGListTreeEditorFrame &)
void ReconfToVertical()
Reconfigure to vertical layout, list-tree above the editor.
void ItemBelowMouse(TGListTreeItem *entry, UInt_t mask)
Different item is below mouse.
TGCompositeFrame * fLTFrame
void ItemDblClicked(TGListTreeItem *item, Int_t btn)
Item has been double-clicked, potentially expand the children.
TGCompositeFrame * fFrame
void ItemKeyPress(TGListTreeItem *entry, UInt_t keysym, UInt_t mask)
A key has been pressed for an item.
void ReconfToHorizontal()
Reconfigure to horizontal layout, list-tree and editor side by side.
void ConnectSignals()
Connect list-tree signals.
Specialization of TGedEditor for proper update propagation to TEveManager.
Special list-tree-item for Eve.
virtual Bool_t IsChecked() const
virtual void Toggle()
Item's check-box state has been toggled ... forward to element's render-state.
void NotSupported(const char *func) const
Warn about access to function members that should never be called.
virtual Pixel_t GetActiveColor() const
Return highlight color corresponding to current state of TEveElement.
TEveGListTreeEditorFrame * GetLTEFrame() const
static void Terminate()
Properly terminate global TEveManager.
TEveSelection * GetSelection() const
Bool_t ElementPaste(TEveElement *element)
Paste has been called.
void RemoveElement(TEveElement *element, TEveElement *parent)
Remove element from parent.
TEveWindowManager * GetWindowManager() const
TEveViewer * SpawnNewViewer(const char *name, const char *title="", Bool_t embed=kTRUE)
Create a new GL viewer.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void RemoveFromListTree(TEveElement *element, TGListTree *lt, TGListTreeItem *lti)
Remove top-level element from list-tree with specified tree-item.
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
TEveSelection * GetHighlight() const
void SetPickToSelect(Int_t ps)
virtual void UserPickedElement(TEveElement *el, Bool_t multi=kFALSE)
Called when user picks/clicks on an element.
Int_t GetPickToSelect() const
void ShowNormalEveDecorations()
Show eve decorations (title-bar or mini-bar) as specified for the contained window on all frames.
void SetShowTitleBars(Bool_t state)
Set show title-bar state on all frames.
void HideAllEveDecorations()
Hide all eve decorations (title-bar and mini-bar) on all frames.
void SelectWindow(TEveWindow *w)
Entry-point for communicating the fact that a window was acted upon in such a way that it should beco...
Description of TEveWindowSlot.
virtual void DestroyWindowAndSlot()
Destroy eve-window and its frame-slot.
static TEveWindowSlot * CreateWindowMainFrame(TEveWindow *eve_parent=0)
Create a new main-frame and populate it with a default window-slot.
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.
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
virtual TList * GetList() const
TGCompositeFrame(const TGCompositeFrame &)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void Layout()
Layout the elements of the composite frame.
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
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 SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual void Associate(const TGWindow *w)
void SetNewBrowser(TRootBrowser *b)
virtual void BrowseObj(TObject *obj)
Browse object.
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
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.
virtual UInt_t GetOptions() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void UnmapWindow()
virtual void SetPadRight(Int_t v)
virtual void SetPadLeft(Int_t v)
virtual void SetPadTop(Int_t v)
virtual void SetPadBottom(Int_t v)
virtual void SetLayoutHints(ULong_t lh)
TGListTreeItem * GetFirstChild() const
TGListTreeItem * GetParent() const
virtual void * GetUserData() const =0
virtual void SetUserData(void *, Bool_t=kFALSE)
void SetColorMode(EColorMarkupMode colorMode)
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
Int_t DeleteChildren(TGListTreeItem *item)
Delete children of item from list.
void SetAutoCheckBoxPic(Bool_t on)
void SetEventHandled(Bool_t eh=kTRUE)
virtual void SetCanvas(TGCanvas *canvas)
TGListTreeItem * GetCurrent() const
void SetUserControl(Bool_t ctrl=kTRUE)
virtual void SetFrame(TGFrame *frame, Bool_t prev)=0
virtual void SetString(const char *s)
Int_t GetNumberOfTabs() const
Return number of tabs.
TGCompositeFrame * GetTabContainer(Int_t tabIndex) const
Return container of tab with index tabIndex.
virtual void SetGlobal(Bool_t global)
Set editor global.
A node represent a volume positioned inside another.They store links to both volumes and to the TGeoM...
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
void SetTabTitle(const char *title, Int_t pos=kRight, Int_t subpos=-1)
Set text "title" of Tab "subpos" in TGTab "pos".
virtual void CloseTab(Int_t id)
Remove tab element id from right tab.
TGHorizontalFrame * fPreMenuFrame
virtual void StopEmbedding(const char *name=0)
virtual void StartEmbedding(Int_t pos=kRight, Int_t subpos=-1)
Start embedding external frame in the tab "pos" and tab element "subpos".
TGTab * GetTabRight() const
TGHorizontalFrame * fTopMenuFrame
void InitPlugins(Option_t *opt="")
Initialize default plugins.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.