Freeciv-3.1
|
#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) |
Data Fields | |
QAction * | minimap_status |
QAction * | scale_fonts_status |
QAction * | lock_status |
QAction * | osd_status |
QAction * | btlog_status |
QAction * | chat_status |
QAction * | messages_status |
bool | delayed_order |
bool | quick_airlifting |
Unit_type_id | airlift_type_id |
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 3890 of file menu.cpp.
Referenced by slot_select_same_continent(), and slot_select_same_everywhere().
void mr_menu::execute_shortcut | ( | int | sid | ) |
|
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 1799 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 3651 of file menu.cpp.
Referenced by tileset_custom_load().
|
privateslot |
Invoke dialog with local options
Definition at line 3732 of file menu.cpp.
Referenced by setup_menus().
void mr_menu::menus_sensitive | ( | ) |
|
privateslot |
Invoke dialog with server options
Definition at line 3756 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Invoke popup for quiting game
Definition at line 3772 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Invoke dialog with server options
Definition at line 3748 of file menu.cpp.
Referenced by setup_menus().
void mr_menu::set_tile_for_order | ( | struct tile * | ptile | ) |
void mr_menu::setup_menus | ( | ) |
QString mr_menu::shortcut_2_menustring | ( | int | sid | ) |
|
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 1881 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 1841 of file menu.cpp.
Referenced by shortcut_exist().
|
privateslot |
Invoke dialog with shortcut options
Definition at line 3740 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW ACHIEVEMENTS REPORT"
Definition at line 3483 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for choosing default action vs city
Definition at line 2985 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for choosing default action vs unit
Definition at line 2974 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "GOTO/AIRLIFT TO CITY"
Definition at line 3098 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "Show/Dont battle log"
Definition at line 3244 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 3070 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Definition at line 3714 of file menu.cpp.
Referenced by update_bases_menu().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Definition at line 3698 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 3365 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW CITY TRADE ROUTES"
Definition at line 3373 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "CLEAN POLLUTION and PARADROP"
Definition at line 2648 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for clearing trade routes
Definition at line 2911 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "CONNECT WITH IRRIGATION"
Definition at line 2670 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "CONNECT WITH RAILROAD"
Definition at line 2686 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "DEBOARD FROM TRANSPORTED"
Definition at line 3114 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Action "SHOW DEMOGRAPGHICS REPORT"
Definition at line 3475 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 2961 of file menu.cpp.
Referenced by update_airlift_menu().
|
privateslot |
|
privateslot |
Action "RETURN TO NEAREST CITY"
Definition at line 3088 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ALL UNITS ON TILE"
Definition at line 3413 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT ONE UNITS/DESELECT OTHERS"
Definition at line 3421 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME UNITS ON CONTINENT"
Definition at line 3429 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE EVERYWHERE"
Definition at line 3439 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SELECT SAME TYPE ON TILE"
Definition at line 3449 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
Slot for showing cities report
Definition at line 2614 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Slot for showing nations report
Definition at line 2606 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "Show/Dont show new turn info"
Definition at line 3232 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Slot for showing research tab
Definition at line 2564 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
Action "SHOW UNIT STACK SIZE"
Definition at line 3381 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SHOW TOP FIVE CITIES"
Definition at line 3499 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Adds all cities to trade planning
Definition at line 2895 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Adds one city to trade planning
Definition at line 2887 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Action "GOTO"
Definition at line 3148 of file menu.cpp.
Referenced by execute_shortcut(), and setup_menus().
|
privateslot |
|
privateslot |
Action "UNLOAD ALL UNITS FROM TRANSPORTER"
Definition at line 3124 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "UNSENTRY(WAKEUP) ALL UNITS"
Definition at line 3132 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 3288 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RELOAD ZOOMED OUT TILESET"
Definition at line 3332 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "RESET ZOOM TO DEFAULT"
Definition at line 3297 of file menu.cpp.
Referenced by setup_menus().
|
privateslot |
Action "SCALE FONTS WHEN SCALING MAP"
Definition at line 3312 of file menu.cpp.
Referenced by setup_menus().
|
private |
Definition at line 269 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 266 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 261 of file menu.h.
Referenced by setup_menus(), and update_airlift_menu().
|
private |
Definition at line 265 of file menu.h.
Referenced by setup_menus(), and update_airlift_menu().
Unit_type_id mr_menu::airlift_type_id |
Definition at line 292 of file menu.h.
Referenced by setup_menus(), slot_quickairlift_set(), and update_airlift_menu().
|
private |
Definition at line 262 of file menu.h.
Referenced by setup_menus(), and update_bases_menu().
QAction* mr_menu::btlog_status |
Definition at line 287 of file menu.h.
Referenced by setup_menus(), and slot_battlelog().
bool mr_menu::delayed_order |
Definition at line 290 of file menu.h.
Referenced by setup_menus(), slot_delayed_goto(), and slot_orders_clear().
QAction* mr_menu::lock_status |
Definition at line 285 of file menu.h.
Referenced by setup_menus().
|
private |
Definition at line 270 of file menu.h.
Referenced by menus_sensitive(), and setup_menus().
QAction* mr_menu::minimap_status |
Definition at line 283 of file menu.h.
Referenced by setup_menus(), and slot_minimap_view().
|
private |
Definition at line 263 of file menu.h.
Referenced by menus_sensitive(), and setup_menus().
QAction* mr_menu::osd_status |
Definition at line 286 of file menu.h.
Referenced by setup_menus(), and slot_show_new_turn_text().
bool mr_menu::quick_airlifting |
Definition at line 291 of file menu.h.
Referenced by setup_menus(), and slot_quickairlift().
|
private |
Definition at line 264 of file menu.h.
Referenced by setup_menus(), and update_roads_menu().
QAction* mr_menu::scale_fonts_status |
Definition at line 284 of file menu.h.
Referenced by setup_menus(), and zoom_scale_fonts().
|
private |
Definition at line 271 of file menu.h.
Referenced by find_last_unit_pos(), set_tile_for_order(), slot_delayed_goto(), slot_execute_orders(), and slot_orders_clear().