aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorBorja Lorente2016-07-29 11:19:26 +0200
committerBorja Lorente2016-07-31 14:05:14 +0200
commitffbc6b0c783b5d86a91ef15a4974cde7f606c585 (patch)
treef6e54b99355648bc75488776d8888936d2299feb /graphics
parent68b2d44a0f732aed23afaa96e18b0786fca1d77d (diff)
downloadscummvm-rg350-ffbc6b0c783b5d86a91ef15a4974cde7f606c585.tar.gz
scummvm-rg350-ffbc6b0c783b5d86a91ef15a4974cde7f606c585.tar.bz2
scummvm-rg350-ffbc6b0c783b5d86a91ef15a4974cde7f606c585.zip
GRAPHICS: Create wrapper namespace for MacMenu constants
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/macmenu.h77
1 files changed, 40 insertions, 37 deletions
diff --git a/graphics/macgui/macmenu.h b/graphics/macgui/macmenu.h
index e0309b25e6..ce0b0ed8db 100644
--- a/graphics/macgui/macmenu.h
+++ b/graphics/macgui/macmenu.h
@@ -53,43 +53,46 @@ namespace Graphics {
struct MenuItem;
struct MenuSubItem;
-enum {
- kFontStyleBold = 1,
- kFontStyleItalic = 2,
- kFontStyleUnderline = 4,
- kFontStyleOutline = 8,
- kFontStyleShadow = 16,
- kFontStyleCondensed = 32,
- kFontStyleExtended = 64
-};
-
-enum {
- kMenuHighLevel = -1,
- kMenuAbout = 0,
- kMenuFile = 1,
- kMenuEdit = 2,
- kMenuCommands = 3,
- kMenuWeapons = 4
-};
-
-enum {
- kMenuActionAbout,
- kMenuActionNew,
- kMenuActionOpen,
- kMenuActionClose,
- kMenuActionSave,
- kMenuActionSaveAs,
- kMenuActionRevert,
- kMenuActionQuit,
-
- kMenuActionUndo,
- kMenuActionCut,
- kMenuActionCopy,
- kMenuActionPaste,
- kMenuActionClear,
-
- kMenuActionCommand
-};
+namespace MacMenuConstants {
+ enum MacMenuFontStyle {
+ kFontStyleBold = 1,
+ kFontStyleItalic = 2,
+ kFontStyleUnderline = 4,
+ kFontStyleOutline = 8,
+ kFontStyleShadow = 16,
+ kFontStyleCondensed = 32,
+ kFontStyleExtended = 64
+ };
+
+ enum MacMenuTab {
+ kMenuHighLevel = -1,
+ kMenuAbout = 0,
+ kMenuFile = 1,
+ kMenuEdit = 2,
+ kMenuCommands = 3,
+ kMenuWeapons = 4
+ };
+
+ enum MacMenuAction {
+ kMenuActionAbout,
+ kMenuActionNew,
+ kMenuActionOpen,
+ kMenuActionClose,
+ kMenuActionSave,
+ kMenuActionSaveAs,
+ kMenuActionRevert,
+ kMenuActionQuit,
+
+ kMenuActionUndo,
+ kMenuActionCut,
+ kMenuActionCopy,
+ kMenuActionPaste,
+ kMenuActionClear,
+
+ kMenuActionCommand
+ };
+}
+using namespace MacMenuConstants;
struct MenuData {
int menunum;