fixed issue with "empty" elements [walls, stairs, elevators] during tool selection

minor ui changes
This commit is contained in:
2017-04-16 09:47:12 +02:00
parent 648fb9590b
commit 6fb1c3a5fc
8 changed files with 42 additions and 14 deletions

View File

@@ -14,17 +14,22 @@ private:
public:
ToolNewStair(Tools& tools, MapLayer* layer) : ToolNewElement(tools, layer) {
create();
;
}
void becomesActive() override {
create(); // start adding an new element
emit onHelpTextChange("click for the stair's starting point");
}
void becomesInactive() override {
deleteCurrent(); // delete the currently pending and not yet finished stair
}
const std::string getName() const override {
return "new Stair";
}
void becomesActive() override {
emit onHelpTextChange("click for the stair's starting point");
}
void createEmptyElement() override {
foEL = new Floorplan::StairFreeform();