Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGMdiMenu.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gui:$Id$
0002 // Author: Bertrand Bellenot   20/08/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 /**************************************************************************
0013 
0014     This file is part of TGMdi, an extension to the xclass toolkit.
0015     Copyright (C) 1998-2002 by Harald Radke, Hector Peraza.
0016 
0017     This application is free software; you can redistribute it and/or
0018     modify it under the terms of the GNU Library General Public
0019     License as published by the Free Software Foundation; either
0020     version 2 of the License, or (at your option) any later version.
0021 
0022     This application is distributed in the hope that it will be useful,
0023     but WITHOUT ANY WARRANTY; without even the implied warranty of
0024     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0025     Library General Public License for more details.
0026 
0027     You should have received a copy of the GNU Library General Public
0028     License along with this library; if not, write to the Free
0029     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
0030 
0031 **************************************************************************/
0032 
0033 #ifndef ROOT_TGMdiMenu
0034 #define ROOT_TGMdiMenu
0035 
0036 
0037 #include "TGMenu.h"
0038 #include "TGFrame.h"
0039 
0040 
0041 class TGMdiMainFrame;
0042 class TGMdiTitleIcon;
0043 class TGMdiButtons;
0044 
0045 
0046 class TGMdiMenuBar : public TGCompositeFrame {
0047 
0048 friend class TGMdiMainFrame;
0049 
0050 protected:
0051    TGCompositeFrame   *fLeft, *fRight;          ///< left and right parts of MDI menu bar
0052    TGMenuBar          *fBar;                    ///< standard menu bar
0053    TGLayoutHints      *fLHint, *fLeftHint;      ///< left layout hints
0054    TGLayoutHints      *fRightHint, *fBarHint;   ///< right layout hints
0055 
0056    void AddFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
0057    void RemoveFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
0058    void ShowFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
0059    void HideFrames(TGMdiTitleIcon *icon, TGMdiButtons *buttons);
0060 
0061 public:
0062    TGMdiMenuBar(const TGWindow *p, Int_t w = 1, Int_t h = 20);
0063    ~TGMdiMenuBar() override;
0064 
0065    void AddPopup(TGHotString *s, TGPopupMenu *menu, TGLayoutHints *l);
0066    TGMenuBar *GetMenuBar() const { return fBar;}
0067    void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0068 
0069    ClassDefOverride(TGMdiMenuBar, 0) // MDI menu bar
0070 };
0071 
0072 #endif