changeset 35504:cfcf52c6176f

Replace symbolic skin item constants by enums. Additionally, rearrange and add doxygen comment.
author ib
date Wed, 05 Dec 2012 01:49:45 +0000
parents ac6c531dc9d1
children 2dccd5d7e36c
files gui/app.h
diffstat 1 files changed, 14 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.h	Wed Dec 05 01:42:50 2012 +0000
+++ b/gui/app.h	Wed Dec 05 01:49:45 2012 +0000
@@ -90,22 +90,21 @@
     const char *name;
 } evName;
 
-/* Skin items */
-
-#define itNone      0
-#define itButton    101
-#define itHPotmeter 102
-#define itVPotmeter 103
-#define itSLabel    104
-#define itDLabel    105
-#define itBase      106
-#define itPotmeter  107
-#define itMenu      108
-
-#define itPLMButton (itNone - 1)
-#define itPRMButton (itNone - 2)
-
 /* Button states */
+/// Skin items
+enum {
+    itNone,
+    itBase,
+    itButton,
+    itSLabel,
+    itDLabel,
+    itHPotmeter,
+    itVPotmeter,
+    itPotmeter,
+    itMenu,
+    itPLMButton = 100,
+    itPRMButton
+};
 
 #define btnDisabled 0
 #define btnReleased 1