fixed some issues
added new tools for creating APs, Beacons, GTP, POI, Fingerprints fixed selection issue changed new-element creation added missing layer parameters
This commit is contained in:
47
mapview/2D/tools/ToolNewFingerprint.h
Normal file
47
mapview/2D/tools/ToolNewFingerprint.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef TOOLNEWFINGERPRINT_H
|
||||
#define TOOLNEWFINGERPRINT_H
|
||||
|
||||
#include "ToolNewElement.h"
|
||||
#include "../../model/MMFloorFingerprintLocation.h"
|
||||
#include "../../model/MMFloorFingerprints.h"
|
||||
|
||||
class ToolNewFingerprint : public ToolNewElement<Floorplan::FingerprintLocation, MMFloorFingerprintLocation> {
|
||||
|
||||
public:
|
||||
|
||||
ToolNewFingerprint(Tools& tools, MapLayer* layer) : ToolNewElement(tools, layer) {
|
||||
;
|
||||
}
|
||||
|
||||
void becomesActive() override {
|
||||
emit onHelpTextChange("left-click where to place a new fingerprint. right-click to end.");
|
||||
}
|
||||
|
||||
void becomesInactive() override {
|
||||
;
|
||||
}
|
||||
|
||||
const std::string getName() const override {
|
||||
return "new Fingerprint";
|
||||
}
|
||||
|
||||
void moving(const Point2 mapPoint) override {
|
||||
(void) mapPoint;
|
||||
}
|
||||
|
||||
/** next point */
|
||||
void leftMouse(const Point2 mapPoint) override {
|
||||
foEL = new Floorplan::FingerprintLocation("FP xx", mapPoint, 1.3);
|
||||
MMFloorFingerprints* obs = (MMFloorFingerprints*)layer;
|
||||
mmEL = obs->create(foEL);
|
||||
}
|
||||
|
||||
void rightMouse(const Point2 mapPoint) override {
|
||||
(void) mapPoint;
|
||||
finalizeCurrent();
|
||||
disableMe();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // TOOLNEWFINGERPRINT_H
|
||||
Reference in New Issue
Block a user