From 46f48143ed59eddafa86f2711f518792f362a46c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Feb 2012 13:26:32 +0000 Subject: Added text area with all entity properties, made location editable. --- src/editorwindow.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/editorwindow.cc') diff --git a/src/editorwindow.cc b/src/editorwindow.cc index 3435d43..3f1dce7 100644 --- a/src/editorwindow.cc +++ b/src/editorwindow.cc @@ -23,7 +23,9 @@ EditorWindow::EditorWindow(QWidget *parent) : QWidget(parent) { editorwindow_mapwidget = new MapWidget(this); editorwindow_sidebar = new SideBar(this); + connect(editorwindow_mapwidget, SIGNAL(selected(MapEntity *)), editorwindow_sidebar, SLOT(setEntity(MapEntity *))); + connect(editorwindow_sidebar, SIGNAL(entityChanged()), editorwindow_mapwidget, SLOT(resizeChildren())); } void EditorWindow::resizeEvent (QResizeEvent *event) @@ -113,6 +115,9 @@ bool EditorWindow::loadFile(const QString &filename) } else if (ini.got_key_float("radius", f)) { entity->set_radius(f); + + } else if (ini.got_key()) { + entity->add_property(ini.key(), ini.value()); } } else if (ini.in_section("zone")) { -- cgit v1.2.3