![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "shortcuts.h"#include <QDialog>#include <QDialogButtonBox>#include <QGridLayout>#include <QLabel>#include <QLineEdit>#include <QMouseEvent>#include <QScrollArea>#include <QSettings>#include <QWidget>#include <qkeysequenceedit.h>#include <qlineedit.h>#include <qnamespace.h>#include <qshortcut.h>#include <qvariant.h>#include "fc_client.h"#include "hudwidget.h"#include "options.h"#include "page_game.h"#include "views/view_map.h"
Include dependency graph for shortcuts.cpp:Go to the source code of this file.
Enumerations | |
| enum | { RESPONSE_CANCEL , RESPONSE_OK , RESPONSE_APPLY , RESPONSE_RESET , RESPONSE_SAVE } |
Functions | |
| void | real_menus_init () |
| Initialize menus (sensitivity, name, etc.) based on the current state and current ruleset, etc. More... | |
| static QString | button_name (Qt::MouseButton bt) |
| Returns mouse button name. More... | |
| static std::vector< fc_shortcut > | default_shortcuts () |
| Returns the list of default shrotcuts. More... | |
| void | popup_shortcuts_dialog () |
| Popups shortcut dialog. More... | |
Variables | |
| static QHash< int, const char * > | key_map |
| anonymous enum |
| Enumerator | |
|---|---|
| RESPONSE_CANCEL | |
| RESPONSE_OK | |
| RESPONSE_APPLY | |
| RESPONSE_RESET | |
| RESPONSE_SAVE | |
Definition at line 40 of file shortcuts.cpp.
|
static |
Returns mouse button name.
Definition at line 492 of file shortcuts.cpp.
Referenced by fc_shortcut::to_string().
|
static |
Returns the list of default shrotcuts.
Definition at line 51 of file shortcuts.cpp.
Referenced by fc_shortcuts::init_default(), and fc_shortcuts::read().
| void popup_shortcuts_dialog | ( | ) |
Popups shortcut dialog.
Definition at line 737 of file shortcuts.cpp.
Referenced by mr_menu::shortcut_options().
| void real_menus_init | ( | void | ) |
Initialize menus (sensitivity, name, etc.) based on the current state and current ruleset, etc.
Call menus_update().
Definition at line 83 of file menu.cpp.
Referenced by fc_shortcuts_dialog::apply_option().
|
static |
Definition at line 36 of file shortcuts.cpp.