![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <shortcuts.h>
Public Types | |
| enum | type_id { keyboard , mouse } |
Public Member Functions | |
| QString | to_string () const |
| Returns shortcut as string (eg. More... | |
| bool | conflicts (const fc_shortcut &other) const |
| bool | is_valid () const |
| Checks if the shortcut can be used. More... | |
Public Attributes | |
| shortcut_id | id |
| type_id | type |
| QKeySequence | keys |
| Qt::MouseButton | buttons |
| Qt::KeyboardModifiers | modifiers |
| QString | str |
Definition at line 100 of file shortcuts.h.
| enum fc_shortcut::type_id |
| Enumerator | |
|---|---|
| keyboard | |
| mouse | |
Definition at line 101 of file shortcuts.h.
|
inline |
Definition at line 114 of file shortcuts.h.
Referenced by fc_shortcuts_dialog::shortcut_exists().
| bool fc_shortcut::is_valid | ( | ) | const |
Checks if the shortcut can be used.
Definition at line 215 of file shortcuts.cpp.
| QString fc_shortcut::to_string | ( | ) | const |
Returns shortcut as string (eg.
for menu)
Definition at line 197 of file shortcuts.cpp.
Referenced by shortcut_edit::eventFilter(), shortcut_edit::set_shortcut(), and shortcut_edit::shortcut_edit().
| Qt::MouseButton fc_shortcut::buttons |
Definition at line 107 of file shortcuts.h.
Referenced by conflicts(), shortcut_edit::eventFilter(), is_valid(), and to_string().
| shortcut_id fc_shortcut::id |
Definition at line 103 of file shortcuts.h.
Referenced by fc_shortcuts::set_shortcut().
| QKeySequence fc_shortcut::keys |
Definition at line 106 of file shortcuts.h.
Referenced by conflicts(), shortcut_edit::eventFilter(), is_valid(), shortcut_edit::set_shortcut(), shortcut_edit::shortcut(), mr_menu::shortcut_exists(), and to_string().
| Qt::KeyboardModifiers fc_shortcut::modifiers |
Definition at line 108 of file shortcuts.h.
Referenced by conflicts(), shortcut_edit::eventFilter(), and to_string().
| QString fc_shortcut::str |
Definition at line 110 of file shortcuts.h.
Referenced by fc_shortcuts_dialog::add_option().
| type_id fc_shortcut::type |
Definition at line 105 of file shortcuts.h.
Referenced by conflicts(), shortcut_edit::eventFilter(), is_valid(), shortcut_edit::set_shortcut(), shortcut_edit::shortcut(), mr_menu::shortcut_exists(), and to_string().