Logo ROOT  
Reference Guide
TGMdiMainFrame.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Bertrand Bellenot 20/08/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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 /**************************************************************************
13 
14  This file is part of TGMdi, an extension to the xclass toolkit.
15  Copyright (C) 1998-2002 by Harald Radke, Hector Peraza.
16 
17  This application is free software; you can redistribute it and/or
18  modify it under the terms of the GNU Library General Public
19  License as published by the Free Software Foundation; either
20  version 2 of the License, or (at your option) any later version.
21 
22  This application is distributed in the hope that it will be useful,
23  but WITHOUT ANY WARRANTY; without even the implied warranty of
24  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25  Library General Public License for more details.
26 
27  You should have received a copy of the GNU Library General Public
28  License along with this library; if not, write to the Free
29  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30 
31 **************************************************************************/
32 
33 #ifndef ROOT_TGMdiMainFrame
34 #define ROOT_TGMdiMainFrame
35 
36 //////////////////////////////////////////////////////////////////////////
37 // //
38 // TGMdiMainFrame. //
39 // //
40 // This file contains the TGMdiMainFrame class. //
41 // //
42 //////////////////////////////////////////////////////////////////////////
43 
44 #include "TGCanvas.h"
45 #include "TGMenu.h"
46 #include "TGFont.h"
47 
48 
49 // MDI resizing modes
54 };
55 
56 // MDI hints, also used to identify titlebar buttons
57 enum EMdiHints {
58  kMdiClose = 4,
60  kMdiMove = 16,
61  kMdiSize = 32,
63  kMdiMaximize = 128,
64  kMdiHelp = 256,
65  kMdiMenu = 512,
68 };
69 
70 // window arrangement modes
74  kMdiCascade = 3
75 };
76 
77 // geometry value masks for ConfigureWindow() call
82 };
83 
84 
85 class TGGC;
86 class TGMdiMenuBar;
87 class TGMdiContainer;
88 class TGMdiDecorFrame;
89 class TGMdiFrame;
90 
91 //----------------------------------------------------------------------
92 
94 
95 friend class TGMdiMainFrame;
96 
97 protected:
98  UInt_t fFrameId; // TGMdiFrameList Id
99  TGMdiDecorFrame *fDecor; // MDI decor frame
100  TGMdiFrameList *fPrev, *fNext; // pointers on previous and next TGMdiFrameList
101  TGMdiFrameList *fCyclePrev, *fCycleNext; // pointers on previous and next TGMdiFrameList
102 
103 public:
104  virtual ~TGMdiFrameList() { }
105 
106  UInt_t GetFrameId() const { return fFrameId; }
107  TGMdiDecorFrame *GetDecorFrame() const { return fDecor; }
108  TGMdiFrameList *GetPrev() const { return fPrev; }
109  TGMdiFrameList *GetNext() const { return fNext; }
112 
113  void SetFrameId(UInt_t id) { fFrameId = id; }
114  void SetDecorFrame(TGMdiDecorFrame *decor) { fDecor = decor; }
115  void SetPrev(TGMdiFrameList *prev) { fPrev = prev; }
116  void SetNext(TGMdiFrameList *next) { fNext = next; }
117  void SetCyclePrev(TGMdiFrameList *prev) { fCyclePrev = prev; }
118  void SetCycleNext(TGMdiFrameList *next) { fCycleNext = next; }
119 
120  ClassDef(TGMdiFrameList, 0) // MDI Frame list
121 };
122 
123 
125 
126 public:
127  Int_t fValueMask; // MDI hints mask
128  TGRectangle fClient, fDecoration, fIcon; // client, decoration and icon rectangles
129 
130  virtual ~TGMdiGeometry() { }
131 
132  ClassDef(TGMdiGeometry, 0) // MDI Geometry
133 };
134 
135 
136 //----------------------------------------------------------------------
137 
138 class TGMdiMainFrame : public TGCanvas {
139 
140 friend class TGMdiFrame;
141 
142 protected:
143  enum {
144  // the width of minimized windows, in "height" units
145  kMinimizedWidth = 5
146  };
147 
148  Int_t fCurrentX, fCurrentY, fResizeMode; // current MDI child XY position and resize mode
149  Int_t fArrangementMode; // MDI children arrangement mode
150  TGFont *fFontCurrent, *fFontNotCurrent; // fonts for active and inactive MDI children
151  Pixel_t fBackCurrent, fForeCurrent; // back and fore colors for active MDI children
152  Pixel_t fBackNotCurrent, fForeNotCurrent; // back and fore colors for inactive MDI children
153 
154  TGGC *fBoxGC; // GC used to draw resizing box (rectangle)
155 
156  Long_t fNumberOfFrames; // number of MDI child windows
157  TGMdiMenuBar *fMenuBar; // menu bar
158  TGFrame *fContainer; // MDI container
159  TGPopupMenu *fWinListMenu; // popup menu with list of MDI child windows
160  TGMdiFrameList *fChildren; // list of MDI child windows
161  TGMdiFrameList *fCurrent; // current list of MDI child windows
162 
163  void AddMdiFrame(TGMdiFrame *f);
165 
166  Bool_t SetCurrent(TGMdiFrameList *newcurrent);
169 
170  void UpdateWinListMenu();
171 
172 public:
173  TGMdiMainFrame(const TGWindow *p, TGMdiMenuBar *menu, Int_t w, Int_t h,
174  UInt_t options = 0,
176  virtual ~TGMdiMainFrame();
177 
178  virtual Bool_t HandleKey(Event_t *event);
179  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
180 
181  virtual void Layout();
182 
183  virtual void FreeMove(TGMdiFrame *frame);
184  virtual void FreeSize(TGMdiFrame *frame);
185  virtual void Restore(TGMdiFrame *frame);
186  virtual void Maximize(TGMdiFrame *frame);
187  virtual void Minimize(TGMdiFrame *frame);
188  virtual Int_t Close(TGMdiFrame *frame);
189  virtual Int_t ContextHelp(TGMdiFrame *frame);
190  virtual void CloseAll();
191 
192  virtual void Cascade() { ArrangeFrames(kMdiCascade); }
195 
196  virtual void ArrangeFrames(Int_t mode);
197  virtual void ArrangeMinimized();
198 
199  virtual void CirculateUp();
200  virtual void CirculateDown();
201 
202  TGMdiFrame *GetCurrent() const;
203  TGMdiFrame *GetMdiFrame(UInt_t id) const;
204  TGFrame *GetContainer() const { return fContainer; }
205  Bool_t SetCurrent(UInt_t newcurrent);
206  Bool_t SetCurrent(TGMdiFrame *f); //*SIGNAL*
207 
209  TGMdiMenuBar *GetMenu() const { return fMenuBar; }
210 
212  { return current ? fCurrent : fChildren; }
214 
216  void UpdateMdiButtons();
217 
218  TGRectangle GetBBox() const;
220 
223 
226 
227  virtual void FrameCreated(Int_t id) { Emit("FrameCreated(Int_t)", id); } //*SIGNAL*
228  virtual void FrameClosed(Int_t id) { Emit("FrameClosed(Int_t)", id); } //*SIGNAL*
229  virtual void FrameMaximized(Int_t id) { Emit("FrameMaximized(Int_t)", id); } //*SIGNAL*
230  virtual void FrameMinimized(Int_t id) { Emit("FrameMinimized(Int_t)", id); } //*SIGNAL*
231  virtual void FrameRestored(Int_t id) { Emit("FrameRestored(Int_t)", id); } //*SIGNAL*
232  virtual void FramesArranged(Int_t mode) { Emit("FramesArranged(Int_t)", mode); } //*SIGNAL*
233 
234  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
235 
236  ClassDef(TGMdiMainFrame, 0) // MDI main frame
237 };
238 
239 
240 //----------------------------------------------------------------------
241 
242 class TGMdiContainer : public TGFrame {
243 
244 protected:
245  const TGMdiMainFrame *fMain; // pointer to MDI main frame
246 
247 public:
249  UInt_t options = 0,
251 
252  virtual Bool_t HandleConfigureNotify(Event_t *event);
253  virtual TGDimension GetDefaultSize() const;
254 
255  ClassDef(TGMdiContainer, 0) // MDI container
256 };
257 
258 #endif
kMdiMinimize
@ kMdiMinimize
Definition: TGMdiMainFrame.h:62
TGMdiMainFrame::fWinListMenu
TGPopupMenu * fWinListMenu
Definition: TGMdiMainFrame.h:159
TGMdiMainFrame::fMenuBar
TGMdiMenuBar * fMenuBar
Definition: TGMdiMainFrame.h:157
TGWindow
Definition: TGWindow.h:31
TGMdiMainFrame::FrameClosed
virtual void FrameClosed(Int_t id)
Definition: TGMdiMainFrame.h:228
TGMdiMainFrame::GetNumberOfFrames
Long_t GetNumberOfFrames() const
Definition: TGMdiMainFrame.h:213
TGMdiMainFrame::ArrangeFrames
virtual void ArrangeFrames(Int_t mode)
Automatic repositionning and resizing of every MDI child window.
Definition: TGMdiMainFrame.cxx:590
TGMdiFrameList
Definition: TGMdiMainFrame.h:93
TGMdiMainFrame::Close
virtual Int_t Close(TGMdiFrame *frame)
Close MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:958
f
#define f(i)
Definition: RSha256.hxx:104
kMdiMaximize
@ kMdiMaximize
Definition: TGMdiMainFrame.h:63
TGDimension
Definition: TGDimension.h:27
TGMdiMainFrame::fBoxGC
TGGC * fBoxGC
Definition: TGMdiMainFrame.h:154
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGMdiMainFrame::ContextHelp
virtual Int_t ContextHelp(TGMdiFrame *frame)
Calls Help() method of MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:1036
TGMdiFrameList::fCycleNext
TGMdiFrameList * fCycleNext
Definition: TGMdiMainFrame.h:101
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TGMdiMainFrame::IsMinimized
Bool_t IsMinimized(TGMdiFrame *f)
Check if MDI child window f is minimized;.
Definition: TGMdiMainFrame.cxx:1163
TGMdiMainFrame::kMinimizedWidth
@ kMinimizedWidth
Definition: TGMdiMainFrame.h:145
TGMdiMainFrame::Layout
virtual void Layout()
Recalculates the postion and the size of all MDI child windows.
Definition: TGMdiMainFrame.cxx:561
TGMdiGeometry::fIcon
TGRectangle fIcon
Definition: TGMdiMainFrame.h:128
TGMdiMainFrame::Restore
virtual void Restore(TGMdiFrame *frame)
Restore size of MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:839
TGMdiMainFrame::GetWindowGeometry
TGMdiGeometry GetWindowGeometry(TGMdiFrame *f) const
Get MDI geometry of MDI child window f.
Definition: TGMdiMainFrame.cxx:1058
TGMdiFrameList::fDecor
TGMdiDecorFrame * fDecor
Definition: TGMdiMainFrame.h:99
TGMdiFrameList::SetFrameId
void SetFrameId(UInt_t id)
Definition: TGMdiMainFrame.h:113
EMdiHints
EMdiHints
Definition: TGMdiMainFrame.h:57
TGMdiContainer::TGMdiContainer
TGMdiContainer(const TGMdiMainFrame *p, Int_t w, Int_t h, UInt_t options=0, ULong_t back=GetDefaultFrameBackground())
TGMdiContainer constructor.
Definition: TGMdiMainFrame.cxx:1173
TGMdiMainFrame::UpdateWinListMenu
void UpdateWinListMenu()
Update MDI menu entries with current list of MDI child windows.
Definition: TGMdiMainFrame.cxx:523
TGMdiFrameList::SetNext
void SetNext(TGMdiFrameList *next)
Definition: TGMdiMainFrame.h:116
TGMdiFrameList::GetFrameId
UInt_t GetFrameId() const
Definition: TGMdiMainFrame.h:106
TGMdiFrameList::fCyclePrev
TGMdiFrameList * fCyclePrev
Definition: TGMdiMainFrame.h:101
TGMdiMainFrame::FramesArranged
virtual void FramesArranged(Int_t mode)
Definition: TGMdiMainFrame.h:232
Int_t
int Int_t
Definition: RtypesCore.h:45
kMdiTileVertical
@ kMdiTileVertical
Definition: TGMdiMainFrame.h:73
TGMdiGeometry::fValueMask
Int_t fValueMask
Definition: TGMdiMainFrame.h:127
TGMdiMainFrame::TileVertical
virtual void TileVertical()
Definition: TGMdiMainFrame.h:194
kMdiOpaque
@ kMdiOpaque
Definition: TGMdiMainFrame.h:51
TGMdiContainer::HandleConfigureNotify
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle configure notify events for MDI container.
Definition: TGMdiMainFrame.cxx:1198
TGMdiMainFrame::TileHorizontal
virtual void TileHorizontal()
Definition: TGMdiMainFrame.h:193
TGMdiGeometry::fDecoration
TGRectangle fDecoration
Definition: TGMdiMainFrame.h:128
EMdiGeometryMask
EMdiGeometryMask
Definition: TGMdiMainFrame.h:78
TGMdiMainFrame::GetMinimizedBBox
TGRectangle GetMinimizedBBox() const
Return minimized box (rectangle) for current MDI child.
Definition: TGMdiMainFrame.cxx:502
TGMdiMainFrame::ConfigureWindow
void ConfigureWindow(TGMdiFrame *f, TGMdiGeometry &geom)
Set MDI geometry for MDI child window f.
Definition: TGMdiMainFrame.cxx:1107
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGMdiFrameList::GetNext
TGMdiFrameList * GetNext() const
Definition: TGMdiMainFrame.h:109
TGMdiMainFrame::FrameCreated
virtual void FrameCreated(Int_t id)
Definition: TGMdiMainFrame.h:227
TGMdiMainFrame::fNumberOfFrames
Long_t fNumberOfFrames
Definition: TGMdiMainFrame.h:156
TGMdiFrameList::GetCyclePrev
TGMdiFrameList * GetCyclePrev() const
Definition: TGMdiMainFrame.h:110
TGMdiMainFrame::fCurrentX
Int_t fCurrentX
Definition: TGMdiMainFrame.h:148
TGMdiContainer::fMain
const TGMdiMainFrame * fMain
Definition: TGMdiMainFrame.h:245
TGFrame
Definition: TGFrame.h:105
kMdiHelp
@ kMdiHelp
Definition: TGMdiMainFrame.h:64
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TGMdiMainFrame::IsMaximized
Bool_t IsMaximized(TGMdiFrame *f)
Check if MDI child window f is maximized;.
Definition: TGMdiMainFrame.cxx:1153
TGMdiGeometry::fClient
TGRectangle fClient
Definition: TGMdiMainFrame.h:128
bool
kMdiNonOpaque
@ kMdiNonOpaque
Definition: TGMdiMainFrame.h:52
id
XFontStruct * id
Definition: TGX11.cxx:109
TGMdiMainFrame::Minimize
virtual void Minimize(TGMdiFrame *frame)
Minimize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:885
TGMdiMainFrame::fBackNotCurrent
Pixel_t fBackNotCurrent
Definition: TGMdiMainFrame.h:152
TGMdiMainFrame::fArrangementMode
Int_t fArrangementMode
Definition: TGMdiMainFrame.h:149
TGMdiMainFrame::fCurrent
TGMdiFrameList * fCurrent
Definition: TGMdiMainFrame.h:161
TGMdiMainFrame::~TGMdiMainFrame
virtual ~TGMdiMainFrame()
MDI main frame destructor.
Definition: TGMdiMainFrame.cxx:119
TGRectangle
Definition: TGDimension.h:98
TGMdiFrameList::SetCycleNext
void SetCycleNext(TGMdiFrameList *next)
Definition: TGMdiMainFrame.h:118
TGMdiMainFrame::RemoveMdiFrame
Bool_t RemoveMdiFrame(TGMdiFrame *f)
Remove MDI child window.
Definition: TGMdiMainFrame.cxx:234
TGMdiMainFrame::GetCurrent
TGMdiFrame * GetCurrent() const
Return pointer on current (active) MDI child window.
Definition: TGMdiMainFrame.cxx:1047
kMdiClientGeometry
@ kMdiClientGeometry
Definition: TGMdiMainFrame.h:79
EMdiArrangementModes
EMdiArrangementModes
Definition: TGMdiMainFrame.h:71
TGMdiMainFrame::GetMenu
TGMdiMenuBar * GetMenu() const
Definition: TGMdiMainFrame.h:209
TGMdiMainFrame::Cascade
virtual void Cascade()
Definition: TGMdiMainFrame.h:192
TGMdiMainFrame::Maximize
virtual void Maximize(TGMdiFrame *frame)
Maximize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:789
TGMdiGeometry
Definition: TGMdiMainFrame.h:124
kMdiIconGeometry
@ kMdiIconGeometry
Definition: TGMdiMainFrame.h:81
h
#define h(i)
Definition: RSha256.hxx:106
TGGC
Definition: TGGC.h:31
TGMdiContainer
Definition: TGMdiMainFrame.h:242
TGMdiFrameList::fPrev
TGMdiFrameList * fPrev
Definition: TGMdiMainFrame.h:100
TGMdiFrame
Definition: TGMdiFrame.h:51
TGMdiMainFrame::fCurrentY
Int_t fCurrentY
Definition: TGMdiMainFrame.h:148
TGMdiMainFrame
Definition: TGMdiMainFrame.h:138
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TGMdiMainFrame::ArrangeMinimized
virtual void ArrangeMinimized()
This is an attempt to an "smart" minimized window re-arrangement.
Definition: TGMdiMainFrame.cxx:675
Long_t
long Long_t
Definition: RtypesCore.h:54
TGMdiFrameList::~TGMdiFrameList
virtual ~TGMdiFrameList()
Definition: TGMdiMainFrame.h:104
TGMdiFrameList::SetCyclePrev
void SetCyclePrev(TGMdiFrameList *prev)
Definition: TGMdiMainFrame.h:117
TGMdiMainFrame::UpdateMdiButtons
void UpdateMdiButtons()
Update the status of MDI buttons in the decor frame of all children.
Definition: TGMdiMainFrame.cxx:572
TGMdiMainFrame::GetDecorFrame
TGMdiDecorFrame * GetDecorFrame(UInt_t id) const
Return decor frame of MDI child window (by id).
Definition: TGMdiMainFrame.cxx:458
TGMdiContainer::GetDefaultSize
virtual TGDimension GetDefaultSize() const
Return dimension of MDI container.
Definition: TGMdiMainFrame.cxx:1184
BIT
#define BIT(n)
Definition: Rtypes.h:85
TGMdiMainFrame::GetMdiFrame
TGMdiFrame * GetMdiFrame(UInt_t id) const
Return frame of MDI child window (by id).
Definition: TGMdiMainFrame.cxx:469
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGMdiMainFrame::fFontNotCurrent
TGFont * fFontNotCurrent
Definition: TGMdiMainFrame.h:150
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TGMdiGeometry::~TGMdiGeometry
virtual ~TGMdiGeometry()
Definition: TGMdiMainFrame.h:130
TGMdiMainFrame::FrameMaximized
virtual void FrameMaximized(Int_t id)
Definition: TGMdiMainFrame.h:229
unsigned int
TGMdiMainFrame::FrameMinimized
virtual void FrameMinimized(Int_t id)
Definition: TGMdiMainFrame.h:230
TGMdiFrameList::GetPrev
TGMdiFrameList * GetPrev() const
Definition: TGMdiMainFrame.h:108
TGMdiMainFrame::CirculateDown
virtual void CirculateDown()
Send the highest window to the bottom.
Definition: TGMdiMainFrame.cxx:421
TGMdiFrameList::SetDecorFrame
void SetDecorFrame(TGMdiDecorFrame *decor)
Definition: TGMdiMainFrame.h:114
TGMdiMainFrame::SetCurrent
Bool_t SetCurrent(TGMdiFrameList *newcurrent)
Set current (active) MDI child window (by frame list).
Definition: TGMdiMainFrame.cxx:329
TGMdiMainFrame::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a MDI main frame as a C++ statement(s) on output stream out.
Definition: TGMdiMainFrame.cxx:1220
TGMdiMainFrame::HandleKey
virtual Bool_t HandleKey(Event_t *event)
Handle keyboards events into MDI main frame.
Definition: TGMdiMainFrame.cxx:164
kMdiClose
@ kMdiClose
Definition: TGMdiMainFrame.h:58
kMdiSize
@ kMdiSize
Definition: TGMdiMainFrame.h:61
TGMdiMainFrame::FreeMove
virtual void FreeMove(TGMdiFrame *frame)
Allow to move MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:973
TGMdiMainFrame::TGMdiMainFrame
TGMdiMainFrame(const TGWindow *p, TGMdiMenuBar *menu, Int_t w, Int_t h, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
Create a MDI main frame.
Definition: TGMdiMainFrame.cxx:62
TGMdiMainFrame::AddMdiFrame
void AddMdiFrame(TGMdiFrame *f)
Add new MDI child window.
Definition: TGMdiMainFrame.cxx:193
TGMdiMainFrame::fFontCurrent
TGFont * fFontCurrent
Definition: TGMdiMainFrame.h:150
TGMdiMainFrame::GetContainer
TGFrame * GetContainer() const
Definition: TGMdiMainFrame.h:204
TGMdiFrameList::GetDecorFrame
TGMdiDecorFrame * GetDecorFrame() const
Definition: TGMdiMainFrame.h:107
TGMdiMainFrame::FrameRestored
virtual void FrameRestored(Int_t id)
Definition: TGMdiMainFrame.h:231
TGMdiMainFrame::fContainer
TGFrame * fContainer
Definition: TGMdiMainFrame.h:158
kMdiRestore
@ kMdiRestore
Definition: TGMdiMainFrame.h:59
EMdiResizingModes
EMdiResizingModes
Definition: TGMdiMainFrame.h:50
kMdiDecorGeometry
@ kMdiDecorGeometry
Definition: TGMdiMainFrame.h:80
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGPopupMenu
Definition: TGMenu.h:123
Event_t
Definition: GuiTypes.h:173
TGMdiMainFrame::fForeNotCurrent
Pixel_t fForeNotCurrent
Definition: TGMdiMainFrame.h:152
TGMdiMainFrame::fResizeMode
Int_t fResizeMode
Definition: TGMdiMainFrame.h:148
TGCanvas.h
TGMdiFrameList::GetCycleNext
TGMdiFrameList * GetCycleNext() const
Definition: TGMdiMainFrame.h:111
TGMdiMainFrame::GetWinListMenu
TGPopupMenu * GetWinListMenu() const
Definition: TGMdiMainFrame.h:208
TGMdiFrameList::fNext
TGMdiFrameList * fNext
Definition: TGMdiMainFrame.h:100
TGMdiMainFrame::fChildren
TGMdiFrameList * fChildren
Definition: TGMdiMainFrame.h:160
TGMdiMainFrame::fBackCurrent
Pixel_t fBackCurrent
Definition: TGMdiMainFrame.h:151
TGMdiMainFrame::SetResizeMode
void SetResizeMode(Int_t mode=kMdiDefaultResizeMode)
Set MDI windows resize mode (opaque or transparent).
Definition: TGMdiMainFrame.cxx:151
TGMdiMainFrame::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages MDI main frame.
Definition: TGMdiMainFrame.cxx:742
TGMdiFrameList::SetPrev
void SetPrev(TGMdiFrameList *prev)
Definition: TGMdiMainFrame.h:115
TGMdiFrameList::fFrameId
UInt_t fFrameId
Definition: TGMdiMainFrame.h:98
kMdiMenu
@ kMdiMenu
Definition: TGMdiMainFrame.h:65
TGFont
Definition: TGFont.h:149
TGMdiMainFrame::CirculateUp
virtual void CirculateUp()
Bring the lowest window to the top.
Definition: TGMdiMainFrame.cxx:396
TGCanvas
Definition: TGCanvas.h:202
TGMenu.h
kMdiTileHorizontal
@ kMdiTileHorizontal
Definition: TGMdiMainFrame.h:72
TGMdiMainFrame::GetBBox
TGRectangle GetBBox() const
Return resizing box (rectangle) for current MDI child.
Definition: TGMdiMainFrame.cxx:479
kMdiDefaultResizeMode
@ kMdiDefaultResizeMode
Definition: TGMdiMainFrame.h:53
TGMdiMainFrame::fForeCurrent
Pixel_t fForeCurrent
Definition: TGMdiMainFrame.h:151
TGFont.h
TQObject::Emit
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition: TQObject.h:164
TGMdiMainFrame::GetWindowList
TGMdiFrameList * GetWindowList(Int_t current=kFALSE) const
Definition: TGMdiMainFrame.h:211
kMdiCascade
@ kMdiCascade
Definition: TGMdiMainFrame.h:74
kMdiMove
@ kMdiMove
Definition: TGMdiMainFrame.h:60
kMdiDefaultHints
@ kMdiDefaultHints
Definition: TGMdiMainFrame.h:66
TGMdiMainFrame::CloseAll
virtual void CloseAll()
Close all MDI child windows.
Definition: TGMdiMainFrame.cxx:1138
TGMdiMainFrame::FreeSize
virtual void FreeSize(TGMdiFrame *frame)
Allow to resize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:997
int
TGMdiDecorFrame
Definition: TGMdiDecorFrame.h:238
TGMdiMenuBar
Definition: TGMdiMenu.h:53