- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

urootpane.hpp

00001 /*************************************************************************** 00002 LibUFO - UI For OpenGL 00003 copyright : (C) 2001-2005 by Johannes Schmidt 00004 email : schmidtjf at users.sourceforge.net 00005 ------------------- 00006 00007 file : include/ufo/widgets/urootpane.hpp 00008 begin : Fri May 18 2001 00009 $Id: urootpane.hpp,v 1.10 2005/05/21 15:20:38 schmidtjf Exp $ 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * This library is free software; you can redistribute it and/or * 00014 * modify it under the terms of the GNU Lesser General Public * 00015 * License as published by the Free Software Foundation; either * 00016 * version 2.1 of the License, or (at your option) any later version. * 00017 * * 00018 * This library is distributed in the hope that it will be useful, * 00019 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00021 * Lesser General Public License for more details. * 00022 * * 00023 * You should have received a copy of the GNU Lesser General Public * 00024 * License along with this library; if not, write to the Free Software * 00025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 00026 ***************************************************************************/ 00027 00028 #ifndef UROOTPANE_HPP 00029 #define UROOTPANE_HPP 00030 00031 #include "uwidget.hpp" 00032 00033 namespace ufo { 00034 00035 class UMenuBar; 00036 class UInternalFrame; 00037 class ULayeredPane; 00038 class UStyleManager; 00039 class UDockWidget; 00040 class UDesktopPane; 00041 00048 class UFO_EXPORT URootPane : public UWidget { 00049 UFO_DECLARE_DYNAMIC_CLASS(URootPane) 00050 friend class URootLayout; 00051 public: 00052 URootPane(); 00053 00056 virtual void setMenuBar(UMenuBar * menuBar); 00059 virtual UMenuBar * getMenuBar(); 00060 00062 virtual UWidget * createContentPane() const; 00066 virtual void setContentPane(UWidget * contentPane); 00070 virtual UWidget * getContentPane() const; 00071 00072 virtual ULayeredPane * createLayeredPane() const; 00073 virtual void setLayeredPane(ULayeredPane * layeredPane); 00074 virtual ULayeredPane * getLayeredPane() const; 00075 00081 virtual void addFrame(UInternalFrame * frame); 00085 virtual UInternalFrame * removeFrame(UInternalFrame * frame); 00086 00089 virtual void moveToFront(UInternalFrame * frame); 00092 virtual void moveToBack(UInternalFrame * frame); 00093 00094 virtual void addDockWidget(UDockWidget * w, DockWidgetArea area); 00095 virtual void removeDockWidget(UDockWidget * w); 00096 00097 virtual void setModalWidget(UWidget * w); 00098 virtual UWidget * getModalWidget() const; 00099 00100 public: // Overrides UWidget 00101 virtual URootPane * getRootPane(bool topmost = false); 00102 virtual void addedToHierarchy(); 00103 virtual UWidget * getVisibleWidgetAt(const UPoint & p) const; 00104 00105 private: // Private attributes 00107 UMenuBar * m_menuBar; 00109 UWidget * m_contentPane; 00111 UDesktopPane * m_desktopPane; 00112 UWidget * m_modalWidget; 00113 }; 00114 00115 } // namespace ufo 00116 00117 #endif // UROOTPANE_HPP

The libUFO Project - written by Johannes Schmidt