From 928145e71e073842c7e8947eda7e56050229b5f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 May 2014 12:00:06 +0300 Subject: extract consts form emoteshortcut into separate file. --- src/emoteshortcut.h | 4 ++-- src/emoteshortcutconsts.h | 26 ++++++++++++++++++++++++++ src/gui/windows/outfitwindow.cpp | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/emoteshortcutconsts.h (limited to 'src') diff --git a/src/emoteshortcut.h b/src/emoteshortcut.h index 3e03a18f5..45bfcdabc 100644 --- a/src/emoteshortcut.h +++ b/src/emoteshortcut.h @@ -22,9 +22,9 @@ #ifndef EMOTESHORTCUT_H #define EMOTESHORTCUT_H -#include "localconsts.h" +#include "emoteshortcutconsts.h" -static const int SHORTCUT_EMOTES = 48; +#include "localconsts.h" /** * The class which keeps track of the emote shortcuts. diff --git a/src/emoteshortcutconsts.h b/src/emoteshortcutconsts.h new file mode 100644 index 000000000..09c3451c4 --- /dev/null +++ b/src/emoteshortcutconsts.h @@ -0,0 +1,26 @@ +/* + * Extended support for activating emotes + * Copyright (C) 2011-2014 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef EMOTESHORTCUTCONSTS_H +#define EMOTESHORTCUTCONSTS_H + +static const int SHORTCUT_EMOTES = 48; + +#endif // EMOTESHORTCUTCONSTS_H diff --git a/src/gui/windows/outfitwindow.cpp b/src/gui/windows/outfitwindow.cpp index 601101bef..eb46022ba 100644 --- a/src/gui/windows/outfitwindow.cpp +++ b/src/gui/windows/outfitwindow.cpp @@ -24,7 +24,7 @@ #include "configuration.h" #include "dragdrop.h" -#include "emoteshortcut.h" +#include "emoteshortcutconsts.h" #include "game.h" #include "inventory.h" #include "item.h" -- cgit v1.2.3-70-g09d2