59#define MAX_DIRTY_RECTS 20
93 ||
gui()->trade_gen.cities.empty()) {
115 if (
qgilles.autocaravan !=
nullptr) {
120 pen.setStyle(Qt::DashLine);
121 pen.setDashOffset(4);
138 foreach (
pcity,
gui()->trade_gen.virtual_cities) {
223 i =
static_cast<int>(
ct);
233 if (
gui()->infotab->underMouse()
234 ||
gui()->minimapview_wdg->underMouse()
235 ||
gui()->sidebar_wdg->underMouse()) {
312 }
else if (pos_x > 0 && pos_y > 10) {
314 }
else if (pos_y > 0) {
316 }
else if (pos_x + wdth + 4 < this->
width()) {
317 new_pos_x = pos_x + 5;
336 if (recursive_nr >= 1000) {
352 if (
x == 0 &&
y ==0) {
409 if (!
gui()->interface_locked) {
419 if (!
gui()->interface_locked) {
456 if (
gui()->interface_locked) {
475 if (
gui()->interface_locked) {
512 if (
gui()->interface_locked) {
515 if (
event->button() == Qt::LeftButton) {
636 ::gui()->menu_bar->minimap_status->setChecked(
false);
653 event->setAccepted(
true);
678 for (
i = 0;
i < 4;
i++) {
683 for (
i = 0;
i < 4;
i++) {
768 scale = scale_factor;
782 int delta_x, delta_y;
815 Qt::IgnoreAspectRatio, Qt::FastTransformation);
819 Qt::IgnoreAspectRatio, Qt::FastTransformation);
869 size =
event->size();
872 &&
size.height() > 0) {
875 gui()->qt_settings.minimap_width =
static_cast<float>(
size.width())
877 gui()->qt_settings.minimap_height =
static_cast<float>(
size.height())
888 if (
event->angleDelta().y() > 0) {
925 if (
event->button() == Qt::LeftButton) {
926 if (
gui()->interface_locked) {
932 if (
event->button() == Qt::RightButton) {
934 fx =
event->pos().x();
935 fy =
event->pos().y();
950 event->setAccepted(
true);
958 if (
gui()->interface_locked) {
962 if (
event->buttons() & Qt::LeftButton) {
970 gui()->qt_settings.minimap_x =
static_cast<float>(p.x()) /
mapview.
width;
971 gui()->qt_settings.minimap_y =
static_cast<float>(p.y())
992 gui()->update_info_label();
1068 if (
gui()->unitinfo_wdg->isVisible()) {
1069 gui()->unitinfo_wdg->update_actions(
nullptr);
1089 gui()->sw_endturn->update_final_pixmap();
1115 gui()->sw_indicators->update_final_pixmap();
1123 gui()->minimapview_wdg->update_image();
1179 gui()->mapview_wdg->height());
1198 gui()->mapview_wdg->update();
1207 gui()->mapview_wdg->update();
1273 if (
gui()->is_repo_dlg_open(
"SCI")) {
1274 i =
gui()->gimme_index_of(
"SCI");
1276 w =
gui()->game_tab_widget->widget(
i);
1304 gui()->minimapview_wdg->resize(0, 0);
1305 gui()->minimapview_wdg->move(
gui()->qt_settings.minimap_x
1307 gui()->qt_settings.minimap_y
1309 gui()->minimapview_wdg->resize(
gui()->qt_settings.minimap_width
1311 gui()->qt_settings.minimap_height
const char * calendar_text(void)
void image_copy(QImage *dest, QImage *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
void pixmap_copy(QPixmap *dest, QPixmap *src, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
struct canvas int int struct sprite int int int int height
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
struct canvas int int canvas_y
struct canvas int canvas_x
struct canvas int int struct sprite int int int width
void update_sidebar_tooltips()
fc_sidewidget * sw_economy
enum client_pages current_page()
QTimer * update_info_timer
static fc_font * instance()
QFont * get_font(QString name)
QPixmap * get_pixmap(const QString &id)
static fc_icons * instance()
void update_font(const QString &name, const QFont &font)
info_tile(struct tile *ptile, QWidget *parent=0)
void paintEvent(QPaintEvent *event)
void paint(QPainter *painter, QPaintEvent *event)
void leaveEvent(QEvent *event)
void paintEvent(QPaintEvent *event)
void find_place(int pos_x, int pos_y, int &w, int &h, int wdth, int hght, int recursive_nr)
void update_cursor(enum cursor_type)
void update_font(const QString &name, const QFont &font)
void resume_searching(int pos_x, int pos_y, int &w, int &h, int wdth, int hght, int recursive_nr)
void paint(QPainter *painter, QPaintEvent *event)
void focusOutEvent(QFocusEvent *event)
void rendered_image(const QImage &image)
minimap_thread(QObject *parent=0)
void render(double scale_factor, int width, int height)
void run() Q_DECL_OVERRIDE
void update_pixmap(const QImage &image)
void paintEvent(QPaintEvent *event)
void mouseMoveEvent(QMouseEvent *event)
void paint(QPainter *painter, QPaintEvent *event)
void showEvent(QShowEvent *event)
void mouseReleaseEvent(QMouseEvent *event)
void resizeEvent(QResizeEvent *event)
minimap_view(QWidget *parent)
void mousePressEvent(QMouseEvent *event)
void scale_point(int &x, int &y)
void wheelEvent(QWheelEvent *event)
virtual void update_menu()
void moveEvent(QMoveEvent *event)
void draw_viewport(QPainter *painter)
void scale(double factor)
QQueue< call_me_back * > callback_list
void add_callback(call_me_back *cb)
bool can_client_control(void)
enum client_states client_state(void)
struct sprite * client_warming_sprite(void)
struct sprite * client_cooling_sprite(void)
struct sprite * client_research_sprite(void)
struct sprite * client_government_sprite(void)
struct color * get_color(const struct tileset *t, enum color_std stdcolor)
struct unit_list * get_units_in_focus(void)
struct unit * head_of_units_in_focus(void)
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit int const struct action *paction struct unit struct city * pcity
bool get_turn_done_button_state()
GdkCursor * fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES]
void set_indicator_icons(struct sprite *bulb, struct sprite *sol, struct sprite *flake, struct sprite *gov)
#define mevent_gpos(__ev__)
void unscale_point(double scale_factor, int &x, int &y)
bool is_point_in_area(int x, int y, int px, int py, int pxe, int pye)
void draw_calculated_trade_routes(QPainter *painter)
#define fc_assert(condition)
struct tile * map_pos_to_tile(const struct civ_map *nmap, int map_x, int map_y)
void base_map_distance_vector(int *dx, int *dy, int x0dv, int y0dv, int x1dv, int y1dv)
#define current_wrap_has_flag(flag)
void update_info_label(void)
void update_turn_done_button(bool do_restore)
void tileset_changed(void)
void put_cross_overlay_tile(struct tile *ptile)
void draw_selection_rectangle(int canvas_x, int canvas_y, int w, int h)
static void flush_mapcanvas(int canvas_x, int canvas_y, int pixel_width, int pixel_height)
void update_map_canvas_scrollbars_size(void)
void get_overview_area_dimensions(int *width, int *height)
void mapview_freeze(void)
int last_center_player_city
void update_overview_scroll_window_pos(int x, int y)
void update_city_descriptions(void)
void unscale_point(double scale_factor, int &x, int &y)
void pixmap_put_overlay_tile(int canvas_x, int canvas_y, struct sprite *ssprite)
void qtg_update_timeout_label(void)
void update_map_canvas_scrollbars(void)
bool mapview_is_frozen(void)
int last_center_enemy_city
void overview_size_changed(void)
void qtg_map_canvas_size_refresh(void)
bool is_point_in_area(int x, int y, int px, int py, int pxe, int pye)
void draw_calculated_trade_routes(QPainter *painter)
void update_unit_info_label(struct unit_list *punitlist)
static int mapview_frozen_level
struct canvas * get_overview_window(void)
static int num_dirty_rects
const char * get_timeout_label_text()
static QRect dirty_rects[MAX_DIRTY_RECTS]
void update_mouse_cursor(enum cursor_type new_cursor_type)
void set_indicator_icons(struct sprite *bulb, struct sprite *sol, struct sprite *flake, struct sprite *gov)
void destroy_city_dialog()
static void gui_to_overview(int *ovr_x, int *ovr_y, int gui_x, int gui_y)
void update_map_canvas_visible(void)
void map_to_gui_vector(const struct tileset *t, float zoom, float *gui_dx, float *gui_dy, int map_dx, int map_dy)
void center_tile_mapcanvas(const struct tile *ptile)
bool tile_to_canvas_pos(float *canvas_x, float *canvas_y, float zoom, const struct tile *ptile)
const char *const city_productions
const char *const notify_label
const char *const city_names
struct client_options gui_options
void overview_to_map_pos(int *map_x, int *map_y, int overview_x, int overview_y)
int player_get_expected_income(const struct player *pplayer)
#define FC_WRAP(value, range)
struct sprite int int int int struct sprite int int float scale
void(* callback)(void *data)
struct packet_game_info info
bool draw_city_trade_routes
struct player_economic economic
const char * popup_info_text(struct tile *ptile)
struct city * tile_city(const struct tile *ptile)
struct sprite * get_attention_crosshair_sprite(const struct tileset *t)
bool tileset_is_isometric(const struct tileset *t)
int tileset_tile_height(const struct tileset *t)
int tileset_tile_width(const struct tileset *t)
#define NUM_CURSOR_FRAMES
bool have_cities_trade_route(const struct city *pc1, const struct city *pc2)
#define MAP_NATURAL_HEIGHT
#define MAP_NATURAL_WIDTH