ROOT logo
// @(#)root/gui:$Id: TGMdiMenu.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_TGMdiMenu
#define ROOT_TGMdiMenu

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGMdiMenu.                                                           //
//                                                                      //
// This file contains the TGMdiMenuBar class.                           //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

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


class TGMdiMainFrame;
class TGMdiTitleIcon;
class TGMdiButtons;


class TGMdiMenuBar : public TGCompositeFrame {

friend class TGMdiMainFrame;

protected:
   TGCompositeFrame   *fLeft, *fRight;          // left and right parts of MDI menu bar
   TGMenuBar          *fBar;                    // standard menu bar
   TGLayoutHints      *fLHint, *fLeftHint;      // left layout hints
   TGLayoutHints      *fRightHint, *fBarHint;   // right layout hints

   void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
   void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
   void ShowFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
   void HideFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);

public:
   TGMdiMenuBar(const TGWindow *p, Int_t w = 1, Int_t h = 20);
   virtual ~TGMdiMenuBar();

   void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l);
   TGMenuBar *GetMenuBar() const { return fBar;}
   virtual void SavePrimitive(ostream &out, Option_t *option = "");

   ClassDef(TGMdiMenuBar, 0) // MDI menu bar
};

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