ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
gui
gui
inc
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
// //
38
// TGMdiMenu. //
39
// //
40
// This file contains the TGMdiMenuBar class. //
41
// //
42
//////////////////////////////////////////////////////////////////////////
43
44
#ifndef ROOT_TGMenu
45
#include "
TGMenu.h
"
46
#endif
47
#ifndef ROOT_TGFrame
48
#include "
TGFrame.h
"
49
#endif
50
51
52
class
TGMdiMainFrame
;
53
class
TGMdiTitleIcon
;
54
class
TGMdiButtons
;
55
56
57
class
TGMdiMenuBar
:
public
TGCompositeFrame
{
58
59
friend
class
TGMdiMainFrame
;
60
61
protected
:
62
TGCompositeFrame
*
fLeft
, *
fRight
;
// left and right parts of MDI menu bar
63
TGMenuBar
*
fBar
;
// standard menu bar
64
TGLayoutHints
*
fLHint
, *
fLeftHint
;
// left layout hints
65
TGLayoutHints
*
fRightHint
, *
fBarHint
;
// right layout hints
66
67
void
AddFrames
(
TGMdiTitleIcon
*icon,
TGMdiButtons
*buttons);
68
void
RemoveFrames
(
TGMdiTitleIcon
*icon,
TGMdiButtons
*buttons);
69
void
ShowFrames
(
TGMdiTitleIcon
*icon,
TGMdiButtons
*buttons);
70
void
HideFrames
(
TGMdiTitleIcon
*icon,
TGMdiButtons
*buttons);
71
72
public
:
73
TGMdiMenuBar
(
const
TGWindow
*p,
Int_t
w
= 1,
Int_t
h
= 20);
74
virtual
~TGMdiMenuBar
();
75
76
void
AddPopup
(
TGHotString
*s,
TGPopupMenu
*menu,
TGLayoutHints
*
l
);
77
TGMenuBar
*
GetMenuBar
()
const
{
return
fBar
;}
78
virtual
void
SavePrimitive
(std::ostream &
out
,
Option_t
*option =
""
);
79
80
ClassDef
(
TGMdiMenuBar
, 0)
// MDI menu bar
81
};
82
83
#endif
TGMdiMainFrame
Definition:
TGMdiMainFrame.h:144
TGHotString
Definition:
TGString.h:56
TGMdiMenuBar::HideFrames
void HideFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
Used to hide specific frames from menu bar.
Definition:
TGMdiMenu.cxx:154
TGMdiMenuBar::fRightHint
TGLayoutHints * fRightHint
Definition:
TGMdiMenu.h:65
TGMdiMenuBar::fLeft
TGCompositeFrame * fLeft
Definition:
TGMdiMenu.h:62
Option_t
const char Option_t
Definition:
RtypesCore.h:62
h
TH1 * h
Definition:
legend2.C:5
TGMdiMenuBar::AddFrames
void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
Definition:
TGMdiMenu.cxx:94
TGMdiTitleIcon
Definition:
TGMdiDecorFrame.h:175
TGMdiMenuBar
Definition:
TGMdiMenu.h:57
Int_t
int Int_t
Definition:
RtypesCore.h:41
TGMdiMenuBar::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a MDI menu as a C++ statement(s) on output stream out.
Definition:
TGMdiMenu.cxx:173
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TGMdiButtons
Definition:
TGMdiDecorFrame.h:154
TGFrame.h
TGMdiMenuBar::~TGMdiMenuBar
virtual ~TGMdiMenuBar()
TGMdiMenuBar destructor.
Definition:
TGMdiMenu.cxx:72
out
char * out
Definition:
TBase64.cxx:29
TGMdiMenuBar::AddPopup
void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l)
Add popup menu to the MDI menu bar with layout hints l.
Definition:
TGMdiMenu.cxx:85
TGWindow
Definition:
TGWindow.h:38
TGMdiMenuBar::fRight
TGCompositeFrame * fRight
Definition:
TGMdiMenu.h:62
qtexample.w
tuple w
Definition:
qtexample.py:51
l
TLine * l
Definition:
textangle.C:4
TGMdiMenuBar::fBar
TGMenuBar * fBar
Definition:
TGMdiMenu.h:63
TGCompositeFrame
Definition:
TGFrame.h:362
TGMdiMenuBar::ShowFrames
void ShowFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Maximize().
Definition:
TGMdiMenu.cxx:134
TGMenu.h
TGMdiMenuBar::TGMdiMenuBar
TGMdiMenuBar(const TGWindow *p, Int_t w=1, Int_t h=20)
TGMenuBar
Definition:
TGMenu.h:312
TGMdiMenuBar::RemoveFrames
void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons)
This is called from TGMdiMainFrame on Restore()
Definition:
TGMdiMenu.cxx:116
TGMdiMenuBar::fLeftHint
TGLayoutHints * fLeftHint
Definition:
TGMdiMenu.h:64
TGMdiMenuBar::fBarHint
TGLayoutHints * fBarHint
Definition:
TGMdiMenu.h:65
TGLayoutHints
Definition:
TGLayout.h:63
TGMdiMenuBar::fLHint
TGLayoutHints * fLHint
Definition:
TGMdiMenu.h:64
TGMdiMenuBar::GetMenuBar
TGMenuBar * GetMenuBar() const
Definition:
TGMdiMenu.h:77
TGPopupMenu
Definition:
TGMenu.h:131