Freeciv21
Develop your civilization from humble roots to a global empire
shortcuts.cpp File Reference
#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_shortcutdefault_shortcuts ()
 Returns the list of default shrotcuts. More...
 
void popup_shortcuts_dialog ()
 Popups shortcut dialog. More...
 

Variables

static QHash< int, const char * > key_map
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RESPONSE_CANCEL 
RESPONSE_OK 
RESPONSE_APPLY 
RESPONSE_RESET 
RESPONSE_SAVE 

Definition at line 40 of file shortcuts.cpp.

Function Documentation

◆ button_name()

QString button_name ( Qt::MouseButton  bt)
static

Returns mouse button name.

Definition at line 492 of file shortcuts.cpp.

Referenced by fc_shortcut::to_string().

◆ default_shortcuts()

static std::vector<fc_shortcut> default_shortcuts ( )
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().

◆ popup_shortcuts_dialog()

void popup_shortcuts_dialog ( )

Popups shortcut dialog.

Definition at line 737 of file shortcuts.cpp.

Referenced by mr_menu::shortcut_options().

◆ real_menus_init()

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().

Variable Documentation

◆ key_map

QHash<int, const char *> key_map
static

Definition at line 36 of file shortcuts.cpp.