From 3a19b08078d42837126cc585d2a9b6f5f61b2c2b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Jan 2016 21:40:24 +0300 Subject: Add quick shortcuts for add selected item to each craft inventory slot. Add craft tab with shortcuts in input tab. --- src/input/pages/craft.cpp | 89 +++++++++++++++++++++++++++++++++++++++++++++++ src/input/pages/craft.h | 28 +++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 src/input/pages/craft.cpp create mode 100644 src/input/pages/craft.h (limited to 'src/input/pages') diff --git a/src/input/pages/craft.cpp b/src/input/pages/craft.cpp new file mode 100644 index 000000000..5b5bf0466 --- /dev/null +++ b/src/input/pages/craft.cpp @@ -0,0 +1,89 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2016 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 "utils/gettext.h" +#include "utils/stringutils.h" + +#include "debug.h" + +SetupActionData setupActionDataCraft[] = +{ + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 1), + InputAction::CRAFT_1, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 2), + InputAction::CRAFT_2, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 3), + InputAction::CRAFT_3, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 4), + InputAction::CRAFT_4, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 5), + InputAction::CRAFT_5, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 6), + InputAction::CRAFT_6, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 7), + InputAction::CRAFT_7, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 8), + InputAction::CRAFT_8, + "", + }, + { + // TRANSLATORS: input action name + strprintf(N_("Craft shortcut %d"), 9), + InputAction::CRAFT_9, + "", + }, + { + "", + InputAction::NO_VALUE, + "" + }, +}; diff --git a/src/input/pages/craft.h b/src/input/pages/craft.h new file mode 100644 index 000000000..ef797f7a5 --- /dev/null +++ b/src/input/pages/craft.h @@ -0,0 +1,28 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2016 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_CRAFT_H +#define INPUT_PAGES_CRAFT_H + +#include "gui/setupactiondata.h" + +extern SetupActionData setupActionDataCraft[]; + +#endif // INPUT_PAGES_CRAFT_H -- cgit v1.2.3-60-g2f50