Freeciv21
Develop your civilization from humble roots to a global empire
view_map.h File Reference
#include <QFrame>
#include <QLabel>
#include <QPointer>
#include <QPropertyAnimation>
#include <QQueue>
#include <QThread>
#include <QTimer>
#include "shortcuts.h"
#include "tileset/tilespec.h"
#include "tileset_debugger.h"
+ Include dependency graph for view_map.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  map_view
 
class  info_tile
 

Namespaces

 freeciv
 

Functions

bool is_point_in_area (int x, int y, int px, int py, int pxe, int pye)
 
void draw_calculated_trade_routes (QPainter *painter)
 Draws calculated trade routes. More...
 
void popdown_tile_info ()
 Popdowns information label tile. More...
 
void popup_tile_info (struct tile *ptile)
 Popups information label tile. More...
 
bool mapview_is_frozen ()
 Return whether the map should be drawn or not. More...
 
void show_city_desc (QPixmap *pcanvas, int canvas_x, int canvas_y, struct city *pcity, int *width, int *height)
 Draw a description for the given city. More...
 

Function Documentation

◆ draw_calculated_trade_routes()

void draw_calculated_trade_routes ( QPainter *  painter)

Draws calculated trade routes.

Definition at line 65 of file view_map.cpp.

Referenced by map_view::paintEvent().

◆ is_point_in_area()

bool is_point_in_area ( int  x,
int  y,
int  px,
int  py,
int  pxe,
int  pye 
)

◆ mapview_is_frozen()

bool mapview_is_frozen ( )

Return whether the map should be drawn or not.

Definition at line 607 of file view_map.cpp.

Referenced by dirty_all(), dirty_rect(), and flush_dirty().

◆ popdown_tile_info()

void popdown_tile_info ( )

Popdowns information label tile.

Definition at line 702 of file view_map.cpp.

Referenced by map_view::shortcut_released().

◆ popup_tile_info()

void popup_tile_info ( struct tile ptile)

Popups information label tile.

Definition at line 682 of file view_map.cpp.

Referenced by map_view::shortcut_pressed().

◆ show_city_desc()

void show_city_desc ( QPixmap *  pcanvas,
int  canvas_x,
int  canvas_y,
struct city pcity,
int *  width,
int *  height 
)

Draw a description for the given city.

This description may include the name, turns-to-grow, production, and city turns-to-build (depending on client options).

(canvas_x, canvas_y) gives the location on the given canvas at which to draw the description. This is the location of the city itself so the text must be drawn underneath it. pcity gives the city to be drawn, while (*width, *height) should be set by show_city_desc to contain the width and height of the text block (centered directly underneath the city's tile).

Definition at line 733 of file view_map.cpp.