Right, who submitted the patch with those properties in
Nah, my fault for not checking it properly
The error is caused becuase the code contains lines that use the enumeration name as a scope; but enums do not introduce any new scope, so you get the error.
Here's a patch (basically, remove the ::HorzFormatting and ::VertFormatting bits from that file).
Code: Select all
Index: WidgetSets/TaharezLook/src/TLButtonProperties.cpp
===================================================================
RCS file: /cvsroot/crayzedsgui/cegui_mk2/WidgetSets/TaharezLook/src/TLButtonProperties.cpp,v
retrieving revision 1.1
diff -u -r1.1 TLButtonProperties.cpp
--- WidgetSets/TaharezLook/src/TLButtonProperties.cpp 22 Sep 2004 10:54:16 -0000 1.1
+++ WidgetSets/TaharezLook/src/TLButtonProperties.cpp 27 Sep 2004 17:54:40 -0000
@@ -44,8 +44,8 @@
{
RenderableImage * image = new RenderableImage();
image->setImage(PropertyHelper::stringToImage(value));
- image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
- image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+ image->setHorzFormatting(RenderableImage::HorzStretched);
+ image->setVertFormatting(RenderableImage::VertStretched);
static_cast<TLButton*>(receiver)->setNormalImage(image);
}
@@ -59,8 +59,8 @@
{
RenderableImage * image = new RenderableImage();
image->setImage(PropertyHelper::stringToImage(value));
- image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
- image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+ image->setHorzFormatting(RenderableImage::HorzStretched);
+ image->setVertFormatting(RenderableImage::VertStretched);
static_cast<TLButton*>(receiver)->setPushedImage(image);
}
@@ -74,8 +74,8 @@
{
RenderableImage * image = new RenderableImage();
image->setImage(PropertyHelper::stringToImage(value));
- image->setHorzFormatting(RenderableImage::HorzFormatting::HorzStretched);
- image->setVertFormatting(RenderableImage::VertFormatting::VertStretched);
+ image->setHorzFormatting(RenderableImage::HorzStretched);
+ image->setVertFormatting(RenderableImage::VertStretched);
static_cast<TLButton*>(receiver)->setHoverImage(image);
}