diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-26 11:52:25 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-26 11:52:25 +0000 |
commit | edaf63323dfb5cff1aa2187bf1e1244c88ed0cae (patch) | |
tree | dfa6b43a5977f9dd95b2b29ccdc5d3fe5dadcdb0 /src/editorwindow.cc | |
parent | 0921b67bca379566478979e61207efbf179ee055 (diff) |
Mapped edit entity actions to MapWidget,
added initial addEntity action.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r-- | src/editorwindow.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc index 2423cff..c0f5e41 100644 --- a/src/editorwindow.cc +++ b/src/editorwindow.cc @@ -242,5 +242,20 @@ bool EditorWindow::saveFile(const QString &filename) } +void EditorWindow::addEntity() +{ + EntityWidget *entitywidget = editorwindow_mapwidget->addEntity(); + entitywidget->properties()->set_type("entity"); +} + +void EditorWindow::duplicateSelected() +{ + editorwindow_mapwidget->duplicateSelected(); +} + +void EditorWindow::deleteSelected() +{ + editorwindow_mapwidget->duplicateSelected(); +} } |