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
ClassImp(TEveListTreeItem)
TList * GetMenuList() const
Return the list of menu items associated with the class.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetPadBottom(Int_t v)
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 void * GetUserData() const =0
virtual UChar_t GetSelectedLevel() const
Get selection level, needed for rendering selection and highlight feedback.
virtual void ReallyDelete()
Override from TRootBrowser.
TGeoVolume * GetVolume() const
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
Specialization of TGedEditor for proper update propagation to TEveManager.
TString & ReplaceAll(const TString &s1, const TString &s2)
void NotSupported(const char *func) const
Warn about access to function members that should never be called.
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.
virtual void Associate(const TGWindow *w)
virtual TList * GetList() const
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)
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
void SetFileBrowser(TGFileBrowser *b)
Set the default file browser.
TGCompositeFrame * GetTabContainer(Int_t tabIndex) const
Return container of tab with index tabIndex.
TEveSelection * GetSelection() const
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)
Int_t GetNumberOfTabs() const
Return number of tabs.
static TString fgEditorClass
const char * Data() const
TGListTreeItem * GetParent() 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 UInt_t GetOptions() const
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
TGCompositeFrame * fLTFrame
TEveBrowser(const TEveBrowser &)
Abstract base-class for frame-slots that encompass EVE-windows (sub-classes of TEveWindow).
TGeoNode * GetDaughter(Int_t ind) const
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.
Int_t GetPickToSelect() 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.
TEveGListTreeEditorFrame(const TEveGListTreeEditorFrame &)
TGListTreeItem * GetFirstChild() const
R__EXTERN TSystem * gSystem
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
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.
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,...)
TEveWindow * GetEveWindow() const
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.
virtual const char * GetName() const
Returns name of object.
void SetColorMode(EColorMarkupMode colorMode)
The ROOT global object gROOT contains a list of all defined classes.
void SetShowTitleBars(Bool_t state)
Set show title-bar state on all frames.
virtual Int_t GetNItems() const
void Warning(const char *location, const char *msgfmt,...)
TGFileBrowser * GetFileBrowser() const
Returns the default file-browser.
static void SetEditorClass(const char *edclass)
Set GED editor class.
TEveGListTreeEditorFrame * GetLTEFrame() const
TGListTreeItem * GetCurrent() 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.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
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.
Int_t GetDenyDestroy() const
Returns the number of times deny-destroy has been requested on the element.
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.
TGHorizontalFrame * fPreMenuFrame
double func(double *x, double *p)
virtual void SetString(const char *s)
virtual TObject * GetObject(const TEveException &eh) const
Get a TObject associated with this render-element.
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.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
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()
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.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void ConnectSignals()
Connect list-tree signals.
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
Exception class thrown by TEve classes and macros.
TEveWindowManager * GetWindowManager() const
Composite GUI frame for parallel display of a TGListTree and TEveGedEditor.
const Mask_t kKeyControlMask
virtual Bool_t IsChecked() const
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.
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TGTab * GetTabRight() const
virtual Pixel_t GetActiveColor() const
Return highlight color corresponding to current state of TEveElement.
TContextMenu * GetContextMenu() const
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
Int_t GetNdaughters() const
ABC describing GUI independent browser implementation protocol.
TEveSelection * GetHighlight() const
TGViewPort * GetViewPort() const
void ItemBelowMouse(TGListTreeItem *entry, UInt_t mask)
Different item is below mouse.