summaryrefslogtreecommitdiffstats
path: root/src/ui/control.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
commita8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch)
tree5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/ui/control.h
parent8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff)
downloadcolobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/ui/control.h')
-rw-r--r--src/ui/control.h37
1 files changed, 20 insertions, 17 deletions
diff --git a/src/ui/control.h b/src/ui/control.h
index f36e7ba..8f677c7 100644
--- a/src/ui/control.h
+++ b/src/ui/control.h
@@ -32,23 +32,26 @@ class CParticule;
class CSound;
-#define STATE_ENABLE (1<<0) // active
-#define STATE_CHECK (1<<1) // pressed
-#define STATE_HILIGHT (1<<2) // overflown by mouse
-#define STATE_PRESS (1<<3) // pressed by mouse
-#define STATE_VISIBLE (1<<4) // visible
-#define STATE_DEAD (1<<5) // inaccessible (x)
-#define STATE_DEFAULT (1<<6) // actuated by RETURN
-#define STATE_OKAY (1<<7) // green point at the bottom right
-#define STATE_SHADOW (1<<8) // shadow
-#define STATE_GLINT (1<<9) // dynamic reflection
-#define STATE_CARD (1<<10) // tab
-#define STATE_EXTEND (1<<11) // extended mode
-#define STATE_SIMPLY (1<<12) // undecorated
-#define STATE_FRAME (1<<13) // framework highlighting
-#define STATE_WARNING (1<<14) // framework hatched yellow / black
-#define STATE_VALUE (1<<15) // displays the value
-#define STATE_RUN (1<<16) // running program
+enum ControlState
+{
+ STATE_ENABLE = (1<<0), // active
+ STATE_CHECK = (1<<1), // pressed
+ STATE_HILIGHT = (1<<2), // overflown by mouse
+ STATE_PRESS = (1<<3), // pressed by mouse
+ STATE_VISIBLE = (1<<4), // visible
+ STATE_DEAD = (1<<5), // inaccessible (x)
+ STATE_DEFAULT = (1<<6), // actuated by RETURN
+ STATE_OKAY = (1<<7), // green point at the bottom right
+ STATE_SHADOW = (1<<8), // shadow
+ STATE_GLINT = (1<<9), // dynamic reflection
+ STATE_CARD = (1<<10), // tab
+ STATE_EXTEND = (1<<11), // extended mode
+ STATE_SIMPLY = (1<<12), // undecorated
+ STATE_FRAME = (1<<13), // framework highlighting
+ STATE_WARNING = (1<<14), // framework hatched yellow / black
+ STATE_VALUE = (1<<15), // displays the value
+ STATE_RUN = (1<<16) // running program
+};