forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TEveWindowManager.h
65 lines (48 loc) · 2.18 KB
/
TEveWindowManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// @(#)root/eve:$Id$
// Author: Matevz Tadel 2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TEveWindowManager
#define ROOT_TEveWindowManager
#include "TEveElement.h"
#include "TQObject.h"
class TEveWindow;
class TEveWindowSlot;
class TEveWindowManager : public TEveElementList,
public TQObject
{
private:
TEveWindowManager(const TEveWindowManager&); // Not implemented
TEveWindowManager& operator=(const TEveWindowManager&); // Not implemented
protected:
TEveWindow *fCurrentWindow;
TEveWindow *fDefaultContainer;
void DestroyWindowRecursively(TEveWindow* window);
public:
TEveWindowManager(const char* n="TEveWindowManager", const char* t="");
virtual ~TEveWindowManager();
void SelectWindow(TEveWindow* w);
void DeleteWindow(TEveWindow* w);
void WindowDocked(TEveWindow* window); // *SIGNAL*
void WindowUndocked (TEveWindow* window); // *SIGNAL*
void WindowSelected(TEveWindow* window); // *SIGNAL*
void WindowDeleted (TEveWindow* window); // *SIGNAL*
TEveWindow* GetCurrentWindow() const { return fCurrentWindow; }
Bool_t IsCurrentWindow(const TEveWindow* w) const { return w == fCurrentWindow; }
TEveWindowSlot* GetCurrentWindowAsSlot() const;
TEveWindow* GetDefaultContainer() const { return fDefaultContainer; }
Bool_t HasDefaultContainer() const { return fDefaultContainer != 0; }
void SetDefaultContainer(TEveWindow* w);
void DestroyWindows();
// Global frame decoration control.
void HideAllEveDecorations();
void ShowNormalEveDecorations();
void SetShowTitleBars(Bool_t state);
ClassDef(TEveWindowManager, 0); // Manager for EVE windows.
};
#endif