Crazy Eddies GUI System 0.7.5

CEGUIGroupBox.h

00001 /************************************************************************
00002         filename:       CEGUIGroupBox.h
00003         created:        03/23/2007
00004         author:         Lars 'Levia' Wesselius (Content Pane based on Tomas Lindquist Olsen's code)
00005 
00006         purpose:        Interface for the GroupBox widget
00007 *************************************************************************/
00008 /***************************************************************************
00009  *   Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
00010  *
00011  *   Permission is hereby granted, free of charge, to any person obtaining
00012  *   a copy of this software and associated documentation files (the
00013  *   "Software"), to deal in the Software without restriction, including
00014  *   without limitation the rights to use, copy, modify, merge, publish,
00015  *   distribute, sublicense, and/or sell copies of the Software, and to
00016  *   permit persons to whom the Software is furnished to do so, subject to
00017  *   the following conditions:
00018  *
00019  *   The above copyright notice and this permission notice shall be
00020  *   included in all copies or substantial portions of the Software.
00021  *
00022  *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00023  *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00024  *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00025  *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
00026  *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00027  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00028  *   OTHER DEALINGS IN THE SOFTWARE.
00029  ***************************************************************************/
00030 #ifndef _CEGUIGroupBox_h_
00031 #define _CEGUIGroupBox_h_
00032 
00033 #include "../CEGUIBase.h"
00034 #include "../CEGUIWindowFactory.h"
00035 #include "CEGUIClippedContainer.h"
00036 #include <vector>
00037 
00038 
00039 #if defined(_MSC_VER)
00040 #       pragma warning(push)
00041 #       pragma warning(disable : 4251)
00042 #endif
00043 
00044 
00045 // Start of CEGUI namespace section
00046 namespace CEGUI
00047 {
00048 
00053         class CEGUIEXPORT GroupBox : public Window
00054         {
00055         protected:
00056 
00057         public:
00058                 static const String EventNamespace;                                     
00059 
00060 
00061                 /*************************************************************************
00062                 Constants
00063                 *************************************************************************/
00064                 // temp
00065                 static const String WidgetTypeName;
00066 
00067                 static const String ContentPaneNameSuffix;
00068 
00069 
00070                 /*************************************************************************
00071                 Construction and Destruction
00072                 *************************************************************************/
00077                 GroupBox(const String& type, const String& name);
00078 
00079 
00084                 virtual ~GroupBox();
00085 
00091                 bool drawAroundWidget(const CEGUI::Window * wnd);
00092                 bool drawAroundWidget(const String& name);
00093 
00104                 virtual bool testClassName_impl(const String& class_name) const
00105                 {
00106                         if (class_name=="GroupBox") return true;
00107                         return Window::testClassName_impl(class_name);
00108                 }
00109 
00117                 Window * getContentPane() const;
00118                         
00119 
00120         protected:
00121                 
00122 
00123                 // Overridden from Window
00128                 virtual void initialiseComponents();
00129 
00134                 virtual void addChild_impl(Window* wnd);
00135 
00140                 virtual void removeChild_impl(Window* wnd);
00141 
00142 
00143         };
00144 
00145 } // End of  CEGUI namespace section
00146 
00147 
00148 #if defined(_MSC_VER)
00149 #       pragma warning(pop)
00150 #endif
00151 
00152 #endif  // end of guard _CEGUIGroupBox_h_