From 84db3be8a91cba8aec9f266a1c7f8486732c25aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 31 Mar 2007 18:24:32 +0000 Subject: [PATCH] * put Transformable class into BPrivate::Icon namespace, which solves the problem that app_server uses the wrong version of the class * TODO: put all the other classes into this namespace as well, I'm just eager to close this crucial bug, which Ingo kindly tracked down [darn, this commit stalled before, and I commited the next step already from another Terminal...] git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20481 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/icon/shape/Shape.h | 4 ++-- src/libs/icon/shape/VectorPath.h | 7 ++++--- src/libs/icon/transformable/Transformable.h | 8 ++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/libs/icon/shape/Shape.h b/src/libs/icon/shape/Shape.h index e80ee73596..59c4b3ae03 100644 --- a/src/libs/icon/shape/Shape.h +++ b/src/libs/icon/shape/Shape.h @@ -42,12 +42,12 @@ class ShapeListener { #ifdef ICON_O_MATIC class Shape : public IconObject, - public Transformable, + public BPrivate::Icon::Transformable, public Observer, // observing all the paths and the style public PathContainerListener, public PathListener { #else -class Shape : public Transformable { +class Shape : public BPrivate::Icon::Transformable { #endif public: diff --git a/src/libs/icon/shape/VectorPath.h b/src/libs/icon/shape/VectorPath.h index bd7ab129ee..1a76c600b3 100644 --- a/src/libs/icon/shape/VectorPath.h +++ b/src/libs/icon/shape/VectorPath.h @@ -1,5 +1,5 @@ /* - * Copyright 2006, Haiku. + * Copyright 2006-2007, Haiku. * Distributed under the terms of the MIT License. * * Authors: @@ -14,6 +14,8 @@ #include +#include "Transformable.h" + #ifdef ICON_O_MATIC # include # include @@ -24,7 +26,6 @@ class BBitmap; class BMessage; class BView; -class Transformable; struct control_point { BPoint point; // actual point on path @@ -84,7 +85,7 @@ class VectorPath { // VectorPath VectorPath& operator=(const VectorPath& from); -// bool operator==(const VectorPath& frrom) const; +// bool operator==(const VectorPath& from) const; void MakeEmpty(); diff --git a/src/libs/icon/transformable/Transformable.h b/src/libs/icon/transformable/Transformable.h index 018660098d..d916b83db5 100644 --- a/src/libs/icon/transformable/Transformable.h +++ b/src/libs/icon/transformable/Transformable.h @@ -13,6 +13,9 @@ #include +namespace BPrivate { +namespace Icon { + class Transformable : public agg::trans_affine { public: enum { @@ -66,5 +69,10 @@ class Transformable : public agg::trans_affine { // is changed for some reason }; +} // namespace Icon +} // namespace BPrivate + +using namespace BPrivate::Icon; + #endif // TRANSFORMABLE_H