Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGMdiFrame.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_TGMdiFrame
34#define ROOT_TGMdiFrame
35
36#include "TGFrame.h"
37
38class TGPicture;
39class TGMdiMainFrame;
40class TGMdiDecorFrame;
41
43
44friend class TGMdiMainFrame;
45friend class TGMdiDecorFrame;
46
47protected:
48 enum { kDontCallClose = BIT(14) };
49
50 TGMdiMainFrame *fMain; ///< pointer to the MDI main frame
51 ULong_t fMdiHints; ///< MDI hints, also used to identify titlebar buttons
52
54
55public:
57 UInt_t options = 0,
59 ~TGMdiFrame() override;
60
61 void Move(Int_t x, Int_t y) override;
62 virtual Bool_t CloseWindow(); //*SIGNAL*
63 virtual Bool_t Help() { return kFALSE; }
64
65 virtual void SetMdiHints(ULong_t mdihints);
66 ULong_t GetMdiHints() const { return fMdiHints; }
67
68 void DontCallClose();
69 void SetWindowName(const char *name) override;
70 void SetWindowIcon(const TGPicture *pic);
71 const char *GetWindowName();
72 const TGPicture *GetWindowIcon();
73
74 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
75
77};
78
79#endif
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
int main()
Definition Prototype.cxx:12
#define h(i)
Definition RSha256.hxx:106
unsigned long ULong_t
Definition RtypesCore.h:55
constexpr Bool_t kFALSE
Definition RtypesCore.h:101
const char Option_t
Definition RtypesCore.h:66
#define BIT(n)
Definition Rtypes.h:85
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
char name[80]
Definition TGX11.cxx:110
The base class for composite widgets (menu bars, list boxes, etc.).
Definition TGFrame.h:287
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
This file contains all different MDI frame decoration classes.
This file contains the TGMdiFrame class.
Definition TGMdiFrame.h:42
ULong_t GetMdiHints() const
Definition TGMdiFrame.h:66
TGMdiMainFrame * fMain
pointer to the MDI main frame
Definition TGMdiFrame.h:50
const TGPicture * GetWindowIcon()
Return pointer to picture used as MDI window icon (on titlebar).
virtual Bool_t Help()
Definition TGMdiFrame.h:63
ULong_t fMdiHints
MDI hints, also used to identify titlebar buttons.
Definition TGMdiFrame.h:51
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a MDIframe as a C++ statement(s) on output stream out.
TString GetMdiHintsString() const
Returns a MDI option string - used in SavePrimitive().
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
void SetWindowName(const char *name) override
Set MDI window name (set titlebar title).
void Move(Int_t x, Int_t y) override
Move MDI window at position x, y.
virtual Bool_t CloseWindow()
Close MDI frame window.
void SetWindowIcon(const TGPicture *pic)
Set MDI window icon (titlebar icon).
const char * GetWindowName()
Return MDI window name.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
~TGMdiFrame() override
TGMdiFrame destructor.
This file contains the TGMdiMainFrame class.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
Basic string class.
Definition TString.h:139
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17