[gimp] app: move enum TransformAction from tools-enums.h to gimptransformtool.h



commit cf28e07b6485f05b3698e87d783623293764c390
Author: Michael Natterer <mitch gimp org>
Date:   Sat Mar 26 22:32:35 2011 +0100

    app: move enum TransformAction from tools-enums.h to gimptransformtool.h
    
    Moving it to tools-enums.h was a mistake, it's actually supposed to be
    a private enum, accessible only by subclasses. And it's ugly.

 app/tools/gimptransformtool.h |   14 ++++++++++++++
 app/tools/tools-enums.h       |   16 ----------------
 2 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/app/tools/gimptransformtool.h b/app/tools/gimptransformtool.h
index f6030f5..30c034e 100644
--- a/app/tools/gimptransformtool.h
+++ b/app/tools/gimptransformtool.h
@@ -25,6 +25,20 @@
 
 #define TRANS_INFO_SIZE  8
 
+typedef enum
+{
+  TRANSFORM_CREATING,
+  TRANSFORM_HANDLE_NONE,
+  TRANSFORM_HANDLE_NW, /* north west */
+  TRANSFORM_HANDLE_NE, /* north east */
+  TRANSFORM_HANDLE_SW, /* south west */
+  TRANSFORM_HANDLE_SE, /* south east */
+  TRANSFORM_HANDLE_N,  /* north      */
+  TRANSFORM_HANDLE_S,  /* south      */
+  TRANSFORM_HANDLE_E,  /* east       */
+  TRANSFORM_HANDLE_W,  /* west       */
+  TRANSFORM_HANDLE_CENTER
+} TransformAction;
 
 typedef gdouble TransInfo[TRANS_INFO_SIZE];
 
diff --git a/app/tools/tools-enums.h b/app/tools/tools-enums.h
index 64712ea..a8d3b28 100644
--- a/app/tools/tools-enums.h
+++ b/app/tools/tools-enums.h
@@ -204,21 +204,5 @@ typedef enum /*< skip >*/
   GIMP_MOTION_MODE_COMPRESS
 } GimpMotionMode;
 
-/*  Possible transform functions  */
-typedef enum /*< skip >*/
-{
-  TRANSFORM_CREATING,
-  TRANSFORM_HANDLE_NONE,
-  TRANSFORM_HANDLE_NW, /* north west */
-  TRANSFORM_HANDLE_NE, /* north east */
-  TRANSFORM_HANDLE_SW, /* south west */
-  TRANSFORM_HANDLE_SE, /* south east */
-  TRANSFORM_HANDLE_N,  /* north      */
-  TRANSFORM_HANDLE_S,  /* south      */
-  TRANSFORM_HANDLE_E,  /* east       */
-  TRANSFORM_HANDLE_W,  /* west       */
-  TRANSFORM_HANDLE_CENTER
-} TransformAction;
-
 
 #endif /* __TOOLS_ENUMS_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]