Page 1 of 1

[Mac OS X] Problems building Taharez Look

Posted: Mon Sep 27, 2004 15:52
by RuprechtTheMonkeyBoy
I'm trying to build Taharez Look in Xcode (1.5, GCC 3.3), but I get the following error when compiling TLButtonProperties.cpp:

Code: Select all

cegui_mk2/WidgetSets/TaharezLook/src/TLButtonProperties.cpp:47: error: `CEGUI::RenderableImage::HorzFormatting' is not an aggregate type


My C++ skills are rusty, so I'm not sure what this means or how to fix/get around it. :oops: Any help is appreciated.

[Mac OS X] Problems building Taharez Look

Posted: Mon Sep 27, 2004 18:00
by CrazyEddie
Right, who submitted the patch with those properties in :?:

Nah, my fault for not checking it properly :oops:

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);
 }