Freeciv-3.3
|
Go to the source code of this file.
void action_button_pressed | ( | int | canvas_x, |
int | canvas_y, | ||
enum quickselect_type | qtype | ||
) |
Do some appropriate action when the "main" mouse button (usually left-click) is pressed. For more sophisticated user control use (or write) a different xxx_button_pressed function.
Definition at line 570 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), button_up_on_map(), finger_up_on_map(), left_butt_down_mapcanvas(), right_butt_down_mapcanvas(), map_view::shortcut_pressed(), and map_view::shortcut_released().
Adjust the position of city workers from the mapview.
Definition at line 597 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), left_butt_down_mapcanvas(), and map_view::shortcut_pressed().
Called when Right Mouse Button is depressed. Record the canvas coordinates of the center of the tile, which may be unreal. This anchor is not the drawing start point, but is used to calculate width, height. Also record the current mapview centering.
Definition at line 87 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), and right_butt_down_mapcanvas().
Return TRUE iff client can end turn.
Definition at line 531 of file mapctrl_common.c.
Referenced by get_turn_done_button_state(), send_turn_done(), and update_turn_done_button_state().
Redraws the selection rectangle after a map flush.
Definition at line 287 of file mapctrl_common.c.
Referenced by enter_goto_state().
Remove hiliting from all tiles, but not from rows in the City List window.
Definition at line 309 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), define_tiles_within_rectangle(), key_cancel_action(), release_right_button(), and right_butt_down_mapcanvas().
Shift-Left-Click on owned city or any visible unit to copy. Returns whether it found anything to try to copy.
Definition at line 379 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), right_butt_down_mapcanvas(), and map_view::shortcut_pressed().
If City tiles are hilited, paste into all those cities. Otherwise paste into the one city under the mouse pointer.
Definition at line 424 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), right_butt_down_mapcanvas(), and map_view::shortcut_pressed().
Fill and sort the list of units on the tile.
Definition at line 769 of file mapctrl_common.c.
Return TRUE iff the turn done button should be enabled.
Definition at line 522 of file mapctrl_common.c.
Referenced by update_turn_done_button_state().
Is city highlighted
Definition at line 301 of file mapctrl_common.c.
Referenced by buy_production_in_selected_cities(), clipboard_paste_production(), and hilite_cities_from_canvas().
The user pressed the overlay-city button (t) while the mouse was at the given canvas position.
Definition at line 359 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), right_butt_down_mapcanvas(), and map_view::shortcut_pressed().
The goto hover state is only activated when the mouse pointer moves beyond the tile where the button was depressed, to avoid mouse typos.
Definition at line 507 of file mapctrl_common.c.
Referenced by mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), map_view::mouseMoveEvent(), move_mapcanvas(), and move_mapcanvas().
Update the goto/patrol line to the given overview canvas location.
Definition at line 697 of file mapctrl_common.c.
Referenced by create_line_at_mouse_pos(), move_overviewcanvas(), and move_overviewcanvas().
Recenter the map on the canvas location, on user request. Usually this is done with a right-click.
Definition at line 633 of file mapctrl_common.c.
Referenced by button_up_on_map(), editor_end_selection_rectangle(), map_view::keyPressEvent(), release_right_button(), and map_view::shortcut_pressed().
Redraws the selection rectangle after a map flush.
Definition at line 277 of file mapctrl_common.c.
Referenced by unqueue_flush().
Goto button has been released. Finish goto.
Definition at line 487 of file mapctrl_common.c.
Referenced by butt_release_mapcanvas(), left_butt_up_mapcanvas(), right_butt_up_mapcanvas(), and map_view::shortcut_released().
Action depends on whether the mouse pointer moved a tile between press and release.
Definition at line 321 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), butt_release_mapcanvas(), right_butt_down_mapcanvas(), and right_butt_up_mapcanvas().
void scroll_mapview | ( | enum direction8 | gui_dir | ) |
Scroll the mapview half a screen in the given direction. This is a GUI direction; i.e., DIR8_NORTH is "up" on the mapview.
Definition at line 552 of file mapctrl_common.c.
Referenced by gui_event_loop(), gui_event_loop(), key_press_map_canvas(), and key_press_map_canvas().
Left Mouse Button in Area Selection mode.
Definition at line 336 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), and left_butt_down_mapcanvas().
Update the goto/patrol line to the given map canvas location.
Definition at line 665 of file mapctrl_common.c.
Referenced by create_line_at_mouse_pos(), main_mouse_motion_handler(), mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), map_view::mouseMoveEvent(), move_mapcanvas(), and move_mapcanvas().
Called when mouse pointer moves and rectangle is active.
Definition at line 201 of file mapctrl_common.c.
Referenced by mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), move_mapcanvas(), move_mapcanvas(), and update_rect_at_mouse_pos().
Update the turn done button state.
Definition at line 647 of file mapctrl_common.c.
Referenced by call_handle_methods(), enqueue_call(), handle_player_info(), handle_start_phase(), handle_thaw_client(), real_set_client_page(), send_turn_done(), and set_client_state().
A newer technology may be available for units. Also called from packhand.c.
Definition at line 469 of file mapctrl_common.c.
Referenced by clipboard_copy_production(), and handle_player_info().
Wakeup sentried units on the tile of the specified location.
Definition at line 585 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), middle_butt_down_mapcanvas(), and map_view::shortcut_pressed().
Definition at line 74 of file mapctrl_common.c.
Referenced by adjust_workers_button_pressed(), and city_packet_common().
|
extern |
Definition at line 70 of file mapctrl_common.c.
Referenced by do_map_click(), key_cancel_action(), maybe_activate_keyboardless_goto(), release_goto_button(), and map_view::shortcut_released().
|
extern |
Definition at line 69 of file mapctrl_common.c.
Referenced by do_map_click(), key_cancel_action(), mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), map_view::mouseMoveEvent(), move_mapcanvas(), move_mapcanvas(), and release_goto_button().
Definition at line 71 of file mapctrl_common.c.
Referenced by do_map_click(), key_cancel_action(), maybe_activate_keyboardless_goto(), and release_goto_button().
|
extern |
Definition at line 55 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), butt_release_mapcanvas(), cancel_selection_rectangle(), mouse_scroll_mapcanvas(), mouse_scroll_mapcanvas(), move_mapcanvas(), move_mapcanvas(), release_right_button(), right_butt_down_mapcanvas(), and right_butt_up_mapcanvas().
|
extern |
Definition at line 56 of file mapctrl_common.c.
Referenced by base_set_mapview_origin(), butt_down_mapcanvas(), cancel_selection_rectangle(), redraw_selection_rectangle(), release_right_button(), right_butt_down_mapcanvas(), and update_selection_rectangle().
|
extern |
Definition at line 60 of file mapctrl_common.c.
Referenced by butt_down_mapcanvas(), cancel_tile_hiliting(), clipboard_paste_production(), define_tiles_within_rectangle(), key_press_map_canvas(), key_press_map_canvas(), left_butt_down_mapcanvas(), and toggle_tile_hilite().