summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/gui/setupinputpages.cpp1
-rw-r--r--src/gui/widgets/tabs/setup_input.cpp1
-rw-r--r--src/input/pages/emotes.cpp347
-rw-r--r--src/input/pages/emotes.h31
-rw-r--r--src/input/pages/pages.cpp315
-rw-r--r--src/input/pages/pages.h1
8 files changed, 384 insertions, 316 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 92f418523..d97b8949b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -441,6 +441,8 @@ SET(SRCS
gui/setupinputpages.h
input/pages/basic.cpp
input/pages/basic.h
+ input/pages/emotes.cpp
+ input/pages/emotes.h
input/pages/pages.cpp
input/pages/pages.h
input/pages/shortcuts.cpp
diff --git a/src/Makefile.am b/src/Makefile.am
index 0a48acb32..170c37227 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -565,6 +565,8 @@ manaplus_SOURCES += gui/widgets/avatarlistbox.cpp \
gui/setupinputpages.h \
input/pages/basic.cpp \
input/pages/basic.h \
+ input/pages/emotes.cpp \
+ input/pages/emotes.h \
input/pages/pages.cpp \
input/pages/pages.h \
input/pages/shortcuts.cpp \
diff --git a/src/gui/setupinputpages.cpp b/src/gui/setupinputpages.cpp
index 6cc66bcfd..2070809d2 100644
--- a/src/gui/setupinputpages.cpp
+++ b/src/gui/setupinputpages.cpp
@@ -28,6 +28,7 @@
#include "utils/gettext.h"
#include "input/pages/basic.h"
+#include "input/pages/emotes.h"
#include "input/pages/pages.h"
#include "input/pages/shortcuts.h"
#include "input/pages/windows.h"
diff --git a/src/gui/widgets/tabs/setup_input.cpp b/src/gui/widgets/tabs/setup_input.cpp
index 41235e3df..ab93ccb35 100644
--- a/src/gui/widgets/tabs/setup_input.cpp
+++ b/src/gui/widgets/tabs/setup_input.cpp
@@ -28,6 +28,7 @@
#include "input/inputmanager.h"
#include "input/keyboardconfig.h"
+#include "input/pages/emotes.h"
#include "input/pages/pages.h"
#include "input/pages/shortcuts.h"
diff --git a/src/input/pages/emotes.cpp b/src/input/pages/emotes.cpp
new file mode 100644
index 000000000..8ccb010de
--- /dev/null
+++ b/src/input/pages/emotes.cpp
@@ -0,0 +1,347 @@
+/*
+ * 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 setupActionDataEmotes[] =
+{
+ {
+ // TRANSLATORS: input action name
+ N_("Emote modifiers keys"),
+ InputAction::NO_VALUE,
+ ""
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Emote modifier key"),
+ InputAction::EMOTE,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ N_("Emote shortcuts"),
+ InputAction::NO_VALUE,
+ ""
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 1),
+ InputAction::EMOTE_1,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 2),
+ InputAction::EMOTE_2,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 3),
+ InputAction::EMOTE_3,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 4),
+ InputAction::EMOTE_4,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 5),
+ InputAction::EMOTE_5,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 6),
+ InputAction::EMOTE_6,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 7),
+ InputAction::EMOTE_7,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 8),
+ InputAction::EMOTE_8,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 9),
+ InputAction::EMOTE_9,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 10),
+ InputAction::EMOTE_10,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 11),
+ InputAction::EMOTE_11,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 12),
+ InputAction::EMOTE_12,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 13),
+ InputAction::EMOTE_13,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 14),
+ InputAction::EMOTE_14,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 15),
+ InputAction::EMOTE_15,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 16),
+ InputAction::EMOTE_16,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 17),
+ InputAction::EMOTE_17,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 18),
+ InputAction::EMOTE_18,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 19),
+ InputAction::EMOTE_19,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 20),
+ InputAction::EMOTE_20,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 21),
+ InputAction::EMOTE_21,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 22),
+ InputAction::EMOTE_22,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 23),
+ InputAction::EMOTE_23,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 24),
+ InputAction::EMOTE_24,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 25),
+ InputAction::EMOTE_25,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 26),
+ InputAction::EMOTE_26,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 27),
+ InputAction::EMOTE_27,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 28),
+ InputAction::EMOTE_28,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 29),
+ InputAction::EMOTE_29,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 30),
+ InputAction::EMOTE_30,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 31),
+ InputAction::EMOTE_31,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 32),
+ InputAction::EMOTE_32,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 33),
+ InputAction::EMOTE_33,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 34),
+ InputAction::EMOTE_34,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 35),
+ InputAction::EMOTE_35,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 36),
+ InputAction::EMOTE_36,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 37),
+ InputAction::EMOTE_37,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 38),
+ InputAction::EMOTE_38,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 39),
+ InputAction::EMOTE_39,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 40),
+ InputAction::EMOTE_40,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 41),
+ InputAction::EMOTE_41,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 42),
+ InputAction::EMOTE_42,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 43),
+ InputAction::EMOTE_43,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 44),
+ InputAction::EMOTE_44,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 45),
+ InputAction::EMOTE_45,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 46),
+ InputAction::EMOTE_46,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 47),
+ InputAction::EMOTE_47,
+ "",
+ },
+ {
+ // TRANSLATORS: input action name
+ strprintf(N_("Emote Shortcut %d"), 48),
+ InputAction::EMOTE_48,
+ "",
+ },
+ {
+ "",
+ InputAction::NO_VALUE,
+ ""
+ }
+};
diff --git a/src/input/pages/emotes.h b/src/input/pages/emotes.h
new file mode 100644
index 000000000..b833855cf
--- /dev/null
+++ b/src/input/pages/emotes.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_EMOTES_H
+#define INPUT_PAGES_EMOTES_H
+
+#include "gui/setupactiondata.h"
+
+extern SetupActionData setupActionDataEmotes[];
+
+#endif // INPUT_PAGES_EMOTES_H
diff --git a/src/input/pages/pages.cpp b/src/input/pages/pages.cpp
index 7480b52cd..c56c40715 100644
--- a/src/input/pages/pages.cpp
+++ b/src/input/pages/pages.cpp
@@ -31,321 +31,6 @@
#include "debug.h"
-SetupActionData setupActionDataEmotes[] =
-{
- {
- // TRANSLATORS: input action name
- N_("Emote modifiers keys"),
- InputAction::NO_VALUE,
- ""
- },
- {
- // TRANSLATORS: input action name
- N_("Emote modifier key"),
- InputAction::EMOTE,
- "",
- },
- {
- // TRANSLATORS: input action name
- N_("Emote shortcuts"),
- InputAction::NO_VALUE,
- ""
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 1),
- InputAction::EMOTE_1,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 2),
- InputAction::EMOTE_2,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 3),
- InputAction::EMOTE_3,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 4),
- InputAction::EMOTE_4,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 5),
- InputAction::EMOTE_5,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 6),
- InputAction::EMOTE_6,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 7),
- InputAction::EMOTE_7,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 8),
- InputAction::EMOTE_8,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 9),
- InputAction::EMOTE_9,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 10),
- InputAction::EMOTE_10,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 11),
- InputAction::EMOTE_11,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 12),
- InputAction::EMOTE_12,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 13),
- InputAction::EMOTE_13,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 14),
- InputAction::EMOTE_14,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 15),
- InputAction::EMOTE_15,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 16),
- InputAction::EMOTE_16,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 17),
- InputAction::EMOTE_17,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 18),
- InputAction::EMOTE_18,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 19),
- InputAction::EMOTE_19,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 20),
- InputAction::EMOTE_20,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 21),
- InputAction::EMOTE_21,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 22),
- InputAction::EMOTE_22,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 23),
- InputAction::EMOTE_23,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 24),
- InputAction::EMOTE_24,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 25),
- InputAction::EMOTE_25,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 26),
- InputAction::EMOTE_26,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 27),
- InputAction::EMOTE_27,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 28),
- InputAction::EMOTE_28,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 29),
- InputAction::EMOTE_29,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 30),
- InputAction::EMOTE_30,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 31),
- InputAction::EMOTE_31,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 32),
- InputAction::EMOTE_32,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 33),
- InputAction::EMOTE_33,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 34),
- InputAction::EMOTE_34,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 35),
- InputAction::EMOTE_35,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 36),
- InputAction::EMOTE_36,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 37),
- InputAction::EMOTE_37,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 38),
- InputAction::EMOTE_38,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 39),
- InputAction::EMOTE_39,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 40),
- InputAction::EMOTE_40,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 41),
- InputAction::EMOTE_41,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 42),
- InputAction::EMOTE_42,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 43),
- InputAction::EMOTE_43,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 44),
- InputAction::EMOTE_44,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 45),
- InputAction::EMOTE_45,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 46),
- InputAction::EMOTE_46,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 47),
- InputAction::EMOTE_47,
- "",
- },
- {
- // TRANSLATORS: input action name
- strprintf(N_("Emote Shortcut %d"), 48),
- InputAction::EMOTE_48,
- "",
- },
- {
- "",
- InputAction::NO_VALUE,
- ""
- }
-};
-
SetupActionData setupActionDataOutfits[] =
{
{
diff --git a/src/input/pages/pages.h b/src/input/pages/pages.h
index 6a2d99aaf..f6a29b8ce 100644
--- a/src/input/pages/pages.h
+++ b/src/input/pages/pages.h
@@ -26,7 +26,6 @@
#include "gui/setupactiondata.h"
-extern SetupActionData setupActionDataEmotes[];
extern SetupActionData setupActionDataOutfits[];
extern SetupActionData setupActionDataChat[];
extern SetupActionData setupActionDataOther[];