[MPlayer-cvslog] r35598 - trunk/gui/app.h

ib subversion at mplayerhq.hu
Wed Dec 5 02:49:45 CET 2012


Author: ib
Date: Wed Dec  5 02:49:45 2012
New Revision: 35598

Log:
Replace symbolic skin item constants by enums.

Additionally, rearrange and add doxygen comment.

Modified:
   trunk/gui/app.h

Modified: trunk/gui/app.h
==============================================================================
--- trunk/gui/app.h	Wed Dec  5 02:42:50 2012	(r35597)
+++ trunk/gui/app.h	Wed Dec  5 02:49:45 2012	(r35598)
@@ -90,22 +90,21 @@ typedef struct {
     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


More information about the MPlayer-cvslog mailing list