Freeciv-3.2
|
#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 3896 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 1806 of file menu.cpp.
Referenced by execute_shortcut().
Predicts last unit position
Definition at line 905 of file menu.cpp.
Referenced by slot_execute_orders().
|
privateslot |
Slot for loading new tileset
Definition at line 3657 of file menu.cpp.
Referenced by tileset_custom_load().
|
privateslot |
Invoke dialog with local options
Definition at line 3738 of file menu.cpp.
Referenced by setup_menus().
void mr_menu::menus_sensitive | ( | ) |
|
privateslot |
Invoke dialog with server options
Definition at line 3762 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Invoke popup for quiting game
Definition at line 3778 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Invoke dialog with server options
Definition at line 3754 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 1888 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 1848 of file menu.cpp.
Referenced by shortcut_exist().
|
privateslot |
Invoke dialog with shortcut options
Definition at line 3746 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW ACHIEVEMENTS REPORT"
Definition at line 3489 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for choosing default action vs city
Definition at line 2991 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for choosing default action vs unit
Definition at line 2980 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "GOTO/AIRLIFT TO CITY"
Definition at line 3104 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "Show/Dont battle log"
Definition at line 3250 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 3076 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Definition at line 3720 of file menu.cpp.
Referenced by update_bases_menu().
|
privateslot |
|
privateslot |
|
privateslot |
Definition at line 3704 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 3370 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW CITY TRADE ROUTES"
Definition at line 3378 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for clearing trade routes
Definition at line 2917 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "CONNECT WITH IRRIGATION"
Definition at line 2664 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "CONNECT WITH RAILROAD"
Definition at line 2680 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "DEBOARD FROM TRANSPORTED"
Definition at line 3120 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "SHOW DEMOGRAPGHICS REPORT"
Definition at line 3481 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 2967 of file menu.cpp.
Referenced by update_airlift_menu().
|
privateslot |
|
privateslot |
Action "RETURN TO NEAREST CITY"
Definition at line 3094 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ALL UNITS ON TILE"
Definition at line 3418 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ONE UNITS/DESELECT OTHERS"
Definition at line 3426 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME UNITS ON CONTINENT"
Definition at line 3434 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE EVERYWHERE"
Definition at line 3444 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE ON TILE"
Definition at line 3454 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for showing cities report
Definition at line 2621 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Slot for showing nations report
Definition at line 2613 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "Show/Dont show new turn info"
Definition at line 3238 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for showing research tab
Definition at line 2571 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "SHOW UNIT STACK SIZE"
Definition at line 3386 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Adds all cities to trade planning
Definition at line 2901 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Adds one city to trade planning
Definition at line 2893 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "GOTO"
Definition at line 3154 of file menu.cpp.
Referenced by execute_shortcut(), and setup_menus().
|
privateslot |
|
privateslot |
Action "UNLOAD ALL UNITS FROM TRANSPORTER"
Definition at line 3130 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "UNSENTRY(WAKEUP) ALL UNITS"
Definition at line 3138 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 3294 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RELOAD ZOOMED OUT TILESET"
Definition at line 3337 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RESET ZOOM TO DEFAULT"
Definition at line 3303 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SCALE FONTS WHEN SCALING MAP"
Definition at line 3318 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().