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 #include "TGCanvas.h"
38 #include "TGMenu.h"
39 #include "TGFont.h"
40 
41 
42 /// MDI resizing modes
47 };
48 
49 /// MDI hints, also used to identify titlebar buttons
50 enum EMdiHints {
51  kMdiClose = 4,
53  kMdiMove = 16,
54  kMdiSize = 32,
56  kMdiMaximize = 128,
57  kMdiHelp = 256,
58  kMdiMenu = 512,
61 };
62 
63 /// window arrangement modes
67  kMdiCascade = 3
68 };
69 
70 /// geometry value masks for ConfigureWindow() call
75 };
76 
77 
78 class TGGC;
79 class TGMdiMenuBar;
80 class TGMdiContainer;
81 class TGMdiDecorFrame;
82 class TGMdiFrame;
83 
84 //----------------------------------------------------------------------
85 
87 
88 friend class TGMdiMainFrame;
89 
90 protected:
91  UInt_t fFrameId; ///< TGMdiFrameList Id
92  TGMdiDecorFrame *fDecor; ///< MDI decor frame
93  TGMdiFrameList *fPrev, *fNext; ///< pointers on previous and next TGMdiFrameList
94  TGMdiFrameList *fCyclePrev, *fCycleNext; ///< pointers on previous and next TGMdiFrameList
95 
96 public:
97  virtual ~TGMdiFrameList() { }
98 
99  UInt_t GetFrameId() const { return fFrameId; }
100  TGMdiDecorFrame *GetDecorFrame() const { return fDecor; }
101  TGMdiFrameList *GetPrev() const { return fPrev; }
102  TGMdiFrameList *GetNext() const { return fNext; }
105 
106  void SetFrameId(UInt_t id) { fFrameId = id; }
107  void SetDecorFrame(TGMdiDecorFrame *decor) { fDecor = decor; }
108  void SetPrev(TGMdiFrameList *prev) { fPrev = prev; }
109  void SetNext(TGMdiFrameList *next) { fNext = next; }
110  void SetCyclePrev(TGMdiFrameList *prev) { fCyclePrev = prev; }
111  void SetCycleNext(TGMdiFrameList *next) { fCycleNext = next; }
112 
113  ClassDef(TGMdiFrameList, 0) // MDI Frame list
114 };
115 
116 
118 
119 public:
120  Int_t fValueMask; ///< MDI hints mask
121  TGRectangle fClient, fDecoration, fIcon; ///< client, decoration and icon rectangles
122 
123  virtual ~TGMdiGeometry() { }
124 
125  ClassDef(TGMdiGeometry, 0) // MDI Geometry
126 };
127 
128 
129 //----------------------------------------------------------------------
130 
131 class TGMdiMainFrame : public TGCanvas {
132 
133 friend class TGMdiFrame;
134 
135 protected:
136  enum {
137  // the width of minimized windows, in "height" units
138  kMinimizedWidth = 5
139  };
140 
141  Int_t fCurrentX, fCurrentY, fResizeMode; ///< current MDI child XY position and resize mode
142  Int_t fArrangementMode; ///< MDI children arrangement mode
143  TGFont *fFontCurrent, *fFontNotCurrent; ///< fonts for active and inactive MDI children
144  Pixel_t fBackCurrent, fForeCurrent; ///< back and fore colors for active MDI children
145  Pixel_t fBackNotCurrent, fForeNotCurrent; ///< back and fore colors for inactive MDI children
146 
147  TGGC *fBoxGC; ///< GC used to draw resizing box (rectangle)
148 
149  Long_t fNumberOfFrames; ///< number of MDI child windows
150  TGMdiMenuBar *fMenuBar; ///< menu bar
151  TGFrame *fContainer; ///< MDI container
152  TGPopupMenu *fWinListMenu; ///< popup menu with list of MDI child windows
153  TGMdiFrameList *fChildren; ///< list of MDI child windows
154  TGMdiFrameList *fCurrent; ///< current list of MDI child windows
155 
156  void AddMdiFrame(TGMdiFrame *f);
158 
159  Bool_t SetCurrent(TGMdiFrameList *newcurrent);
162 
163  void UpdateWinListMenu();
164 
165 public:
166  TGMdiMainFrame(const TGWindow *p, TGMdiMenuBar *menu, Int_t w, Int_t h,
167  UInt_t options = 0,
169  virtual ~TGMdiMainFrame();
170 
171  virtual Bool_t HandleKey(Event_t *event);
172  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
173 
174  virtual void Layout();
175 
176  virtual void FreeMove(TGMdiFrame *frame);
177  virtual void FreeSize(TGMdiFrame *frame);
178  virtual void Restore(TGMdiFrame *frame);
179  virtual void Maximize(TGMdiFrame *frame);
180  virtual void Minimize(TGMdiFrame *frame);
181  virtual Int_t Close(TGMdiFrame *frame);
182  virtual Int_t ContextHelp(TGMdiFrame *frame);
183  virtual void CloseAll();
184 
185  virtual void Cascade() { ArrangeFrames(kMdiCascade); }
188 
189  virtual void ArrangeFrames(Int_t mode);
190  virtual void ArrangeMinimized();
191 
192  virtual void CirculateUp();
193  virtual void CirculateDown();
194 
195  TGMdiFrame *GetCurrent() const;
196  TGMdiFrame *GetMdiFrame(UInt_t id) const;
197  TGFrame *GetContainer() const { return fContainer; }
198  Bool_t SetCurrent(UInt_t newcurrent);
199  Bool_t SetCurrent(TGMdiFrame *f); //*SIGNAL*
200 
202  TGMdiMenuBar *GetMenu() const { return fMenuBar; }
203 
205  { return current ? fCurrent : fChildren; }
207 
209  void UpdateMdiButtons();
210 
211  TGRectangle GetBBox() const;
213 
216 
219 
220  virtual void FrameCreated(Int_t id) { Emit("FrameCreated(Int_t)", id); } //*SIGNAL*
221  virtual void FrameClosed(Int_t id) { Emit("FrameClosed(Int_t)", id); } //*SIGNAL*
222  virtual void FrameMaximized(Int_t id) { Emit("FrameMaximized(Int_t)", id); } //*SIGNAL*
223  virtual void FrameMinimized(Int_t id) { Emit("FrameMinimized(Int_t)", id); } //*SIGNAL*
224  virtual void FrameRestored(Int_t id) { Emit("FrameRestored(Int_t)", id); } //*SIGNAL*
225  virtual void FramesArranged(Int_t mode) { Emit("FramesArranged(Int_t)", mode); } //*SIGNAL*
226 
227  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
228 
229  ClassDef(TGMdiMainFrame, 0) // MDI main frame
230 };
231 
232 
233 //----------------------------------------------------------------------
234 
235 class TGMdiContainer : public TGFrame {
236 
237 protected:
238  const TGMdiMainFrame *fMain; // pointer to MDI main frame
239 
240 public:
242  UInt_t options = 0,
244 
245  virtual Bool_t HandleConfigureNotify(Event_t *event);
246  virtual TGDimension GetDefaultSize() const;
247 
248  ClassDef(TGMdiContainer, 0) // MDI container
249 };
250 
251 #endif
kMdiMinimize
@ kMdiMinimize
Definition: TGMdiMainFrame.h:55
TGMdiMainFrame::fWinListMenu
TGPopupMenu * fWinListMenu
popup menu with list of MDI child windows
Definition: TGMdiMainFrame.h:152
TGMdiMainFrame::fMenuBar
TGMdiMenuBar * fMenuBar
menu bar
Definition: TGMdiMainFrame.h:150
TGWindow
ROOT GUI Window base class.
Definition: TGWindow.h:23
TGMdiMainFrame::FrameClosed
virtual void FrameClosed(Int_t id)
Definition: TGMdiMainFrame.h:221
TGMdiMainFrame::GetNumberOfFrames
Long_t GetNumberOfFrames() const
Definition: TGMdiMainFrame.h:206
TGMdiMainFrame::ArrangeFrames
virtual void ArrangeFrames(Int_t mode)
Automatic repositioning and resizing of every MDI child window.
Definition: TGMdiMainFrame.cxx:591
TGMdiFrameList
Definition: TGMdiMainFrame.h:86
TGMdiMainFrame::Close
virtual Int_t Close(TGMdiFrame *frame)
Close MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:959
f
#define f(i)
Definition: RSha256.hxx:104
kMdiMaximize
@ kMdiMaximize
Definition: TGMdiMainFrame.h:56
TGDimension
Definition: TGDimension.h:18
TGMdiMainFrame::fBoxGC
TGGC * fBoxGC
GC used to draw resizing box (rectangle)
Definition: TGMdiMainFrame.h:147
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:1037
TGMdiFrameList::fCycleNext
TGMdiFrameList * fCycleNext
pointers on previous and next TGMdiFrameList
Definition: TGMdiMainFrame.h:94
Pixel_t
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
TGMdiMainFrame::IsMinimized
Bool_t IsMinimized(TGMdiFrame *f)
Check if MDI child window f is minimized;.
Definition: TGMdiMainFrame.cxx:1164
TGMdiMainFrame::Layout
virtual void Layout()
Recalculates the postion and the size of all MDI child windows.
Definition: TGMdiMainFrame.cxx:562
TGMdiGeometry::fIcon
TGRectangle fIcon
client, decoration and icon rectangles
Definition: TGMdiMainFrame.h:121
TGMdiMainFrame::Restore
virtual void Restore(TGMdiFrame *frame)
Restore size of MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:840
TGMdiMainFrame::GetWindowGeometry
TGMdiGeometry GetWindowGeometry(TGMdiFrame *f) const
Get MDI geometry of MDI child window f.
Definition: TGMdiMainFrame.cxx:1059
TGMdiFrameList::fDecor
TGMdiDecorFrame * fDecor
MDI decor frame.
Definition: TGMdiMainFrame.h:92
TGMdiMainFrame::kMinimizedWidth
@ kMinimizedWidth
Definition: TGMdiMainFrame.h:138
TGMdiFrameList::SetFrameId
void SetFrameId(UInt_t id)
Definition: TGMdiMainFrame.h:106
EMdiHints
EMdiHints
MDI hints, also used to identify titlebar buttons.
Definition: TGMdiMainFrame.h:50
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:1174
TGMdiMainFrame::UpdateWinListMenu
void UpdateWinListMenu()
Update MDI menu entries with current list of MDI child windows.
Definition: TGMdiMainFrame.cxx:524
TGMdiFrameList::SetNext
void SetNext(TGMdiFrameList *next)
Definition: TGMdiMainFrame.h:109
TGMdiFrameList::GetFrameId
UInt_t GetFrameId() const
Definition: TGMdiMainFrame.h:99
TGMdiFrameList::fCyclePrev
TGMdiFrameList * fCyclePrev
Definition: TGMdiMainFrame.h:94
TGMdiMainFrame::FramesArranged
virtual void FramesArranged(Int_t mode)
Definition: TGMdiMainFrame.h:225
Int_t
int Int_t
Definition: RtypesCore.h:45
kMdiTileVertical
@ kMdiTileVertical
Definition: TGMdiMainFrame.h:66
TGMdiGeometry::fValueMask
Int_t fValueMask
MDI hints mask.
Definition: TGMdiMainFrame.h:120
TGMdiMainFrame::TileVertical
virtual void TileVertical()
Definition: TGMdiMainFrame.h:187
kMdiOpaque
@ kMdiOpaque
Definition: TGMdiMainFrame.h:44
TGMdiContainer::HandleConfigureNotify
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle configure notify events for MDI container.
Definition: TGMdiMainFrame.cxx:1199
TGMdiMainFrame::TileHorizontal
virtual void TileHorizontal()
Definition: TGMdiMainFrame.h:186
TGMdiGeometry::fDecoration
TGRectangle fDecoration
Definition: TGMdiMainFrame.h:121
EMdiGeometryMask
EMdiGeometryMask
geometry value masks for ConfigureWindow() call
Definition: TGMdiMainFrame.h:71
TGMdiMainFrame::GetMinimizedBBox
TGRectangle GetMinimizedBBox() const
Return minimized box (rectangle) for current MDI child.
Definition: TGMdiMainFrame.cxx:503
TGMdiMainFrame::ConfigureWindow
void ConfigureWindow(TGMdiFrame *f, TGMdiGeometry &geom)
Set MDI geometry for MDI child window f.
Definition: TGMdiMainFrame.cxx:1108
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:683
TGMdiFrameList::GetNext
TGMdiFrameList * GetNext() const
Definition: TGMdiMainFrame.h:102
TGMdiMainFrame::FrameCreated
virtual void FrameCreated(Int_t id)
Definition: TGMdiMainFrame.h:220
TGMdiMainFrame::fNumberOfFrames
Long_t fNumberOfFrames
number of MDI child windows
Definition: TGMdiMainFrame.h:149
TGMdiFrameList::GetCyclePrev
TGMdiFrameList * GetCyclePrev() const
Definition: TGMdiMainFrame.h:103
TGMdiMainFrame::fCurrentX
Int_t fCurrentX
Definition: TGMdiMainFrame.h:141
TGMdiContainer::fMain
const TGMdiMainFrame * fMain
Definition: TGMdiMainFrame.h:238
TGFrame
Definition: TGFrame.h:80
kMdiHelp
@ kMdiHelp
Definition: TGMdiMainFrame.h:57
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:1154
TGMdiGeometry::fClient
TGRectangle fClient
Definition: TGMdiMainFrame.h:121
bool
kMdiNonOpaque
@ kMdiNonOpaque
Definition: TGMdiMainFrame.h:45
id
XFontStruct * id
Definition: TGX11.cxx:109
TGMdiMainFrame::Minimize
virtual void Minimize(TGMdiFrame *frame)
Minimize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:886
TGMdiMainFrame::fBackNotCurrent
Pixel_t fBackNotCurrent
Definition: TGMdiMainFrame.h:145
TGMdiMainFrame::fArrangementMode
Int_t fArrangementMode
MDI children arrangement mode.
Definition: TGMdiMainFrame.h:142
TGMdiMainFrame::fCurrent
TGMdiFrameList * fCurrent
current list of MDI child windows
Definition: TGMdiMainFrame.h:154
TGMdiMainFrame::~TGMdiMainFrame
virtual ~TGMdiMainFrame()
MDI main frame destructor.
Definition: TGMdiMainFrame.cxx:120
TGRectangle
Definition: TGDimension.h:89
TGMdiFrameList::SetCycleNext
void SetCycleNext(TGMdiFrameList *next)
Definition: TGMdiMainFrame.h:111
TGMdiMainFrame::RemoveMdiFrame
Bool_t RemoveMdiFrame(TGMdiFrame *f)
Remove MDI child window.
Definition: TGMdiMainFrame.cxx:235
TGMdiMainFrame::GetCurrent
TGMdiFrame * GetCurrent() const
Return pointer on current (active) MDI child window.
Definition: TGMdiMainFrame.cxx:1048
kMdiClientGeometry
@ kMdiClientGeometry
Definition: TGMdiMainFrame.h:72
EMdiArrangementModes
EMdiArrangementModes
window arrangement modes
Definition: TGMdiMainFrame.h:64
TGMdiMainFrame::GetMenu
TGMdiMenuBar * GetMenu() const
Definition: TGMdiMainFrame.h:202
TGMdiMainFrame::Cascade
virtual void Cascade()
Definition: TGMdiMainFrame.h:185
TGMdiMainFrame::Maximize
virtual void Maximize(TGMdiFrame *frame)
Maximize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:790
TGMdiGeometry
Definition: TGMdiMainFrame.h:117
kMdiIconGeometry
@ kMdiIconGeometry
Definition: TGMdiMainFrame.h:74
h
#define h(i)
Definition: RSha256.hxx:106
TGGC
Encapsulate a graphics context used in the low level graphics.
Definition: TGGC.h:22
TGMdiContainer
Definition: TGMdiMainFrame.h:235
TGMdiFrameList::fPrev
TGMdiFrameList * fPrev
Definition: TGMdiMainFrame.h:93
TGMdiFrame
This file contains the TGMdiFrame class.
Definition: TGMdiFrame.h:44
TGMdiMainFrame::fCurrentY
Int_t fCurrentY
Definition: TGMdiMainFrame.h:141
TGMdiMainFrame
This file contains the TGMdiMainFrame class.
Definition: TGMdiMainFrame.h:131
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:101
TGMdiMainFrame::ArrangeMinimized
virtual void ArrangeMinimized()
This is an attempt to an "smart" minimized window re-arrangement.
Definition: TGMdiMainFrame.cxx:676
Long_t
long Long_t
Definition: RtypesCore.h:54
TGMdiFrameList::~TGMdiFrameList
virtual ~TGMdiFrameList()
Definition: TGMdiMainFrame.h:97
TGMdiFrameList::SetCyclePrev
void SetCyclePrev(TGMdiFrameList *prev)
Definition: TGMdiMainFrame.h:110
TGMdiMainFrame::UpdateMdiButtons
void UpdateMdiButtons()
Update the status of MDI buttons in the decor frame of all children.
Definition: TGMdiMainFrame.cxx:573
TGMdiMainFrame::GetDecorFrame
TGMdiDecorFrame * GetDecorFrame(UInt_t id) const
Return decor frame of MDI child window (by id).
Definition: TGMdiMainFrame.cxx:459
TGMdiContainer::GetDefaultSize
virtual TGDimension GetDefaultSize() const
Return dimension of MDI container.
Definition: TGMdiMainFrame.cxx:1185
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:470
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TGMdiMainFrame::fFontNotCurrent
TGFont * fFontNotCurrent
fonts for active and inactive MDI children
Definition: TGMdiMainFrame.h:143
ULong_t
unsigned long ULong_t
Definition: RtypesCore.h:55
TGMdiGeometry::~TGMdiGeometry
virtual ~TGMdiGeometry()
Definition: TGMdiMainFrame.h:123
TGMdiMainFrame::FrameMaximized
virtual void FrameMaximized(Int_t id)
Definition: TGMdiMainFrame.h:222
unsigned int
TGMdiMainFrame::FrameMinimized
virtual void FrameMinimized(Int_t id)
Definition: TGMdiMainFrame.h:223
TGMdiFrameList::GetPrev
TGMdiFrameList * GetPrev() const
Definition: TGMdiMainFrame.h:101
TGMdiMainFrame::CirculateDown
virtual void CirculateDown()
Send the highest window to the bottom.
Definition: TGMdiMainFrame.cxx:422
TGMdiFrameList::SetDecorFrame
void SetDecorFrame(TGMdiDecorFrame *decor)
Definition: TGMdiMainFrame.h:107
TGMdiMainFrame::SetCurrent
Bool_t SetCurrent(TGMdiFrameList *newcurrent)
Set current (active) MDI child window (by frame list).
Definition: TGMdiMainFrame.cxx:330
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:1221
TGMdiMainFrame::HandleKey
virtual Bool_t HandleKey(Event_t *event)
Handle keyboards events into MDI main frame.
Definition: TGMdiMainFrame.cxx:165
kMdiClose
@ kMdiClose
Definition: TGMdiMainFrame.h:51
kMdiSize
@ kMdiSize
Definition: TGMdiMainFrame.h:54
TGMdiMainFrame::FreeMove
virtual void FreeMove(TGMdiFrame *frame)
Allow to move MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:974
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:63
TGMdiMainFrame::AddMdiFrame
void AddMdiFrame(TGMdiFrame *f)
Add new MDI child window.
Definition: TGMdiMainFrame.cxx:194
TGMdiMainFrame::fFontCurrent
TGFont * fFontCurrent
Definition: TGMdiMainFrame.h:143
TGMdiMainFrame::GetContainer
TGFrame * GetContainer() const
Definition: TGMdiMainFrame.h:197
TGMdiFrameList::GetDecorFrame
TGMdiDecorFrame * GetDecorFrame() const
Definition: TGMdiMainFrame.h:100
TGMdiMainFrame::FrameRestored
virtual void FrameRestored(Int_t id)
Definition: TGMdiMainFrame.h:224
TGMdiMainFrame::fContainer
TGFrame * fContainer
MDI container.
Definition: TGMdiMainFrame.h:151
kMdiRestore
@ kMdiRestore
Definition: TGMdiMainFrame.h:52
EMdiResizingModes
EMdiResizingModes
MDI resizing modes.
Definition: TGMdiMainFrame.h:43
kMdiDecorGeometry
@ kMdiDecorGeometry
Definition: TGMdiMainFrame.h:73
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGPopupMenu
This class creates a popup menu object.
Definition: TGMenu.h:110
Event_t
Event structure.
Definition: GuiTypes.h:174
TGMdiMainFrame::fForeNotCurrent
Pixel_t fForeNotCurrent
back and fore colors for inactive MDI children
Definition: TGMdiMainFrame.h:145
TGMdiMainFrame::fResizeMode
Int_t fResizeMode
current MDI child XY position and resize mode
Definition: TGMdiMainFrame.h:141
TGCanvas.h
TGMdiFrameList::GetCycleNext
TGMdiFrameList * GetCycleNext() const
Definition: TGMdiMainFrame.h:104
TGMdiMainFrame::GetWinListMenu
TGPopupMenu * GetWinListMenu() const
Definition: TGMdiMainFrame.h:201
TGMdiFrameList::fNext
TGMdiFrameList * fNext
pointers on previous and next TGMdiFrameList
Definition: TGMdiMainFrame.h:93
TGMdiMainFrame::fChildren
TGMdiFrameList * fChildren
list of MDI child windows
Definition: TGMdiMainFrame.h:153
TGMdiMainFrame::fBackCurrent
Pixel_t fBackCurrent
Definition: TGMdiMainFrame.h:144
TGMdiMainFrame::SetResizeMode
void SetResizeMode(Int_t mode=kMdiDefaultResizeMode)
Set MDI windows resize mode (opaque or transparent).
Definition: TGMdiMainFrame.cxx:152
TGMdiMainFrame::ProcessMessage
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages MDI main frame.
Definition: TGMdiMainFrame.cxx:743
TGMdiFrameList::SetPrev
void SetPrev(TGMdiFrameList *prev)
Definition: TGMdiMainFrame.h:108
TGMdiFrameList::fFrameId
UInt_t fFrameId
TGMdiFrameList Id.
Definition: TGMdiMainFrame.h:91
kMdiMenu
@ kMdiMenu
Definition: TGMdiMainFrame.h:58
TGFont
Encapsulate fonts used in the GUI system.
Definition: TGFont.h:140
TGMdiMainFrame::CirculateUp
virtual void CirculateUp()
Bring the lowest window to the top.
Definition: TGMdiMainFrame.cxx:397
TGCanvas
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
Definition: TGCanvas.h:192
TGMenu.h
kMdiTileHorizontal
@ kMdiTileHorizontal
Definition: TGMdiMainFrame.h:65
TGMdiMainFrame::GetBBox
TGRectangle GetBBox() const
Return resizing box (rectangle) for current MDI child.
Definition: TGMdiMainFrame.cxx:480
kMdiDefaultResizeMode
@ kMdiDefaultResizeMode
Definition: TGMdiMainFrame.h:46
TGMdiMainFrame::fForeCurrent
Pixel_t fForeCurrent
back and fore colors for active MDI children
Definition: TGMdiMainFrame.h:144
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:204
kMdiCascade
@ kMdiCascade
Definition: TGMdiMainFrame.h:67
kMdiMove
@ kMdiMove
Definition: TGMdiMainFrame.h:53
kMdiDefaultHints
@ kMdiDefaultHints
Definition: TGMdiMainFrame.h:59
TGMdiMainFrame::CloseAll
virtual void CloseAll()
Close all MDI child windows.
Definition: TGMdiMainFrame.cxx:1139
TGMdiMainFrame::FreeSize
virtual void FreeSize(TGMdiFrame *frame)
Allow to resize MDI child window mdiframe.
Definition: TGMdiMainFrame.cxx:998
int
TGMdiDecorFrame
This file contains all different MDI frame decoration classes.
Definition: TGMdiDecorFrame.h:229
TGMdiMenuBar
Definition: TGMdiMenu.h:46