Freeciv-3.3
|
#include <shortcuts.h>
Public Member Functions | |
~fc_shortcuts () | |
fc_shortcut * | get_shortcut (shortcut_id id) |
shortcut_id | get_id (fc_shortcut *sc) |
void | set_shortcut (fc_shortcut *sc) |
QString | get_desc (shortcut_id id) |
Static Public Member Functions | |
static fc_shortcuts * | sc () |
static bool | is_instantiated () |
static void | drop () |
static void | init_default (bool read) |
Static Public Attributes | |
static QMap< shortcut_id, fc_shortcut * > | hash = QMap<shortcut_id, fc_shortcut*>() |
Private Member Functions | |
Q_DISABLE_COPY (fc_shortcuts) | |
fc_shortcuts () | |
Static Private Attributes | |
static fc_shortcuts * | m_instance = 0 |
Definition at line 119 of file shortcuts.h.
|
private |
fc_shortcuts::~fc_shortcuts | ( | ) |
fc_shortcuts destructor
Definition at line 216 of file shortcuts.cpp.
|
static |
Deletes current instance
Definition at line 267 of file shortcuts.cpp.
QString fc_shortcuts::get_desc | ( | shortcut_id | id | ) |
Returns description for given shortcut
Definition at line 226 of file shortcuts.cpp.
Referenced by fc_shortcut_popup::check_if_exist(), and fc_shortcuts_dialog::init().
shortcut_id fc_shortcuts::get_id | ( | fc_shortcut * | sc | ) |
Returns id for given shortcut
Definition at line 246 of file shortcuts.cpp.
Referenced by fc_shortcuts_dialog::init().
fc_shortcut * fc_shortcuts::get_shortcut | ( | shortcut_id | id | ) |
Returns shortcut for given id
Definition at line 236 of file shortcuts.cpp.
Referenced by mr_menu::execute_shortcut(), mr_menu::shortcut_2_menustring(), map_view::shortcut_pressed(), and map_view::shortcut_released().
Inits defaults shortcuts or reads from settings
Definition at line 299 of file shortcuts.cpp.
Referenced by fc_shortcuts_dialog::apply_option(), and fc_shortcuts().
|
static |
Check, without instantiating it in the process, if shortcuts system has been instantiated already.
Definition at line 291 of file shortcuts.cpp.
Referenced by write_shortcuts().
|
private |
|
static |
Returns given instance
Definition at line 278 of file shortcuts.cpp.
Referenced by fc_shortcuts_dialog::apply_option(), fc_shortcut_popup::check_if_exist(), fc_shortcut_popup::closeEvent(), mr_menu::execute_shortcut(), get_id(), fc_shortcuts_dialog::init(), set_shortcut(), mr_menu::setup_menus(), mr_menu::shortcut_2_menustring(), map_view::shortcut_pressed(), map_view::shortcut_released(), and fc_client::~fc_client().
void fc_shortcuts::set_shortcut | ( | fc_shortcut * | s | ) |
Sets given shortcut
Definition at line 254 of file shortcuts.cpp.
Referenced by fc_shortcut_popup::closeEvent().
|
static |
Definition at line 130 of file shortcuts.h.
Referenced by fc_shortcuts_dialog::apply_option(), fc_shortcuts_dialog::fc_shortcuts_dialog(), get_desc(), get_id(), get_shortcut(), init_default(), read_shortcuts(), set_shortcut(), write_shortcuts(), and ~fc_shortcuts().
|
staticprivate |
Definition at line 123 of file shortcuts.h.
Referenced by drop(), is_instantiated(), and sc().