27 #ifndef _CEGUIFalagard_xmlHandler_h_
28 #define _CEGUIFalagard_xmlHandler_h_
30 #include "../ChainedXMLHandler.h"
31 #include "./Dimensions.h"
32 #include "../Window.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
44 class WidgetLookManager;
46 class WidgetComponent;
49 class LayerSpecification;
50 class SectionSpecification;
51 class ImageryComponent;
57 class PropertyDefinitionBase;
58 class EventLinkDefinition;
142 static const String NamedAreaSourceElement;
178 static const String HelpStringAttribute;
197 void elementStartLocal(
const String& element,
199 void elementEndLocal(
const String& element);
210 typedef std::map<String, ElementStartHandler, StringFastLessCompare> ElementStartHandlerMap;
212 typedef std::map<String, ElementEndHandler, StringFastLessCompare> ElementEndHandlerMap;
222 void assignAreaDimension(
Dimension& dim);
223 void assignColours(
const ColourRect& colours);
229 void doBaseDimStart(
const BaseDim* dim);
241 void elementWidgetLookStart(
const XMLAttributes& attributes);
253 void elementImagerySectionStart(
const XMLAttributes& attributes);
259 void elementStateImageryStart(
const XMLAttributes& attributes);
277 void elementImageryComponentStart(
const XMLAttributes& attributes);
283 void elementTextComponentStart(
const XMLAttributes& attributes);
289 void elementFrameComponentStart(
const XMLAttributes& attributes);
313 void elementVertFormatStart(
const XMLAttributes& attributes);
319 void elementHorzFormatStart(
const XMLAttributes& attributes);
325 void elementVertAlignmentStart(
const XMLAttributes& attributes);
331 void elementHorzAlignmentStart(
const XMLAttributes& attributes);
349 void elementUnifiedDimStart(
const XMLAttributes& attributes);
355 void elementAbsoluteDimStart(
const XMLAttributes& attributes);
367 void elementImagePropertyDimStart(
const XMLAttributes& attributes);
385 void elementPropertyDimStart(
const XMLAttributes& attributes);
397 void elementColourRectPropertyStart(
const XMLAttributes& attributes);
409 void elementPropertyDefinitionStart(
const XMLAttributes& attributes);
415 void elementPropertyLinkDefinitionStart(
const XMLAttributes& attributes);
421 void elementOperatorDimStart(
const XMLAttributes& attributes);
427 void elementVertFormatPropertyStart(
const XMLAttributes& attributes);
433 void elementHorzFormatPropertyStart(
const XMLAttributes& attributes);
439 void elementAreaPropertyStart(
const XMLAttributes& attributes);
445 void elementImagePropertyStart(
const XMLAttributes& attributes);
451 void elementTextPropertyStart(
const XMLAttributes& attributes);
457 void elementFontPropertyStart(
const XMLAttributes& attributes);
466 void elementPropertyLinkTargetStart(
const XMLAttributes& attributes);
469 void elementAnimationDefinitionStart(
const XMLAttributes& attributes);
472 void elementEventLinkDefinitionStart(
const XMLAttributes& attributes);
475 void elementEventLinkTargetStart(
const XMLAttributes& attributes);
478 void elementNamedAreaSourceStart(
const XMLAttributes& attributes);
480 void elementEventActionStart(
const XMLAttributes& attributes);
486 void elementFalagardEnd();
492 void elementWidgetLookEnd();
498 void elementChildEnd();
504 void elementImagerySectionEnd();
510 void elementStateImageryEnd();
516 void elementLayerEnd();
522 void elementSectionEnd();
528 void elementImageryComponentEnd();
534 void elementTextComponentEnd();
540 void elementFrameComponentEnd();
546 void elementAreaEnd();
552 void elementNamedAreaEnd();
558 void elementAnyDimEnd();
561 void elementPropertyLinkDefinitionEnd();
564 void elementEventLinkDefinitionEnd();
570 void registerElementStartHandler(
const String& element, ElementStartHandler handler);
576 void registerElementEndHandler(
const String& element, ElementEndHandler handler);
579 void processEventLinkTarget(
const String& widget,
const String& event);
590 ElementStartHandlerMap d_startHandlersMap;
591 ElementEndHandlerMap d_endHandlersMap;
608 CEGUI_VECTOR_ALLOC(
BaseDim*)> d_dimStack;
617 #if defined(_MSC_VER)
618 # pragma warning(pop)
621 #endif // end of guard _CEGUIFalagard_xmlHandler_h_
static const String GenericDataType
Default or unspecified value for the "dataType" attribute.
Definition: falagard/XMLHandler.h:89
Class that encapsulates information for a text component.
Definition: TextComponent.h:48
static const String TargetPropertyAttribute
Attribute name that stores a name of a target property.
Definition: falagard/XMLHandler.h:172
static const String ScaleAttribute
Attribute name that stores a UDim scale value.
Definition: falagard/XMLHandler.h:159
static const String SectionElement
Tag name for Section elements.
Definition: falagard/XMLHandler.h:105
static const String ClippedAttribute
Attribute name that stores whether some component will be clipped.
Definition: falagard/XMLHandler.h:167
Class that encapsulates a single layer of imagery.
Definition: LayerSpecification.h:45
static const String TypeAttribute
Attribute name that stores a type string.
Definition: falagard/XMLHandler.h:152
Abstract interface for a generic 'dimension' class.
Definition: Dimensions.h:40
static const String EventAttribute
Attribute name that stores an Event name string.
Definition: falagard/XMLHandler.h:181
common base class used for types representing a new property to be available on all widgets that use ...
Definition: PropertyDefinitionBase.h:42
static const String ActionAttribute
Attribute name that stores the name of an action to be taken.
Definition: falagard/XMLHandler.h:189
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Class representing some kind of dimension.
Definition: Dimensions.h:693
uint32 argb_t
32 bit ARGB representation of a colour.
Definition: Colour.h:38
static const String ControlPropertyAttribute
Attribute name that stores a name of a property to control rendering of a section.
Definition: falagard/XMLHandler.h:173
static const String OperatorAttribute
Attribute name that stores the name of an operator.
Definition: falagard/XMLHandler.h:168
Class that represents a target area for a widget or imagery component.
Definition: Dimensions.h:780
static const String PropertyDefinitionElement
Tag name for property definition elements.
Definition: falagard/XMLHandler.h:129
static const String AreaPropertyElement
Tag name for element that specifies a URect property..
Definition: falagard/XMLHandler.h:135
static const String SectionNameAttribute
Attribute name that stores an imagery section name.
Definition: falagard/XMLHandler.h:155
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
static const String HorzAlignmentElement
Tag name for HorzAlignment elements.
Definition: falagard/XMLHandler.h:115
static const String NativeVersion
Stores the native version, the only version we are supposed to load.
Definition: falagard/XMLHandler.h:80
static const String WidgetLookElement
Tag name for WidgetLook elements.
Definition: falagard/XMLHandler.h:100
static const String StringAttribute
Attribute name that stores a string of text.
Definition: falagard/XMLHandler.h:164
NamedArea defines an area for a component which may later be obtained and referenced by a name unique...
Definition: NamedArea.h:40
static const String ColourRectPropertyElement
Tag name for property colour elements (fetches cols from a ColourRect property)
Definition: falagard/XMLHandler.h:127
Class the encapsulates imagery for a given widget state.
Definition: StateImagery.h:46
static const String ComponentAttribute
Attribute name that stores some component enum value.
Definition: falagard/XMLHandler.h:191
static const String NamedAreaElement
Tag name for named area elements.
Definition: falagard/XMLHandler.h:128
Class that encapsulates information for a single image component.
Definition: ImageryComponent.h:46
Class that represents a simple 'link' to an ImagerySection.
Definition: SectionSpecification.h:47
static const String ImagePropertyDimElement
Tag name for image property dimension elements.
Definition: falagard/XMLHandler.h:121
static const String LayoutOnWriteAttribute
Attribute name that stores whether to layout on write of a property.
Definition: falagard/XMLHandler.h:170
static const String AutoWindowAttribute
Attribute name that stores auto-window preference.
Definition: falagard/XMLHandler.h:185
static const String ValueAttribute
Attribute name that stores a property value string.
Definition: falagard/XMLHandler.h:161
static const String PropertyDefinitionHelpDefaultValue
Default value for the "type" attribute of PropertyDefinition elements.
Definition: falagard/XMLHandler.h:83
static const String ColourAttribute
Attribute name that stores colour for all corners.
Definition: falagard/XMLHandler.h:174
static const String ColourPropertyElement
Tag name for property colour elements (fetches cols from a colour property)
Definition: falagard/XMLHandler.h:126
static const String TopLeftAttribute
Attribute name that stores colour for top-left corner.
Definition: falagard/XMLHandler.h:148
static const String BottomRightAttribute
Attribute name that stores colour for bottom-right corner.
Definition: falagard/XMLHandler.h:151
static const String ImagerySectionElement
Tag name for ImagerySection elements.
Definition: falagard/XMLHandler.h:102
static const String OperatorDimElement
Tag name for dimension operator elements.
Definition: falagard/XMLHandler.h:132
static const String AbsoluteDimElement
Tag name for absolute dimension elements.
Definition: falagard/XMLHandler.h:119
static const String ImageryComponentElement
Tag name for ImageryComponent elements.
Definition: falagard/XMLHandler.h:106
static const String RendererAttribute
Attribute name that stores the name of a window renderer factory.
Definition: falagard/XMLHandler.h:157
static const String FontPropertyElement
Tag name for element that specifies an Font property.
Definition: falagard/XMLHandler.h:138
static const String HorzFormatElement
Tag name for HorzFormat elements.
Definition: falagard/XMLHandler.h:113
static const String EventLinkTargetElement
Definition: falagard/XMLHandler.h:141
static const String EventLinkDefinitionElement
Tag name for event link elements.
Definition: falagard/XMLHandler.h:140
static const String TextElement
Tag name for text component text elements.
Definition: falagard/XMLHandler.h:125
static const String StateImageryElement
Tag name for StateImagery elements.
Definition: falagard/XMLHandler.h:103
static const String ColourElement
Tag name for Colour elements.
Definition: falagard/XMLHandler.h:139
static const String ImagePropertyElement
Tag name for element that specifies an Image property..
Definition: falagard/XMLHandler.h:136
static const String AreaElement
Tag name for Area elements.
Definition: falagard/XMLHandler.h:109
static const String EventActionElement
Tag name for specifying event / action responses for Child components.
Definition: falagard/XMLHandler.h:145
static const String PropertyLinkDefinitionElement
Tag name for property link elements.
Definition: falagard/XMLHandler.h:130
static const String FalagardElement
Tag name for root Falagard elements.
Definition: falagard/XMLHandler.h:99
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:46
static const String DimensionAttribute
Attribute name that stores a dimension type.
Definition: falagard/XMLHandler.h:162
static const String VertFormatPropertyElement
Tag name for element that specifies a vertical formatting property.
Definition: falagard/XMLHandler.h:133
static const String VersionAttribute
Attribute name that stores the version number of the Falagard element containing the WidgetLookFeels...
Definition: falagard/XMLHandler.h:147
Handler class used to parse look & feel XML files used by the Falagard system.
Definition: falagard/XMLHandler.h:64
static const String HorzFormatPropertyElement
Tag name for element that specifies a horizontal formatting property..
Definition: falagard/XMLHandler.h:134
static const String PropertyAttribute
Attribute name that stores the name of a property.
Definition: falagard/XMLHandler.h:175
static const String ChildElement
Tag name for Child elements.
Definition: falagard/XMLHandler.h:101
static const String OffsetAttribute
Attribute name that stores a UDim offset value.
Definition: falagard/XMLHandler.h:160
static const String BottomLeftAttribute
Attribute name that stores colour for bottom-left corner.
Definition: falagard/XMLHandler.h:150
static const String ColoursElement
Tag name for Colours elements.
Definition: falagard/XMLHandler.h:111
static const String VertAlignmentElement
Tag name for VertAlignment elements.
Definition: falagard/XMLHandler.h:114
static const String VertFormatElement
Tag name for VertFormat elements.
Definition: falagard/XMLHandler.h:112
static const String TextPropertyElement
Tag name for element that specifies an Text property.
Definition: falagard/XMLHandler.h:137
static const String TopRightAttribute
Attribute name that stores colour for top-right corner.
Definition: falagard/XMLHandler.h:149
static const String ControlValueAttribute
Attribute name that stores a test value to control rendering of a section.
Definition: falagard/XMLHandler.h:176
static const String PropertyLinkDefinitionHelpDefaultValue
Default value for the "type" attribute of PropertyLinkDefinition elements.
Definition: falagard/XMLHandler.h:86
static const String RedrawOnWriteAttribute
Attribute name that stores whether to redraw on write of a property.
Definition: falagard/XMLHandler.h:171
static const String WidgetAttribute
Attribute name that stores the name of a widget (suffix).
Definition: falagard/XMLHandler.h:163
static const String FrameComponentElement
Tag name for FrameComponent elements.
Definition: falagard/XMLHandler.h:108
static const String UnifiedDimElement
Tag name for unified dimension elements.
Definition: falagard/XMLHandler.h:118
Class that encapsulates information for a frame with background (9 images in total) ...
Definition: FrameComponent.h:51
static const String PropertyDimElement
Tag name for property dimension elements.
Definition: falagard/XMLHandler.h:124
static const String NameAttribute
Attribute name that stores name string.
Definition: falagard/XMLHandler.h:153
Abstract XMLHandler based class.
Definition: ChainedXMLHandler.h:36
static const String LookAttribute
Attribute name that stores the name of a widget look.
Definition: falagard/XMLHandler.h:158
static const String PaddingAttribute
Attribute name that stores some padding value..
Definition: falagard/XMLHandler.h:169
static const String FireEventAttribute
Attribute name that stores name of event to fire for property defs.
Definition: falagard/XMLHandler.h:187
Class that encapsulates a re-usable collection of imagery specifications.
Definition: ImagerySection.h:47
static const String WidgetDimElement
Tag name for widget dimension elements.
Definition: falagard/XMLHandler.h:122
Definition: EventLinkDefinition.h:43
static const String FontAttribute
Attribute name that stores the name of a font.
Definition: falagard/XMLHandler.h:165
static const String LayerElement
Tag name for Layer elements.
Definition: falagard/XMLHandler.h:104
static const String PropertyElement
Tag name for Property elements.
Definition: falagard/XMLHandler.h:116
static const String InheritsAttribute
Attribute name that stores the name of an inherited WidgetLook.
Definition: falagard/XMLHandler.h:183
static const String DimElement
Tag name for dimension container elements.
Definition: falagard/XMLHandler.h:117
static const String FontDimElement
Tag name for font dimension elements.
Definition: falagard/XMLHandler.h:123
static const String ImageElement
Tag name for Image elements.
Definition: falagard/XMLHandler.h:110
static const String TextComponentElement
Tag name for TextComponent elements.
Definition: falagard/XMLHandler.h:107
static const String ImageDimElement
Tag name for image dimension elements.
Definition: falagard/XMLHandler.h:120
static const String ParentIdentifier
String value representing a parent link identifier.
Definition: falagard/XMLHandler.h:93
static const String PropertyLinkTargetElement
Tag name for property link target elements.
Definition: falagard/XMLHandler.h:131
static const String PriorityAttribute
Attribute name that stores an integer priority.
Definition: falagard/XMLHandler.h:154
String class used within the GUI system.
Definition: String.h:62
static const String NameSuffixAttribute
Attribute name that stores a widget name suffix.
Definition: falagard/XMLHandler.h:156
static const String ControlWidgetAttribute
Definition: falagard/XMLHandler.h:177
static const String InitialValueAttribute
Attribute name that stores the initial default value for a property definition.
Definition: falagard/XMLHandler.h:166