summaryrefslogtreecommitdiff
path: root/src/input/pages
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-22 23:54:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-22 23:54:10 +0300
commit859b5eea1557debd49f3c82a0a302216812a3b27 (patch)
tree84687efd85eb047cf3f1ff0e0116f8e214c53638 /src/input/pages
parentde4b5860924bc3b9267edcce6cf2417cd30f8eb1 (diff)
downloadmanaverse-859b5eea1557debd49f3c82a0a302216812a3b27.tar.gz
manaverse-859b5eea1557debd49f3c82a0a302216812a3b27.tar.bz2
manaverse-859b5eea1557debd49f3c82a0a302216812a3b27.tar.xz
manaverse-859b5eea1557debd49f3c82a0a302216812a3b27.zip
Move options for move input settings page into separate file.
Diffstat (limited to 'src/input/pages')
-rw-r--r--src/input/pages/move.cpp371
-rw-r--r--src/input/pages/move.h31
-rw-r--r--src/input/pages/pages.cpp339
-rw-r--r--src/input/pages/pages.h1
4 files changed, 402 insertions, 340 deletions
diff --git a/src/input/pages/move.cpp b/src/input/pages/move.cpp
new file mode 100644
index 000000000..5a8c157fa
--- /dev/null
+++ b/src/input/pages/move.cpp
@@ -0,0 +1,371 @@
+/*
+ * 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 setupActionDataMove[] =
+{
+ {
+ // TRANSLATORS: input action name
+ N_("Move Keys"),
+ InputAction::NO_VALUE,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move Up"),
+ InputAction::MOVE_UP,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move Down"),
+ InputAction::MOVE_DOWN,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move Left"),
+ InputAction::MOVE_LEFT,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move Right"),
+ InputAction::MOVE_RIGHT,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move Forward"),
+ InputAction::MOVE_FORWARD,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Move to navigation point shortcuts"),
+ InputAction::NO_VALUE,
+ ""
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 1),
+ InputAction::MOVE_TO_POINT_1,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 2),
+ InputAction::MOVE_TO_POINT_2,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 3),
+ InputAction::MOVE_TO_POINT_3,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 4),
+ InputAction::MOVE_TO_POINT_4,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 5),
+ InputAction::MOVE_TO_POINT_5,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 6),
+ InputAction::MOVE_TO_POINT_6,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 7),
+ InputAction::MOVE_TO_POINT_7,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 8),
+ InputAction::MOVE_TO_POINT_8,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 9),
+ InputAction::MOVE_TO_POINT_9,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 10),
+ InputAction::MOVE_TO_POINT_10,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 11),
+ InputAction::MOVE_TO_POINT_11,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 12),
+ InputAction::MOVE_TO_POINT_12,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 13),
+ InputAction::MOVE_TO_POINT_13,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 14),
+ InputAction::MOVE_TO_POINT_14,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 15),
+ InputAction::MOVE_TO_POINT_15,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 16),
+ InputAction::MOVE_TO_POINT_16,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 17),
+ InputAction::MOVE_TO_POINT_17,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 18),
+ InputAction::MOVE_TO_POINT_18,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 19),
+ InputAction::MOVE_TO_POINT_19,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 20),
+ InputAction::MOVE_TO_POINT_20,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 21),
+ InputAction::MOVE_TO_POINT_21,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 22),
+ InputAction::MOVE_TO_POINT_22,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 23),
+ InputAction::MOVE_TO_POINT_23,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 24),
+ InputAction::MOVE_TO_POINT_24,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 25),
+ InputAction::MOVE_TO_POINT_25,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 26),
+ InputAction::MOVE_TO_POINT_26,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 27),
+ InputAction::MOVE_TO_POINT_27,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 28),
+ InputAction::MOVE_TO_POINT_28,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 29),
+ InputAction::MOVE_TO_POINT_29,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 30),
+ InputAction::MOVE_TO_POINT_30,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 31),
+ InputAction::MOVE_TO_POINT_31,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 32),
+ InputAction::MOVE_TO_POINT_32,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 33),
+ InputAction::MOVE_TO_POINT_33,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 34),
+ InputAction::MOVE_TO_POINT_34,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 35),
+ InputAction::MOVE_TO_POINT_35,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 36),
+ InputAction::MOVE_TO_POINT_36,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 37),
+ InputAction::MOVE_TO_POINT_37,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 38),
+ InputAction::MOVE_TO_POINT_38,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 39),
+ InputAction::MOVE_TO_POINT_39,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 40),
+ InputAction::MOVE_TO_POINT_40,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 41),
+ InputAction::MOVE_TO_POINT_41,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 42),
+ InputAction::MOVE_TO_POINT_42,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 43),
+ InputAction::MOVE_TO_POINT_43,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 44),
+ InputAction::MOVE_TO_POINT_44,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 45),
+ InputAction::MOVE_TO_POINT_45,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 46),
+ InputAction::MOVE_TO_POINT_46,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 47),
+ InputAction::MOVE_TO_POINT_47,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Move to point Shortcut %d"), 48),
+ InputAction::MOVE_TO_POINT_48,
+ "",
+ },
+ {
+ "",
+ InputAction::NO_VALUE,
+ ""
+ }
+};
diff --git a/src/input/pages/move.h b/src/input/pages/move.h
new file mode 100644
index 000000000..935164792
--- /dev/null
+++ b/src/input/pages/move.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_MOVE_H
+#define INPUT_PAGES_MOVE_H
+
+#include "gui/setupactiondata.h"
+
+extern SetupActionData setupActionDataMove[];
+
+#endif // INPUT_PAGES_MOVE_H
diff --git a/src/input/pages/pages.cpp b/src/input/pages/pages.cpp
index 3ba4f9af7..2c9fbd698 100644
--- a/src/input/pages/pages.cpp
+++ b/src/input/pages/pages.cpp
@@ -31,345 +31,6 @@
#include "debug.h"
-SetupActionData setupActionDataMove[] =
-{
- {
- // TRANSLATORS: input action name
- N_("Move Keys"),
- InputAction::NO_VALUE,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move Up"),
- InputAction::MOVE_UP,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move Down"),
- InputAction::MOVE_DOWN,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move Left"),
- InputAction::MOVE_LEFT,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move Right"),
- InputAction::MOVE_RIGHT,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move Forward"),
- InputAction::MOVE_FORWARD,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Move to navigation point shortcuts"),
- InputAction::NO_VALUE,
- ""
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 1),
- InputAction::MOVE_TO_POINT_1,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 2),
- InputAction::MOVE_TO_POINT_2,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 3),
- InputAction::MOVE_TO_POINT_3,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 4),
- InputAction::MOVE_TO_POINT_4,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 5),
- InputAction::MOVE_TO_POINT_5,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 6),
- InputAction::MOVE_TO_POINT_6,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 7),
- InputAction::MOVE_TO_POINT_7,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 8),
- InputAction::MOVE_TO_POINT_8,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 9),
- InputAction::MOVE_TO_POINT_9,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 10),
- InputAction::MOVE_TO_POINT_10,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 11),
- InputAction::MOVE_TO_POINT_11,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 12),
- InputAction::MOVE_TO_POINT_12,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 13),
- InputAction::MOVE_TO_POINT_13,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 14),
- InputAction::MOVE_TO_POINT_14,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 15),
- InputAction::MOVE_TO_POINT_15,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 16),
- InputAction::MOVE_TO_POINT_16,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 17),
- InputAction::MOVE_TO_POINT_17,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 18),
- InputAction::MOVE_TO_POINT_18,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 19),
- InputAction::MOVE_TO_POINT_19,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 20),
- InputAction::MOVE_TO_POINT_20,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 21),
- InputAction::MOVE_TO_POINT_21,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 22),
- InputAction::MOVE_TO_POINT_22,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 23),
- InputAction::MOVE_TO_POINT_23,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 24),
- InputAction::MOVE_TO_POINT_24,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 25),
- InputAction::MOVE_TO_POINT_25,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 26),
- InputAction::MOVE_TO_POINT_26,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 27),
- InputAction::MOVE_TO_POINT_27,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 28),
- InputAction::MOVE_TO_POINT_28,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 29),
- InputAction::MOVE_TO_POINT_29,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 30),
- InputAction::MOVE_TO_POINT_30,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 31),
- InputAction::MOVE_TO_POINT_31,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 32),
- InputAction::MOVE_TO_POINT_32,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 33),
- InputAction::MOVE_TO_POINT_33,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 34),
- InputAction::MOVE_TO_POINT_34,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 35),
- InputAction::MOVE_TO_POINT_35,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 36),
- InputAction::MOVE_TO_POINT_36,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 37),
- InputAction::MOVE_TO_POINT_37,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 38),
- InputAction::MOVE_TO_POINT_38,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 39),
- InputAction::MOVE_TO_POINT_39,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 40),
- InputAction::MOVE_TO_POINT_40,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 41),
- InputAction::MOVE_TO_POINT_41,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 42),
- InputAction::MOVE_TO_POINT_42,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 43),
- InputAction::MOVE_TO_POINT_43,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 44),
- InputAction::MOVE_TO_POINT_44,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 45),
- InputAction::MOVE_TO_POINT_45,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 46),
- InputAction::MOVE_TO_POINT_46,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 47),
- InputAction::MOVE_TO_POINT_47,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Move to point Shortcut %d"), 48),
- InputAction::MOVE_TO_POINT_48,
- "",
- },
- {
- "",
- InputAction::NO_VALUE,
- ""
- }
-};
-
SetupActionData setupActionDataGui[] =
{
{
diff --git a/src/input/pages/pages.h b/src/input/pages/pages.h
index 65beaf4e2..7eb59c69f 100644
--- a/src/input/pages/pages.h
+++ b/src/input/pages/pages.h
@@ -26,7 +26,6 @@
#include "gui/setupactiondata.h"
-extern SetupActionData setupActionDataMove[];
extern SetupActionData setupActionDataGui[];
#endif // INPUT_PAGES_PAGES_H