#include <gtk/gtk.h>
#include "fcintl.h"
#include "support.h"
#include "combat.h"
#include "game.h"
#include "map.h"
#include "player.h"
#include "unit.h"
#include "overview_common.h"
#include "client_main.h"
#include "climap.h"
#include "climisc.h"
#include "control.h"
#include "editor.h"
#include "tilespec.h"
#include "text.h"
#include "zoom.h"
#include "cma_core.h"
#include "chatline.h"
#include "citydlg.h"
#include "colors.h"
#include "dialogs.h"
#include "editgui.h"
#include "graphics.h"
#include "gui_main.h"
#include "infradlg.h"
#include "inputdlg.h"
#include "mapview.h"
#include "menu.h"
#include "rallypointdlg.h"
#include "mapctrl.h"
Go to the source code of this file.
|
static void | popit (struct tile *ptile) |
|
void | popupinfo_popdown_callback (GtkWidget *w, gpointer data) |
|
static void | name_new_city_popup_callback (gpointer data, gint response, const char *input) |
|
void | popup_newcity_dialog (struct unit *punit, const char *suggestname) |
|
void | set_turn_done_button_state (bool state) |
|
gboolean | left_butt_up_mapcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
gboolean | right_butt_up_mapcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
gboolean | left_butt_down_mapcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
gboolean | right_butt_down_mapcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
gboolean | middle_butt_down_mapcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
void | create_line_at_mouse_pos (void) |
|
void | update_rect_at_mouse_pos (void) |
|
gboolean | move_mapcanvas (GtkEventControllerMotion *controller, gdouble x, gdouble y, gpointer data) |
|
gboolean | leave_mapcanvas (GtkEventControllerMotion *controller, gpointer data) |
|
gboolean | move_overviewcanvas (GtkEventControllerMotion *controller, gdouble x, gdouble y, gpointer data) |
|
gboolean | left_butt_down_overviewcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
gboolean | right_butt_down_overviewcanvas (GtkGestureClick *gesture, int n_press, double x, double y, gpointer data) |
|
void | center_on_unit (void) |
|
◆ center_on_unit()
Best effort to center the map on the currently selected unit(s)
Definition at line 520 of file mapctrl.c.
◆ create_line_at_mouse_pos()
Update goto line so that destination is at current mouse pointer location.
Definition at line 364 of file mapctrl.c.
◆ leave_mapcanvas()
This function will reset the mouse cursor if it leaves the map.
Definition at line 451 of file mapctrl.c.
◆ left_butt_down_mapcanvas()
Handle all left mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 206 of file mapctrl.c.
◆ left_butt_down_overviewcanvas()
Left button pressed at overview
Definition at line 474 of file mapctrl.c.
◆ left_butt_up_mapcanvas()
Handle 'Left mouse button released'. Because of the quickselect feature, the release of both left and right mousebutton can launch the goto.
Definition at line 164 of file mapctrl.c.
◆ middle_butt_down_mapcanvas()
Handle all middle mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 330 of file mapctrl.c.
◆ move_mapcanvas()
Triggered by the mouse moving on the mapcanvas, this function will update the mouse cursor and goto lines.
Definition at line 418 of file mapctrl.c.
◆ move_overviewcanvas()
Overview canvas moved
Definition at line 463 of file mapctrl.c.
◆ name_new_city_popup_callback()
Callback from city name dialog for new city.
Definition at line 119 of file mapctrl.c.
◆ popit()
Popup a label with information about the tile, unit, city, when the user used the middle mouse button on the map.
Definition at line 68 of file mapctrl.c.
◆ popup_newcity_dialog()
Popup dialog where the user choose the name of the new city punit = (settler) unit which builds the city suggestname = suggestion of the new city's name
Definition at line 140 of file mapctrl.c.
◆ popupinfo_popdown_callback()
Information label destruction requested
Definition at line 110 of file mapctrl.c.
◆ right_butt_down_mapcanvas()
Handle all right mouse button presses on canvas. Future feature: User-configurable mouse clicks.
Definition at line 261 of file mapctrl.c.
◆ right_butt_down_overviewcanvas()
Right button pressed at overview
Definition at line 499 of file mapctrl.c.
◆ right_butt_up_mapcanvas()
Handle 'Right mouse button released'. Because of the quickselect feature, the release of both left and right mousebutton can launch the goto.
Definition at line 181 of file mapctrl.c.
◆ set_turn_done_button_state()
void set_turn_done_button_state |
( |
bool |
state | ) |
|
Enable or disable the turn done button. Should probably some where else.
Definition at line 153 of file mapctrl.c.
◆ update_rect_at_mouse_pos()
◆ cur_x
◆ cur_y