From efe4f0baddf10124581e4fcb88d55a52838b06a1 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 9 Sep 2012 17:51:10 +0200 Subject: Refactoring in src/common - refactored CInstanceManager and some headers - removed old headers --- src/common/restext.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'src/common/restext.h') diff --git a/src/common/restext.h b/src/common/restext.h index 624803b..0dba89a 100644 --- a/src/common/restext.h +++ b/src/common/restext.h @@ -14,30 +14,32 @@ // * You should have received a copy of the GNU General Public License // * along with this program. If not, see http://www.gnu.org/licenses/. -// restext.h +/** + * \file common/restext.h + * \brief Translation and string resource utilities + */ #pragma once +#include "common/global.h" #include "common/restext_ids.h" - -class CD3DEngine; - -// Possible types of the text resources. - +/** + * \enum ResType + * \brief Types of text resources + */ enum ResType { - RES_TEXT = 0, // RT_* - RES_EVENT = 1, // EVENT_* (EventMsg) - RES_OBJECT = 2, // OBJECT_* (ObjectType) - RES_ERR = 3, // ERR_* (Error) - RES_KEY = 4, // VK_* (keys) - RES_CBOT = 5, // TX_* (cbot.dll) + RES_TEXT = 0, //! < RT_* + RES_EVENT = 1, //! < EVENT_* (EventMsg) + RES_OBJECT = 2, //! < OBJECT_* (ObjectType) + RES_ERR = 3, //! < ERR_* (Error) + RES_KEY = 4, //! < KEY() (keys) + RES_CBOT = 5, //! < TX_* (CBot) }; -extern void SetEngine(CD3DEngine *engine); extern void SetGlobalGamerName(char *name); extern bool SearchKey(char *cmd, KeyRank &key); extern bool GetResource(ResType type, int num, char* text); -- cgit v1.2.3-1-g7c22 From 94e7fd920353c39471d8836a8bf87ffb113f1349 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Thu, 13 Sep 2012 23:28:06 +0200 Subject: Locale settings and translation fixes - added locale setting - removed unused translations - updated .po files --- src/common/restext.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/restext.h') diff --git a/src/common/restext.h b/src/common/restext.h index 0dba89a..b47e03c 100644 --- a/src/common/restext.h +++ b/src/common/restext.h @@ -40,6 +40,8 @@ enum ResType }; +// TODO: move to CRobotMain + extern void SetGlobalGamerName(char *name); extern bool SearchKey(char *cmd, KeyRank &key); extern bool GetResource(ResType type, int num, char* text); -- cgit v1.2.3-1-g7c22