12 #ifndef ROOT_TEveWindow
13 #define ROOT_TEveWindow
23 class TEveWindowMainFrame;
99 UInt_t top_frame_height = 14,
100 UInt_t mini_bar_height = 4,
232 TEveWindow(
const char*
n=
"TEveWindow",
const char*
t=
"");
virtual TEveWindowSlot * NewSlot()
Create new frame-slot - a new tab.
virtual TEveWindowSlot * NewSlot()
Create a new frame-slot at the last position of the pack.
ClassDef(TEveWindowPack, 0)
virtual void HideAllDecorations()
Hide title-bar and mini-bar.
virtual Bool_t CanMakeNewSlots() const
virtual TEveWindowSlot * NewSlot()
virtual void PostDock()
Virtual function called after a window is docked.
Encapsulates TGPack into an eve-window.
virtual TGFrame * GetGUIFrame()
Return top-frame of this eve-window - the pack.
void MainFrameClosed()
Slot for main-frame's "CloseWindow()" signal.
TEveCompositeFrame * fEveFrame
TEveWindowFrame * StopEmbedding(const char *name=0)
An embedded window is created in place of this window-slot.
static TEveContextMenu * fgCtxMenu
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.
TEveCompositeFrame & operator=(const TEveCompositeFrame &)
void EqualizeFrames()
Refit existing frames so that their lengths are equal.
ClassDef(TEveCompositeFrameInMainFrame, 0)
TEveCompositeFrameInTab & operator=(const TEveCompositeFrameInTab &)
static TList * fgFrameList
TEveCompositeFrameInPack & operator=(const TEveCompositeFrameInPack &)
static UInt_t fgMainFrameDefHeight
virtual void SetCurrent(Bool_t curr)
Set current state of this window-slot.
Abstract base-class for representing eve-windows.
static TEveWindowSlot * CreateDefaultWindowSlot()
Create a default window slot.
An EVE window-slot contained within a TGMainFrame.
TEveCompositeFrameInMainFrame & operator=(const TEveCompositeFrameInMainFrame &)
ClassDef(TEveCompositeFrame, 0)
TGFrame *(* IconBarCreator_foo)(TEveCompositeFrame *, TGCompositeFrame *, Int_t)
virtual ~TEveWindowFrame()
Destructor.
Bool_t IsCurrent() const
Returns true if this window is the current one.
TGCompositeFrame * fTopFrame
TEveCompositeFrame * GetEveFrame()
Description of TEveWindowSlot.
static Pixel_t GetMiniBarBackgroundColor()
Get background-color for mini-bar (collapsed title-bar). Static.
virtual TGFrame * GetGUIFrame()
TEveCompositeFrameInMainFrame(const TEveCompositeFrameInMainFrame &)
TEveWindowTab * MakeTab()
A tab is created in place of this window-slot.
virtual ~TEveWindowTab()
Destructor.
virtual ~TEveWindowPack()
Destructor.
void MakeCurrent()
Make this window current.
static Pixel_t fgCurrentBackgroundColor
virtual ~TEveWindow()
Destructor.
TEveWindowFrame * MakeFrame(TGFrame *frame=0)
An eve-window-frame is created and frame is passed into it.
ClassDef(TEveWindowSlot, 0)
Int_t FindTabIndex()
Return index of this frame in the tab.
void SwapWindowWithCurrent()
Swap frames with the current window.
virtual void WindowNameChanged(const TString &name)
Update widgets using window's name or title.
virtual void PreUndock()
Virtual function called before a window is undocked.
virtual ~TEveWindowSlot()
Destructor.
virtual void Destroy()
Virtual function called from eve side when the frame should be destroyed.
void ActionPressed()
The action-button of the title-bar was pressed.
static void SetMainFrameDefHeight(UInt_t x)
Set default height for new main-frame windows. Static.
static TEveWindowSlot * CreateWindowMainFrame(TEveWindow *eve_parent=0)
Create a new main-frame and populate it with a default window-slot.
static UInt_t GetMainFrameDefWidth()
Get default width for new main-frame windows. Static.
static const TString fgkEmptyFrameName
TEveWindowPack(const TEveWindowPack &)
virtual void SetCurrent(Bool_t curr)
Set current state of this frame.
#define ClassDef(name, id)
void ReplaceWindow(TEveWindow *w)
Replace this window with the passed one.
void UndockWindow()
Undock the window - put it into a dedicated main-frame.
virtual TGFrame * GetGUIFrame()
Return top-frame of this eve-window - the tab.
virtual void Destroy()
Virtual function called from eve side when the frame should be destroyed.
static void SetMainFrameDefWidth(UInt_t x)
Set default width for new main-frame windows. Static.
TGCompositeFrame * GetGUICompositeFrame()
Returns the registered top-frame of this eve-window dynamic-casted to composite-frame.
Abstract base-class for frame-slots that encompass EVE-windows (sub-classes of TEveWindow).
void UndockWindowDestroySlot()
Undock the window - put it into a dedicated main-frame.
static void SetupFrameMarkup(IconBarCreator_foo creator, UInt_t top_frame_height=14, UInt_t mini_bar_height=4, Bool_t allow_top_collapse=kTRUE)
Set properties of the EVE frame.
virtual ~TEveCompositeFrame()
If fEveWindow != 0 we are being deleted from the ROOT GUI side.
static UInt_t fgMainFrameDefWidth
static UInt_t GetMainFrameDefHeight()
Get default height for new main-frame windows. Static.
void SwapWindow(TEveWindow *w)
Swap frames with the given window.
void FlipOrientation()
Flip orientation of the pack (vertical / horizontal).
virtual void DestroyWindowAndSlot()
Destroy eve-window and its frame-slot.
TEveWindow & operator=(const TEveWindow &)
virtual void SetShowTitleBar(Bool_t show)
Set state of title-bar.
virtual Bool_t CanMakeNewSlots() const
TEveWindowSlot(const TEveWindowSlot &)
TGTextButton * fToggleBar
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
An EVE window-slot contained within one tab of a TGTab.
Bool_t GetShowTitleBar() const
static UInt_t fgTopFrameHeight
void SetVertical(Bool_t x=kTRUE)
Set orientation of the pack (vertical / horizontal).
TGCompositeFrame * fEmbedBuffer
virtual ~TEveCompositeFrameInMainFrame()
Destructor.
virtual void Destroy()
Virtual function called from eve side when the frame should be destroyed.
TGTextButton * fEmptyButt
TEveWindow * GetEveWindow() const
virtual void ShowNormalDecorations()
Show title-bar or mini-bar, as dictated by the window.
void PopulateEmptyFrame(TEveCompositeFrame *ef)
Populate given frame-slot - intended for initial population of a new slot or low-level window-swappin...
TEveCompositeFrame(const TEveCompositeFrame &)
static void SwapWindows(TEveWindow *w1, TEveWindow *w2)
Swap windows w1 and w2.
Encapsulates TGTab into an eve-window.
void ClearEveFrame()
Clears eve-frame associated with this window.
ClassDef(TEveCompositeFrameInPack, 0)
virtual void NameTitleChanged()
Name or title of the window changed - propagate to frames.
TEveWindowTab & operator=(const TEveWindowTab &)
static Pixel_t GetCurrentBackgroundColor()
Get background-color for marking the title-bar of current window. Static.
void SetOriginalSlotAndContainer(TEveWindow *slot, TEveWindow *container)
Set the container where to return the contained window on destruction.
TEveWindow * GetOriginalContainer() const
TEveWindowPack * MakePack()
A pack is created in place of this window-slot.
ClassDef(TEveWindowFrame, 0)
TEveCompositeFrameInTab(const TEveCompositeFrameInTab &)
static IconBarCreator_foo fgIconBarCreator
ClassDef(TEveCompositeFrameInTab, 0)
virtual ~TEveCompositeFrameInTab()
Destructor.
virtual void AcquireEveWindow(TEveWindow *ew)
Accept window and increase its deny-destroy count.
virtual ~TEveCompositeFrameInPack()
Destructor.
TEveCompositeFrameInPack(const TEveCompositeFrameInPack &)
TEveWindow(const TEveWindow &)
TEveWindow * GetOriginalSlot() const
virtual void SetCurrent(Bool_t curr)
Set current state of this eve-window.
TEveWindowFrame(const TEveWindowFrame &)
virtual void SetCurrent(Bool_t curr)
Set current state of this frame.
Mother of all ROOT objects.
void FlipTitleBarState()
Change display-state of the title-bar / mini-bar.
TEveWindowTab(const TEveWindowTab &)
TEveWindow * GetEveParentAsWindow() const
Returns eve-parent dynamic-casted to TEveWindow.
ClassDef(TEveWindowTab, 0)
virtual void DestroyWindow()
Destroy eve-window - replace it with an empty frame-slot.
static void SetCurrentBackgroundColor(Pixel_t p)
Set background-color for marking the title-bar of current window. Static.
virtual TEveWindowSlot * NewSlotWithWeight(Float_t w)
Create a new weighted frame-slot at the last position of the pack.
TEveWindow * fOriginalContainer
TEveWindowSlot & operator=(const TEveWindowSlot &)
TGLayoutHints * fEveWindowLH
TEveWindow * fOriginalSlot
TEveWindowFrame & operator=(const TEveWindowFrame &)
void SomeWindowClosed(TEveWindow *w)
Slot called when a window is closed ...
virtual void WindowNameChanged(const TString &name)
Update widgets using window's name or title.
void SetShowTitleBar(Bool_t x)
Set display state of the title-bar.
static void SetMiniBarBackgroundColor(Pixel_t p)
Set background-color for mini-bar (collapsed title-bar). Static.
void TitleBarClicked()
Slot for clicking on the title-bar.
void TitleBarClicked()
Slot for mouse-click on the central part of the title-bar.
virtual Bool_t CanMakeNewSlots() const
TGCompositeFrame * fParentInTab
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
TEveWindowPack & operator=(const TEveWindowPack &)
static UInt_t fgMiniBarHeight
An EVE window-slot contained within one frame of a TGPack.
TGCompositeFrame * StartEmbedding()
Start embedding a window that will replace the current slot.
static Pixel_t fgMiniBarBackgroundColor
virtual TEveWindow * RelinquishEveWindow(Bool_t reparent=kTRUE)
Remove window and decrease its deny-destroy count.
virtual TGFrame * GetGUIFrame()
Return top-frame of this eve-window - the big button to make slot current.
Encapsulates TGFrame into an eve-window.
virtual TGFrame * GetGUIFrame()=0
Bool_t IsAncestorOf(TEveWindow *win)
Returns true if this is an ancestor of win.
virtual void PreDeleteElement()
Called before the element is deleted, thus offering the last chance to detach from acquired resources...
static Bool_t fgAllowTopFrameCollapse
virtual void WindowNameChanged(const TString &name)
Update widgets using window's name or title.