From a8a7d6dcfc39c3c6c2faa23de21d0a5fc9332818 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Aug 2014 23:05:57 +0300 Subject: Move options for chat input settings page into separate file. --- src/input/pages/chat.cpp | 156 ++++++++++++++++++++++++++++++++++++++++++++++ src/input/pages/chat.h | 31 +++++++++ src/input/pages/pages.cpp | 124 ------------------------------------ src/input/pages/pages.h | 1 - 4 files changed, 187 insertions(+), 125 deletions(-) create mode 100644 src/input/pages/chat.cpp create mode 100644 src/input/pages/chat.h (limited to 'src/input/pages') 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 + * 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 . + */ + +#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 + * 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 . + */ + +#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[]; -- cgit v1.2.3-60-g2f50