# HG changeset patch # User ib # Date 1354672185 0 # Node ID cfcf52c6176f1697e828255fc5965f5af6fb6845 # Parent ac6c531dc9d1a31e9bc0bed77379db2cb683a2c2 Replace symbolic skin item constants by enums. Additionally, rearrange and add doxygen comment. diff -r ac6c531dc9d1 -r cfcf52c6176f gui/app.h --- 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