summaryrefslogtreecommitdiff
path: root/src/input/pages
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-22 23:05:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-22 23:05:57 +0300
commita8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818 (patch)
treea57969ad30c4755b207ae029bd1d0362ffe31292 /src/input/pages
parentc98b8c1a210a2f3f6846e9e77077d0a968bcb9af (diff)
downloadmanaplus-a8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818.tar.gz
manaplus-a8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818.tar.bz2
manaplus-a8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818.tar.xz
manaplus-a8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818.zip
Move options for chat input settings page into separate file.
Diffstat (limited to 'src/input/pages')
-rw-r--r--src/input/pages/chat.cpp156
-rw-r--r--src/input/pages/chat.h31
-rw-r--r--src/input/pages/pages.cpp124
-rw-r--r--src/input/pages/pages.h1
4 files changed, 187 insertions, 125 deletions
diff --git a/src/input/pages/chat.cpp b/src/input/pages/chat.cpp
new file mode 100644
index 000000000..486f882d2
--- /dev/null
+++ b/src/input/pages/chat.cpp
@@ -0,0 +1,156 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2007 Joshua Langley <joshlangley@optusnet.com.au>
+ * Copyright (C) 2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#include "gui/setupactiondata.h"
+
+#include "input/inputaction.h"
+#include "input/inputactiondata.h"
+
+#include "utils/gettext.h"
+#include "utils/stringutils.h"
+
+#include "debug.h"
+
+SetupActionData setupActionDataChat[] =
+{
+ {
+ // TRANSLATORS: input action name
+ N_("Toggle Chat"),
+ InputAction::TOGGLE_CHAT,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Scroll Chat Up"),
+ InputAction::SCROLL_CHAT_UP,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Scroll Chat Down"),
+ InputAction::SCROLL_CHAT_DOWN,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Previous Chat Tab"),
+ InputAction::PREV_CHAT_TAB,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Next Chat Tab"),
+ InputAction::NEXT_CHAT_TAB,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Close current Chat Tab"),
+ InputAction::CLOSE_CHAT_TAB,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Previous chat line"),
+ InputAction::CHAT_PREV_HISTORY,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Next chat line"),
+ InputAction::CHAT_NEXT_HISTORY,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Chat modifier key"),
+ InputAction::CHAT_MOD,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Show smiles"),
+ InputAction::GUI_F1,
+ "",
+ },
+ {
+ "F2",
+ InputAction::GUI_F2,
+ "",
+ },
+ {
+ "F3",
+ InputAction::GUI_F3,
+ "",
+ },
+ {
+ "F4",
+ InputAction::GUI_F4,
+ "",
+ },
+ {
+ "F5",
+ InputAction::GUI_F5,
+ "",
+ },
+ {
+ "F6",
+ InputAction::GUI_F6,
+ "",
+ },
+ {
+ "F7",
+ InputAction::GUI_F7,
+ "",
+ },
+ {
+ "F8",
+ InputAction::GUI_F8,
+ "",
+ },
+ {
+ "F9",
+ InputAction::GUI_F9,
+ "",
+ },
+ {
+ "F10",
+ InputAction::GUI_F10,
+ "",
+ },
+ {
+ "F11",
+ InputAction::GUI_F11,
+ "",
+ },
+ {
+ "F12",
+ InputAction::GUI_F12,
+ "",
+ },
+ {
+ "",
+ InputAction::NO_VALUE,
+ ""
+ }
+};
diff --git a/src/input/pages/chat.h b/src/input/pages/chat.h
new file mode 100644
index 000000000..726bb7f75
--- /dev/null
+++ b/src/input/pages/chat.h
@@ -0,0 +1,31 @@
+/*
+ * The ManaPlus Client
+ * Copyright (C) 2007 Joshua Langley <joshlangley@optusnet.com.au>
+ * Copyright (C) 2009 The Mana World Development Team
+ * Copyright (C) 2009-2010 The Mana Developers
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef INPUT_PAGES_CHAT_H
+#define INPUT_PAGES_CHAT_H
+
+#include "gui/setupactiondata.h"
+
+extern SetupActionData setupActionDataChat[];
+
+#endif // INPUT_PAGES_CHAT_H
diff --git a/src/input/pages/pages.cpp b/src/input/pages/pages.cpp
index 74cc4e17e..06adbbc7b 100644
--- a/src/input/pages/pages.cpp
+++ b/src/input/pages/pages.cpp
@@ -31,130 +31,6 @@
#include "debug.h"
-SetupActionData setupActionDataChat[] =
-{
- {
- // TRANSLATORS: input action name
- N_("Toggle Chat"),
- InputAction::TOGGLE_CHAT,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Scroll Chat Up"),
- InputAction::SCROLL_CHAT_UP,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Scroll Chat Down"),
- InputAction::SCROLL_CHAT_DOWN,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Previous Chat Tab"),
- InputAction::PREV_CHAT_TAB,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Next Chat Tab"),
- InputAction::NEXT_CHAT_TAB,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Close current Chat Tab"),
- InputAction::CLOSE_CHAT_TAB,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Previous chat line"),
- InputAction::CHAT_PREV_HISTORY,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Next chat line"),
- InputAction::CHAT_NEXT_HISTORY,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Chat modifier key"),
- InputAction::CHAT_MOD,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Show smiles"),
- InputAction::GUI_F1,
- "",
- },
- {
- "F2",
- InputAction::GUI_F2,
- "",
- },
- {
- "F3",
- InputAction::GUI_F3,
- "",
- },
- {
- "F4",
- InputAction::GUI_F4,
- "",
- },
- {
- "F5",
- InputAction::GUI_F5,
- "",
- },
- {
- "F6",
- InputAction::GUI_F6,
- "",
- },
- {
- "F7",
- InputAction::GUI_F7,
- "",
- },
- {
- "F8",
- InputAction::GUI_F8,
- "",
- },
- {
- "F9",
- InputAction::GUI_F9,
- "",
- },
- {
- "F10",
- InputAction::GUI_F10,
- "",
- },
- {
- "F11",
- InputAction::GUI_F11,
- "",
- },
- {
- "F12",
- InputAction::GUI_F12,
- "",
- },
- {
- "",
- InputAction::NO_VALUE,
- ""
- }
-};
-
SetupActionData setupActionDataOther[] =
{
{
diff --git a/src/input/pages/pages.h b/src/input/pages/pages.h
index 523317fd9..cac8d10d6 100644
--- a/src/input/pages/pages.h
+++ b/src/input/pages/pages.h
@@ -26,7 +26,6 @@
#include "gui/setupactiondata.h"
-extern SetupActionData setupActionDataChat[];
extern SetupActionData setupActionDataOther[];
extern SetupActionData setupActionDataMove[];
extern SetupActionData setupActionDataGui[];