[692] | 1 | /************************************************************************
|
---|
| 2 | filename: CEGUIFalXMLEnumHelper.h
|
---|
| 3 | created: Mon Jul 18 2005
|
---|
| 4 | author: Paul D Turner <paul@cegui.org.uk>
|
---|
| 5 | *************************************************************************/
|
---|
| 6 | /*************************************************************************
|
---|
| 7 | Crazy Eddie's GUI System (http://www.cegui.org.uk)
|
---|
| 8 | Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
|
---|
| 9 |
|
---|
| 10 | This library is free software; you can redistribute it and/or
|
---|
| 11 | modify it under the terms of the GNU Lesser General Public
|
---|
| 12 | License as published by the Free Software Foundation; either
|
---|
| 13 | version 2.1 of the License, or (at your option) any later version.
|
---|
| 14 |
|
---|
| 15 | This library is distributed in the hope that it will be useful,
|
---|
| 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 18 | Lesser General Public License for more details.
|
---|
| 19 |
|
---|
| 20 | You should have received a copy of the GNU Lesser General Public
|
---|
| 21 | License along with this library; if not, write to the Free Software
|
---|
| 22 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 23 | *************************************************************************/
|
---|
| 24 | #ifndef _CEGUIFalXMLEnumHelper_h_
|
---|
| 25 | #define _CEGUIFalXMLEnumHelper_h_
|
---|
| 26 |
|
---|
| 27 | #include "CEGUIString.h"
|
---|
| 28 | #include "CEGUIWindow.h"
|
---|
| 29 | #include "falagard/CEGUIFalEnums.h"
|
---|
| 30 |
|
---|
| 31 | // Start of CEGUI namespace section
|
---|
| 32 | namespace CEGUI
|
---|
| 33 | {
|
---|
| 34 | /*!
|
---|
| 35 | \brief
|
---|
| 36 | Utility helper class primarily intended for use by the falagard xml parser.
|
---|
| 37 | */
|
---|
| 38 | class CEGUIEXPORT FalagardXMLHelper
|
---|
| 39 | {
|
---|
| 40 | public:
|
---|
| 41 | static VerticalFormatting stringToVertFormat(const String& str);
|
---|
| 42 | static HorizontalFormatting stringToHorzFormat(const String& str);
|
---|
| 43 | static VerticalAlignment stringToVertAlignment(const String& str);
|
---|
| 44 | static HorizontalAlignment stringToHorzAlignment(const String& str);
|
---|
| 45 | static DimensionType stringToDimensionType(const String& str);
|
---|
| 46 | static VerticalTextFormatting stringToVertTextFormat(const String& str);
|
---|
| 47 | static HorizontalTextFormatting stringToHorzTextFormat(const String& str);
|
---|
| 48 | static FontMetricType stringToFontMetricType(const String& str);
|
---|
| 49 | static DimensionOperator stringToDimensionOperator(const String& str);
|
---|
| 50 | static FrameImageComponent stringToFrameImageComponent(const String& str);
|
---|
| 51 |
|
---|
| 52 | static String vertFormatToString(VerticalFormatting format);
|
---|
| 53 | static String horzFormatToString(HorizontalFormatting format);
|
---|
| 54 | static String vertAlignmentToString(VerticalAlignment alignment);
|
---|
| 55 | static String horzAlignmentToString(HorizontalAlignment alignment);
|
---|
| 56 | static String dimensionTypeToString(DimensionType dim);
|
---|
| 57 | static String vertTextFormatToString(VerticalTextFormatting format);
|
---|
| 58 | static String horzTextFormatToString(HorizontalTextFormatting format);
|
---|
| 59 | static String fontMetricTypeToString(FontMetricType metric);
|
---|
| 60 | static String dimensionOperatorToString(DimensionOperator op);
|
---|
| 61 | static String frameImageComponentToString(FrameImageComponent imageComp);
|
---|
| 62 | };
|
---|
| 63 | } // End of CEGUI namespace section
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 | #endif // end of guard _CEGUIFalXMLEnumHelper_h_
|
---|