Logo ROOT   6.10/09
Reference Guide
TEveWindowManager.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveWindowManager
13 #define ROOT_TEveWindowManager
14 
15 #include "TEveElement.h"
16 #include "TQObject.h"
17 
18 class TEveWindow;
19 class TEveWindowSlot;
20 
22  public TQObject
23 {
24 private:
25  TEveWindowManager(const TEveWindowManager&); // Not implemented
26  TEveWindowManager& operator=(const TEveWindowManager&); // Not implemented
27 
28 protected:
31 
33 
34 public:
35  TEveWindowManager(const char* n="TEveWindowManager", const char* t="");
36  virtual ~TEveWindowManager();
37 
38  void SelectWindow(TEveWindow* w);
39  void DeleteWindow(TEveWindow* w);
40 
41  void WindowDocked(TEveWindow* window); // *SIGNAL*
42  void WindowUndocked (TEveWindow* window); // *SIGNAL*
43  void WindowSelected(TEveWindow* window); // *SIGNAL*
44  void WindowDeleted (TEveWindow* window); // *SIGNAL*
45 
47  Bool_t IsCurrentWindow(const TEveWindow* w) const { return w == fCurrentWindow; }
49 
51  Bool_t HasDefaultContainer() const { return fDefaultContainer != 0; }
53 
54  void DestroyWindows();
55 
56  // Global frame decoration control.
57 
58  void HideAllEveDecorations();
60  void SetShowTitleBars(Bool_t state);
61 
62  ClassDef(TEveWindowManager, 0); // Manager for EVE windows.
63 };
64 
65 #endif
void ShowNormalEveDecorations()
Show eve decorations (title-bar or mini-bar) as specified for the contained window on all frames...
TEveWindowSlot * GetCurrentWindowAsSlot() const
Return current window dynamic-casted to TEveWindowSlot.
TEveWindow * GetCurrentWindow() const
void WindowDocked(TEveWindow *window)
Emit the "WindowDocked(TEveWindow*)" signal.
Abstract base-class for representing eve-windows.
Definition: TEveWindow.h:209
TEveWindow * GetDefaultContainer() const
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:49
Description of TEveWindowSlot.
Definition: TEveWindow.h:301
bool Bool_t
Definition: RtypesCore.h:59
virtual ~TEveWindowManager()
Destructor.
A list of TEveElements.
Definition: TEveElement.h:459
void HideAllEveDecorations()
Hide all eve decorations (title-bar and mini-bar) on all frames.
#define ClassDef(name, id)
Definition: Rtypes.h:297
void DestroyWindowRecursively(TEveWindow *window)
Destroy window's children and then the window itself.
void WindowDeleted(TEveWindow *window)
Emit the "WindowDeleted(TEveWindow*)" signal.
TEveWindow * fCurrentWindow
Bool_t IsCurrentWindow(const TEveWindow *w) const
TEveWindowManager(const TEveWindowManager &)
void WindowSelected(TEveWindow *window)
Emit the "WindowSelected(TEveWindow*)" signal.
void DeleteWindow(TEveWindow *w)
Called by a window before it gets deleted.
void SetShowTitleBars(Bool_t state)
Set show title-bar state 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...
Bool_t HasDefaultContainer() const
TEveWindow * fDefaultContainer
Manager for EVE windows.
void SetDefaultContainer(TEveWindow *w)
void DestroyWindows()
Wait for all windows to shut-down.
TEveWindowManager & operator=(const TEveWindowManager &)
void WindowUndocked(TEveWindow *window)
Emit the "WindowUndocked(TEveWindow*)" signal.
const Int_t n
Definition: legend1.C:16