added new param-editing to APs and Beacons
changed drawing for better debuging changed layer editing option to add and delete layers some minor changes
This commit is contained in:
@@ -60,6 +60,10 @@ public:
|
||||
p.setPenBrush(Qt::black, Qt::NoBrush);
|
||||
p.drawCircle(fo->from);
|
||||
p.drawCircle(fo->to);
|
||||
} else {
|
||||
//p.setPenBrush(Qt::NoPen, Qt::black);
|
||||
p.drawCircle(fo->from, 0.1);
|
||||
p.drawCircle(fo->to, 0.1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -96,9 +96,19 @@ public:
|
||||
p.p->drawLine(mouseX, 0, mouseX, rs);
|
||||
|
||||
|
||||
|
||||
|
||||
p.setPenBrush(Qt::black, Qt::NoBrush);
|
||||
char buf[128];
|
||||
|
||||
// coordinates
|
||||
QRect ru(0,0,rs-1,rs-1);
|
||||
p.p->fillRect(ru, Qt::white);
|
||||
std::sprintf(buf, "%.1f", p.getScaler().xsm(this->mouseX));
|
||||
p.p->drawText(5,15, buf);
|
||||
std::sprintf(buf, "%.1f", p.getScaler().ysm(this->mouseY));
|
||||
p.p->drawText(5,30, buf);
|
||||
|
||||
// y-axis
|
||||
p.p->setClipRect(ry);
|
||||
for (float y = r.y0; y <= r.y1; y += step) {
|
||||
@@ -141,6 +151,8 @@ public:
|
||||
|
||||
p.p->setClipping(false);
|
||||
|
||||
|
||||
|
||||
// snapped dot
|
||||
const Point2 mouseOnScreen(mouseX, mouseY);
|
||||
const Point2 mouseInMap = p.s.sm(mouseOnScreen);
|
||||
|
||||
Reference in New Issue
Block a user