#include "TGMdiMainFrame.h"

TGMdiMainFrame


class description - source file - inheritance tree (.pdf)

class TGMdiMainFrame : public TGCanvas

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCanvas
<-
TGMdiMainFrame

    protected:
void AddMdiFrame(TGMdiFrame* f) TGMdiDecorFrame* GetDecorFrame(UInt_t id) const TGMdiDecorFrame* GetDecorFrame(TGMdiFrame* frame) const Bool_t RemoveMdiFrame(TGMdiFrame* f) Bool_t SetCurrent(TGMdiFrameList* newcurrent) void UpdateWinListMenu() public:
TGMdiMainFrame(const TGWindow* p, TGMdiMenuBar* menu, Int_t w, Int_t h, UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground()) TGMdiMainFrame(const TGMdiMainFrame&) virtual ~TGMdiMainFrame() virtual void ArrangeFrames(Int_t mode) virtual void ArrangeMinimized() virtual void Cascade() virtual void CirculateDown() virtual void CirculateUp() static TClass* Class() virtual Int_t Close(TGMdiFrame* frame) virtual void CloseAll() void ConfigureWindow(TGMdiFrame* f, TGMdiGeometry& geom) virtual Int_t ContextHelp(TGMdiFrame* frame) virtual void FrameClosed(Int_t id) virtual void FrameCreated(Int_t id) virtual void FrameMaximized(Int_t id) virtual void FrameMinimized(Int_t id) virtual void FrameRestored(Int_t id) virtual void FramesArranged(Int_t mode) virtual void FreeMove(TGMdiFrame* frame) virtual void FreeSize(TGMdiFrame* frame) TGRectangle GetBBox() const TGFrame* GetContainer() const TGMdiFrame* GetCurrent() const TGMdiFrame* GetMdiFrame(UInt_t id) const TGMdiMenuBar* GetMenu() const TGRectangle GetMinimizedBBox() const Long_t GetNumberOfFrames() const TGMdiGeometry GetWindowGeometry(TGMdiFrame* f) const TGMdiFrameList* GetWindowList(Int_t current = kFALSE) const TGPopupMenu* GetWinListMenu() const virtual Bool_t HandleKey(Event_t* event) virtual TClass* IsA() const Bool_t IsMaximized(TGMdiFrame* f) Bool_t IsMinimized(TGMdiFrame* f) virtual void Layout() virtual void Maximize(TGMdiFrame* frame) virtual void Minimize(TGMdiFrame* frame) virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) virtual void Restore(TGMdiFrame* frame) virtual void SavePrimitive(ofstream& out, Option_t* option) Bool_t SetCurrent(UInt_t newcurrent) Bool_t SetCurrent(TGMdiFrame* f) void SetResizeMode(Int_t mode = kMdiDefaultResizeMode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual void TileHorizontal() virtual void TileVertical()

Data Members


    protected:
Int_t fCurrentX Int_t fCurrentY Int_t fResizeMode Int_t fArrangementMode TGFont* fFontCurrent TGFont* fFontNotCurrent Pixel_t fBackCurrent Pixel_t fForeCurrent Pixel_t fBackNotCurrent Pixel_t fForeNotCurrent TGGC* fBoxGC Long_t fNumberOfFrames TGMdiMenuBar* fMenuBar TGFrame* fContainer TGPopupMenu* fWinListMenu TGMdiFrameList* fChildren TGMdiFrameList* fCurrent public:
static const enum TGMdiMainFrame:: kMinimizedWidth

Class Description

                                                                      
 TGMdiMainFrame.                                                      
                                                                      
 This file contains the TGMdiMainFrame class.                         
                                                                      


TGMdiMainFrame(const TGWindow *p, TGMdiMenuBar *menuBar, Int_t w, Int_t h, UInt_t options, Pixel_t back) : TGCanvas(p, w, h, options | kDoubleBorder | kSunkenFrame | kMdiMainFrame, back)
 Create a MDI main frame.

~TGMdiMainFrame()

void SetResizeMode(Int_t mode)

Bool_t HandleKey(Event_t *event)

void AddMdiFrame(TGMdiFrame *frame)

Bool_t RemoveMdiFrame(TGMdiFrame *frame)

Bool_t SetCurrent(UInt_t id)

Bool_t SetCurrent(TGMdiFrame *f)

Bool_t SetCurrent(TGMdiFrameList *newcurrent)

void CirculateUp()
 Bring the lowest window to the top.

void CirculateDown()
 Send the highest window to the bottom.

TGMdiDecorFrame* GetDecorFrame(TGMdiFrame *frame) const

TGMdiDecorFrame* GetDecorFrame(UInt_t id) const

TGMdiFrame* GetMdiFrame(UInt_t id) const

TGRectangle GetBBox() const

TGRectangle GetMinimizedBBox() const

void UpdateWinListMenu()

void Layout()

void ArrangeFrames(Int_t mode)

void ArrangeMinimized()
 This is an attempt to an "smart" minimized window re-arrangement.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)

void Maximize(TGMdiFrame *mdiframe)

void Restore(TGMdiFrame *mdiframe)

void Minimize(TGMdiFrame *mdiframe)

Int_t Close(TGMdiFrame *mdiframe)

void FreeMove(TGMdiFrame *mdiframe)

void FreeSize(TGMdiFrame *mdiframe)

Int_t ContextHelp(TGMdiFrame *mdiframe)

TGMdiFrame* GetCurrent() const

TGMdiGeometry GetWindowGeometry(TGMdiFrame *f) const

void ConfigureWindow(TGMdiFrame *f, TGMdiGeometry &geom)

void CloseAll()
 close all mdi frames

Bool_t IsMaximized(TGMdiFrame *f)

Bool_t IsMinimized(TGMdiFrame *f)

void SavePrimitive(ofstream &out, Option_t *option)
 Save a MDI main frame as a C++ statement(s) on output stream out



Inline Functions


                   void Cascade()
                   void TileHorizontal()
                   void TileVertical()
               TGFrame* GetContainer() const
           TGPopupMenu* GetWinListMenu() const
          TGMdiMenuBar* GetMenu() const
        TGMdiFrameList* GetWindowList(Int_t current = kFALSE) const
                 Long_t GetNumberOfFrames() const
                   void FrameCreated(Int_t id)
                   void FrameClosed(Int_t id)
                   void FrameMaximized(Int_t id)
                   void FrameMinimized(Int_t id)
                   void FrameRestored(Int_t id)
                   void FramesArranged(Int_t mode)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
         TGMdiMainFrame TGMdiMainFrame(const TGMdiMainFrame&)


Author: Bertrand Bellenot 20/08/2004
Last update: root/gui:$Name: $:$Id: TGMdiMainFrame.cxx,v 1.17 2005/07/05 12:36:06 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.