#include <commands.h>
Classes | |
struct | List |
List of commands - sorted for the commands menu. More... | |
Static Public Member Functions | |
static int | id (int index) |
Command id of a command. | |
static const char * | text (int index) |
Translated text of a command. | |
static CommandType | command (int index) |
Command type of a command. | |
static int | count () |
Count of commands. | |
static const char *const * | texts () |
List with translated texts of all commands. | |
static int | id_to_index (int id, int default_index=-1) |
Search a command id. | |
static int | key_red_default_index () |
Default index for the red key. | |
static int | key_green_default_index () |
Default index for the green key. | |
static int | key_yellow_default_index () |
Default index for the yellow key. | |
Static Private Attributes | |
static struct List | list [] |
Definition at line 38 of file commands.h.
CommandType CommandList::command | ( | int | index | ) | [static] |
Command type of a command.
Definition at line 94 of file commands.cpp.
References SudokuPlugin::CommandList::List::cmd, count(), and list.
Referenced by SudokuPlugin::CommandMenu::CommandMenu(), and SudokuPlugin::Menu::ProcessKey().
int CommandList::count | ( | ) | [static] |
Count of commands.
Definition at line 101 of file commands.cpp.
References SudokuPlugin::Cmd_Count, and list.
Referenced by command(), SudokuPlugin::CommandMenu::CommandMenu(), id(), id_to_index(), SudokuPlugin::SetupPage::SetupPage(), text(), and texts().
int CommandList::id | ( | int | index | ) | [static] |
Command id of a command.
Definition at line 80 of file commands.cpp.
References count(), SudokuPlugin::CommandList::List::id, and list.
Referenced by SudokuPlugin::SetupPage::Store().
int CommandList::id_to_index | ( | int | id, | |
int | default_index = -1 | |||
) | [static] |
Search a command id.
Return default index if not found.
Definition at line 117 of file commands.cpp.
Referenced by key_green_default_index(), key_red_default_index(), key_yellow_default_index(), and SudokuPlugin::SetupData::parse().
int CommandList::key_green_default_index | ( | ) | [static] |
Default index for the green key.
Definition at line 136 of file commands.cpp.
References SudokuPlugin::Cmd_KeyGreenDefault, and id_to_index().
Referenced by SudokuPlugin::SetupData::parse(), and SudokuPlugin::SetupData::SetupData().
int CommandList::key_red_default_index | ( | ) | [static] |
Default index for the red key.
Definition at line 130 of file commands.cpp.
References SudokuPlugin::Cmd_KeyRedDefault, and id_to_index().
Referenced by SudokuPlugin::SetupData::parse(), and SudokuPlugin::SetupData::SetupData().
int CommandList::key_yellow_default_index | ( | ) | [static] |
Default index for the yellow key.
Definition at line 142 of file commands.cpp.
References SudokuPlugin::Cmd_KeyYellowDefault, and id_to_index().
Referenced by SudokuPlugin::SetupData::parse(), and SudokuPlugin::SetupData::SetupData().
const char * CommandList::text | ( | int | index | ) | [static] |
Translated text of a command.
Definition at line 87 of file commands.cpp.
Referenced by SudokuPlugin::CommandMenu::CommandMenu(), and texts().
const char *const * CommandList::texts | ( | ) | [static] |
List with translated texts of all commands.
Definition at line 108 of file commands.cpp.
References SudokuPlugin::Cmd_Count, count(), list, and text().
Referenced by SudokuPlugin::SetupPage::SetupPage().
struct List SudokuPlugin::CommandList::list[] [static, private] |
Definition at line 42 of file commands.h.
Referenced by command(), count(), id(), id_to_index(), text(), and texts().