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:
@@ -21,7 +21,7 @@ public:
|
||||
}
|
||||
|
||||
void becomesActive() override {
|
||||
create(); // start adding an new element
|
||||
//create(); // start adding an new element
|
||||
showHelp();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,53 @@ public:
|
||||
return "new Elevator";
|
||||
}
|
||||
|
||||
void createEmptyElement() override {
|
||||
|
||||
|
||||
/** mouse is currently moved */
|
||||
void moving(const Point2 mapPoint) override {
|
||||
if (idx > 0) {
|
||||
setPoint(idx, mapPoint);
|
||||
}
|
||||
}
|
||||
|
||||
/** next point */
|
||||
void leftMouse(const Point2 mapPoint) override {
|
||||
|
||||
(void) mapPoint;
|
||||
|
||||
if (idx == 0) {
|
||||
createEmptyElement();
|
||||
setPoint(idx, mapPoint);
|
||||
++idx;
|
||||
} else if (idx == 1) {
|
||||
setPoint(idx, mapPoint);
|
||||
++idx;
|
||||
} else if (idx == 2) {
|
||||
setPoint(idx, mapPoint);
|
||||
finalizeCurrent();
|
||||
disableMe();
|
||||
idx = 0;
|
||||
}
|
||||
|
||||
showHelp();
|
||||
|
||||
}
|
||||
|
||||
void rightMouse(const Point2 mapPoint) override {
|
||||
(void) mapPoint;
|
||||
}
|
||||
|
||||
void showHelp() {
|
||||
switch (idx) {
|
||||
case 0: emit onHelpTextChange("click at the right side of the elevator's door"); break;
|
||||
case 1: emit onHelpTextChange("click at the left side of the elevator's door"); break;
|
||||
case 2: emit onHelpTextChange("click at the left backside of the elevator"); break;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void createEmptyElement() {
|
||||
|
||||
foEL = new Floorplan::Elevator();
|
||||
MMFloorElevators* elevators = (MMFloorElevators*)layer;
|
||||
@@ -41,8 +87,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
/** mouse is currently moved */
|
||||
void moving(const Point2 mapPoint) override {
|
||||
void setPoint(const int idx, const Point2 mapPoint) {
|
||||
|
||||
if (idx == 0) {
|
||||
p1 = mapPoint;
|
||||
@@ -62,28 +107,6 @@ public:
|
||||
|
||||
}
|
||||
|
||||
/** next point */
|
||||
void leftMouse() override {
|
||||
++idx;
|
||||
if (idx == 3) {
|
||||
finalizeCurrent();
|
||||
disableMe();
|
||||
}
|
||||
showHelp();
|
||||
}
|
||||
|
||||
void rightMouse() override {
|
||||
;
|
||||
}
|
||||
|
||||
void showHelp() {
|
||||
switch (idx) {
|
||||
case 0: emit onHelpTextChange("click at the right side of the elevator's door"); break;
|
||||
case 1: emit onHelpTextChange("click at the left side of the elevator's door"); break;
|
||||
case 2: emit onHelpTextChange("click at the left backside of the elevator"); break;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user