Freeciv-3.3
|
#include <menu.h>
Public Member Functions | |
mr_menu () | |
void | setup_menus () |
void | menus_sensitive () |
void | update_airlift_menu () |
void | update_roads_menu () |
void | update_bases_menu () |
void | set_tile_for_order (struct tile *ptile) |
void | execute_shortcut (int sid) |
QString | shortcut_exist (fc_shortcut *fcs) |
QString | shortcut_2_menustring (int sid) |
Private Member Functions | |
struct tile * | find_last_unit_pos (struct unit *punit, int pos) |
bool | execute_shortcut_inner (const QMenu *m, QKeySequence seq) |
bool | shortcut_exist_inner (const QMenu *m, QKeySequence seq, fc_shortcut *fcs, QString *ret) |
bool | shortcut_2_menustring_inner (const QMenu *m, QKeySequence seq, QString *ret) |
Private Attributes | |
QMenu * | airlift_menu |
QMenu * | bases_menu |
QMenu * | multiplayer_menu |
QMenu * | roads_menu |
QActionGroup * | airlift_type |
QActionGroup * | action_vs_city |
QActionGroup * | action_vs_unit |
QMenu * | action_unit_menu |
QMenu * | action_city_menu |
QMultiHash< munit, QAction * > | menu_list |
qfc_units_list | units_list |
mr_menu::mr_menu | ( | ) |
|
privateslot |
|
privateslot |
|
privateslot |
Prompt to confirm disruptive selection
Definition at line 3903 of file menu.cpp.
Referenced by slot_select_same_continent(), and slot_select_same_everywhere().
|
private |
Inner foreach() loop of mr_menu::execute_shortcut() Implemented as separate function to avoid shadow warnings about internal variables of foreach() inside foreach()
Definition at line 1808 of file menu.cpp.
Referenced by execute_shortcut().
Predicts last unit position
Definition at line 907 of file menu.cpp.
Referenced by slot_execute_orders().
|
privateslot |
Slot for loading new tileset
Definition at line 3664 of file menu.cpp.
Referenced by tileset_custom_load().
|
privateslot |
Invoke dialog with local options
Definition at line 3745 of file menu.cpp.
Referenced by setup_menus().
void mr_menu::menus_sensitive | ( | ) |
|
privateslot |
Invoke dialog with server options
Definition at line 3769 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Invoke popup for quiting game
Definition at line 3785 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Invoke dialog with server options
Definition at line 3761 of file menu.cpp.
Referenced by setup_menus().
void mr_menu::setup_menus | ( | ) |
Initializes menu system, and add custom enum(munit) for most of options Notice that if you set option for QAction->setChecked(option) it will check/uncheck automatically without any intervention
|
private |
Inner foreach() loop of mr_menu::shortcut_2_menustring() Implemented as separate function to avoid shadow warnings about internal variables of foreach() inside foreach()
Definition at line 1890 of file menu.cpp.
Referenced by shortcut_2_menustring().
QString mr_menu::shortcut_exist | ( | fc_shortcut * | fcs | ) |
|
private |
Inner foreach() loop of mr_menu::shortcut_exist() Implemented as separate function to avoid shadow warnings about internal variables of foreach() inside foreach()
Definition at line 1850 of file menu.cpp.
Referenced by shortcut_exist().
|
privateslot |
Invoke dialog with shortcut options
Definition at line 3753 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW ACHIEVEMENTS REPORT"
Definition at line 3496 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for choosing default action vs city
Definition at line 2998 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for choosing default action vs unit
Definition at line 2987 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "GOTO/AIRLIFT TO CITY"
Definition at line 3111 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "Show/Dont battle log"
Definition at line 3257 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "BOARD INTO TRANSPORTER"
Definition at line 3083 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Definition at line 3727 of file menu.cpp.
Referenced by update_bases_menu().
|
privateslot |
|
privateslot |
|
privateslot |
Definition at line 3711 of file menu.cpp.
Referenced by update_roads_menu().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "SHOW CITY PRODUCTION"
Definition at line 3377 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW CITY TRADE ROUTES"
Definition at line 3385 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for clearing trade routes
Definition at line 2924 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "CONNECT WITH IRRIGATION"
Definition at line 2671 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "CONNECT WITH RAILROAD"
Definition at line 2687 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "DEBOARD FROM TRANSPORTED"
Definition at line 3127 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "SHOW DEMOGRAPGHICS REPORT"
Definition at line 3488 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Slot for setting quick airlift
Definition at line 2974 of file menu.cpp.
Referenced by update_airlift_menu().
|
privateslot |
|
privateslot |
Action "RETURN TO NEAREST CITY"
Definition at line 3101 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ALL UNITS ON TILE"
Definition at line 3425 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ONE UNITS/DESELECT OTHERS"
Definition at line 3433 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME UNITS ON CONTINENT"
Definition at line 3441 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE EVERYWHERE"
Definition at line 3451 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE ON TILE"
Definition at line 3461 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for showing cities report
Definition at line 2628 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Slot for showing nations report
Definition at line 2620 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "Show/Dont show new turn info"
Definition at line 3245 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for showing research tab
Definition at line 2576 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "SHOW UNIT STACK SIZE"
Definition at line 3393 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Adds all cities to trade planning
Definition at line 2908 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Adds one city to trade planning
Definition at line 2900 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "GOTO"
Definition at line 3161 of file menu.cpp.
Referenced by execute_shortcut(), and setup_menus().
|
privateslot |
|
privateslot |
Action "UNLOAD ALL UNITS FROM TRANSPORTER"
Definition at line 3137 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "UNSENTRY(WAKEUP) ALL UNITS"
Definition at line 3145 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
void mr_menu::update_airlift_menu | ( | ) |
|
privateslot |
Action "RELOAD ZOOMED IN TILESET"
Definition at line 3301 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RELOAD ZOOMED OUT TILESET"
Definition at line 3344 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RESET ZOOM TO DEFAULT"
Definition at line 3310 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SCALE FONTS WHEN SCALING MAP"
Definition at line 3325 of file menu.cpp.
Referenced by setup_menus().
|
private |
Definition at line 270 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 269 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 267 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 268 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 262 of file menu.h.
Referenced by setup_menus(), and update_airlift_menu().
|
private |
Definition at line 266 of file menu.h.
Referenced by setup_menus(), and update_airlift_menu().
Unit_type_id mr_menu::airlift_type_id |
Definition at line 293 of file menu.h.
Referenced by setup_menus(), slot_quickairlift_set(), and update_airlift_menu().
|
private |
Definition at line 263 of file menu.h.
Referenced by setup_menus(), and update_bases_menu().
QAction* mr_menu::btlog_status |
Definition at line 288 of file menu.h.
Referenced by setup_menus(), and slot_battlelog().
bool mr_menu::delayed_order |
Definition at line 291 of file menu.h.
Referenced by setup_menus(), slot_delayed_goto(), and slot_orders_clear().
QAction* mr_menu::lock_status |
Definition at line 286 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 271 of file menu.h.
Referenced by menus_sensitive(), and setup_menus().
QAction* mr_menu::minimap_status |
Definition at line 284 of file menu.h.
Referenced by setup_menus(), and slot_minimap_view().
|
private |
Definition at line 264 of file menu.h.
Referenced by menus_sensitive(), and setup_menus().
QAction* mr_menu::osd_status |
Definition at line 287 of file menu.h.
Referenced by setup_menus(), and slot_show_new_turn_text().
bool mr_menu::quick_airlifting |
Definition at line 292 of file menu.h.
Referenced by setup_menus(), and slot_quickairlift().
|
private |
Definition at line 265 of file menu.h.
Referenced by setup_menus(), and update_roads_menu().
QAction* mr_menu::scale_fonts_status |
Definition at line 285 of file menu.h.
Referenced by setup_menus(), and zoom_scale_fonts().
|
private |
Definition at line 272 of file menu.h.
Referenced by find_last_unit_pos(), set_tile_for_order(), slot_delayed_goto(), slot_execute_orders(), and slot_orders_clear().