2019-07-02 14:57:10 -07:00
|
|
|
#include "tycho.h"
|
|
|
|
|
2019-07-03 20:17:04 -07:00
|
|
|
MapView::MapView(Project *parent) :
|
2019-07-05 20:21:11 -07:00
|
|
|
IMapView(parent),
|
|
|
|
m_mapModel(parent->mapModel())
|
2019-07-02 14:57:10 -07:00
|
|
|
{
|
2019-07-10 02:15:12 -07:00
|
|
|
setMinimumSize(320, 240);
|
2019-07-02 14:57:10 -07:00
|
|
|
|
2019-07-05 20:21:11 -07:00
|
|
|
dbgPrintFunc();
|
2019-07-02 14:57:10 -07:00
|
|
|
}
|
|
|
|
|
2019-07-03 20:17:04 -07:00
|
|
|
MapView::~MapView()
|
2019-07-02 14:57:10 -07:00
|
|
|
{
|
2019-07-05 20:21:11 -07:00
|
|
|
dbgPrintFunc();
|
2019-07-02 14:57:10 -07:00
|
|
|
}
|
|
|
|
|
2019-07-10 02:15:12 -07:00
|
|
|
// TODO: move to paint.cc
|
|
|
|
extern "C" {
|
2019-07-10 04:15:52 -07:00
|
|
|
void paint_point(QPainter *paint, int x, int y)
|
2019-07-10 02:15:12 -07:00
|
|
|
{
|
2019-07-10 04:15:52 -07:00
|
|
|
paint->drawPoint(x, y);
|
2019-07-10 02:15:12 -07:00
|
|
|
}
|
2019-07-03 20:34:57 -07:00
|
|
|
}
|
|
|
|
|
2019-07-02 14:57:10 -07:00
|
|
|
// EOF
|