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

@@ -17,17 +17,22 @@ private:
public:
ToolNewElevator(Tools& tools, MapLayer* layer) : ToolNewElement(tools, layer) {
create();
;
}
void becomesActive() override {
create(); // start adding an new element
showHelp();
}
void becomesInactive() override {
deleteCurrent(); // delete the currently pending and not yet finished elevator
}
const std::string getName() const override {
return "new Elevator";
}
void becomesActive() override {
showHelp();
}
void createEmptyElement() override {
foEL = new Floorplan::Elevator();