Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGMdiMenu.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_TGMdiMenu
34#define ROOT_TGMdiMenu
35
36
37#include "TGMenu.h"
38#include "TGFrame.h"
39
40
41class TGMdiMainFrame;
42class TGMdiTitleIcon;
43class TGMdiButtons;
44
45
47
48friend class TGMdiMainFrame;
49
50protected:
51 TGCompositeFrame *fLeft, *fRight; ///< left and right parts of MDI menu bar
52 TGMenuBar *fBar; ///< standard menu bar
53 TGLayoutHints *fLHint, *fLeftHint; ///< left layout hints
54 TGLayoutHints *fRightHint, *fBarHint; ///< right layout hints
55
56 void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
57 void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
58 void ShowFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
59 void HideFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
60
61public:
62 TGMdiMenuBar(const TGWindow *p, Int_t w = 1, Int_t h = 20);
63 virtual ~TGMdiMenuBar();
64
66 TGMenuBar *GetMenuBar() const { return fBar;}
67 virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
68
69 ClassDef(TGMdiMenuBar, 0) // MDI menu bar
70};
71
72#endif
#define h(i)
Definition RSha256.hxx:106
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
TGHotString is a string with a "hot" character underlined.
Definition TGString.h:42
This class describes layout hints used by the layout classes.
Definition TGLayout.h:50
This file contains the TGMdiMainFrame class.
void HideFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
Used to hide specific frames from menu bar.
TGMenuBar * fBar
standard menu bar
Definition TGMdiMenu.h:52
TGCompositeFrame * fLeft
Definition TGMdiMenu.h:51
virtual ~TGMdiMenuBar()
TGMdiMenuBar destructor.
Definition TGMdiMenu.cxx:74
void ShowFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
Definition TGMdiMenu.cxx:96
TGLayoutHints * fLHint
Definition TGMdiMenu.h:53
TGLayoutHints * fRightHint
Definition TGMdiMenu.h:54
TGLayoutHints * fBarHint
right layout hints
Definition TGMdiMenu.h:54
void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l)
Add popup menu to the MDI menu bar with layout hints l.
Definition TGMdiMenu.cxx:87
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a MDI menu as a C++ statement(s) on output stream out.
TGLayoutHints * fLeftHint
left layout hints
Definition TGMdiMenu.h:53
TGMenuBar * GetMenuBar() const
Definition TGMdiMenu.h:66
TGCompositeFrame * fRight
left and right parts of MDI menu bar
Definition TGMdiMenu.h:51
void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Restore()
The TGMenu.h header contains all different menu classes.
Definition TGMenu.h:282
This class creates a popup menu object.
Definition TGMenu.h:110
ROOT GUI Window base class.
Definition TGWindow.h:23
auto * l
Definition textangle.C:4