ROOT logo
// @(#)root/gui:$Id: TGMdiFrame.h 23115 2008-04-10 13:35:37Z rdm $
// Author: Bertrand Bellenot   20/08/2004

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

/**************************************************************************

    This file is part of TGMdi, an extension to the xclass toolkit.
    Copyright (C) 1998-2002 by Harald Radke, Hector Peraza.

    This application is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This application is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public
    License along with this library; if not, write to the Free
    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

**************************************************************************/

#ifndef ROOT_TGMdiFrame
#define ROOT_TGMdiFrame

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGMdiFrame.                                                          //
//                                                                      //
// This file contains the TGMdiFrame class.                             //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif

class TGPicture;
class TGMdiMainFrame;
class TGMdiDecorFrame;


class TGMdiFrame : public TGCompositeFrame {

friend class TGMdiMainFrame;
friend class TGMdiDecorFrame;

protected:
   enum { kDontCallClose = BIT(14) };

   TGMdiMainFrame  *fMain;       // pointer to the MDI main frame
   ULong_t          fMdiHints;   // MDI hints, also used to identify titlebar buttons

   TString GetMdiHintsString() const;

public:
   TGMdiFrame(TGMdiMainFrame *main, Int_t w, Int_t h,
              UInt_t options = 0,
              Pixel_t back = GetDefaultFrameBackground());
   virtual ~TGMdiFrame();

   virtual void      Move(Int_t x, Int_t y);
   virtual Bool_t    CloseWindow();     //*SIGNAL*
   virtual Bool_t    Help() { return kFALSE; }

   virtual void      SetMdiHints(ULong_t mdihints);
   ULong_t           GetMdiHints() const { return fMdiHints; }

   void              DontCallClose();
   void              SetWindowName(const char *name);
   void              SetWindowIcon(const TGPicture *pic);
   const char       *GetWindowName();
   const TGPicture  *GetWindowIcon();

   virtual void      SavePrimitive(ostream &out, Option_t *option = "");

   ClassDef(TGMdiFrame, 0) // MDI Frame
};

#endif
 TGMdiFrame.h:1
 TGMdiFrame.h:2
 TGMdiFrame.h:3
 TGMdiFrame.h:4
 TGMdiFrame.h:5
 TGMdiFrame.h:6
 TGMdiFrame.h:7
 TGMdiFrame.h:8
 TGMdiFrame.h:9
 TGMdiFrame.h:10
 TGMdiFrame.h:11
 TGMdiFrame.h:12
 TGMdiFrame.h:13
 TGMdiFrame.h:14
 TGMdiFrame.h:15
 TGMdiFrame.h:16
 TGMdiFrame.h:17
 TGMdiFrame.h:18
 TGMdiFrame.h:19
 TGMdiFrame.h:20
 TGMdiFrame.h:21
 TGMdiFrame.h:22
 TGMdiFrame.h:23
 TGMdiFrame.h:24
 TGMdiFrame.h:25
 TGMdiFrame.h:26
 TGMdiFrame.h:27
 TGMdiFrame.h:28
 TGMdiFrame.h:29
 TGMdiFrame.h:30
 TGMdiFrame.h:31
 TGMdiFrame.h:32
 TGMdiFrame.h:33
 TGMdiFrame.h:34
 TGMdiFrame.h:35
 TGMdiFrame.h:36
 TGMdiFrame.h:37
 TGMdiFrame.h:38
 TGMdiFrame.h:39
 TGMdiFrame.h:40
 TGMdiFrame.h:41
 TGMdiFrame.h:42
 TGMdiFrame.h:43
 TGMdiFrame.h:44
 TGMdiFrame.h:45
 TGMdiFrame.h:46
 TGMdiFrame.h:47
 TGMdiFrame.h:48
 TGMdiFrame.h:49
 TGMdiFrame.h:50
 TGMdiFrame.h:51
 TGMdiFrame.h:52
 TGMdiFrame.h:53
 TGMdiFrame.h:54
 TGMdiFrame.h:55
 TGMdiFrame.h:56
 TGMdiFrame.h:57
 TGMdiFrame.h:58
 TGMdiFrame.h:59
 TGMdiFrame.h:60
 TGMdiFrame.h:61
 TGMdiFrame.h:62
 TGMdiFrame.h:63
 TGMdiFrame.h:64
 TGMdiFrame.h:65
 TGMdiFrame.h:66
 TGMdiFrame.h:67
 TGMdiFrame.h:68
 TGMdiFrame.h:69
 TGMdiFrame.h:70
 TGMdiFrame.h:71
 TGMdiFrame.h:72
 TGMdiFrame.h:73
 TGMdiFrame.h:74
 TGMdiFrame.h:75
 TGMdiFrame.h:76
 TGMdiFrame.h:77
 TGMdiFrame.h:78
 TGMdiFrame.h:79
 TGMdiFrame.h:80
 TGMdiFrame.h:81
 TGMdiFrame.h:82
 TGMdiFrame.h:83
 TGMdiFrame.h:84
 TGMdiFrame.h:85
 TGMdiFrame.h:86
 TGMdiFrame.h:87
 TGMdiFrame.h:88
 TGMdiFrame.h:89
 TGMdiFrame.h:90