#include "mapgridctrl.h"#include "springunitsync.h"#include <wx/bitmap.h>#include <wx/image.h>#include <wx/panel.h>#include "settings.h"#include "uiutils.h"#include "utils/debug.h"#include "utils/conversion.h"#include <wx/dcbuffer.h>#include <wx/geometry.h>#include <wx/settings.h>#include <algorithm>#include <wx/log.h>

Go to the source code of this file.
Defines | |
| #define | CMP(var) |
| #define | CMP2(a, b) |
Functions | |
| static double | AspectRatio (const MapInfo &x) |
Variables | |
| const int | MINIMAP_SIZE = 98 |
| Size of the map previews. | |
| const int | MINIMAP_MARGIN = 1 |
| Margin between the map previews, in pixels. | |
| const int | MAX_MINIMAP_FETCHES = 2 |
| Maximum minimap fetches in WorkerThread queue (these will still be executed after control is destroyed). | |
| const int | MAX_MAPINFO_FETCHES = 5 |
| Maximum mapinfo fetches in WorkerThread queue. | |
| #define CMP | ( | var | ) |
if ( a->info.var < b->info.var ) return -1; \ if ( a->info.var > b->info.var ) return 1; \ return 0
Definition at line 84 of file mapgridctrl.cpp.
| #define CMP2 | ( | a, | |||
| b | ) |
if ( (a) < (b) ) return -1; \ if ( (a) > (b) ) return 1; \ return 0
Definition at line 89 of file mapgridctrl.cpp.
| static double AspectRatio | ( | const MapInfo & | x | ) | [inline, static] |
Definition at line 130 of file mapgridctrl.cpp.
| const int MAX_MAPINFO_FETCHES = 5 |
Maximum mapinfo fetches in WorkerThread queue.
Definition at line 30 of file mapgridctrl.cpp.
| const int MAX_MINIMAP_FETCHES = 2 |
Maximum minimap fetches in WorkerThread queue (these will still be executed after control is destroyed).
Definition at line 28 of file mapgridctrl.cpp.
| const int MINIMAP_MARGIN = 1 |
Margin between the map previews, in pixels.
Definition at line 24 of file mapgridctrl.cpp.
| const int MINIMAP_SIZE = 98 |
Size of the map previews.
This should be same as size of map previews in battle list and as prefetch size in SpringUnitSync for performance reasons.
Definition at line 21 of file mapgridctrl.cpp.
1.6.3