From 48f92d13fa3a42007a068baf1d63f418b22a2b3e Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 14 Jul 2008 09:32:45 +0000 Subject: Made the setValue actually set the values in the GUI. Fixed resize problem when labels got text filled into them. Added a simple toXml method to dunp xml from the contructed gui to stdout. --- editor/editor.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editor/editor.cc') diff --git a/editor/editor.cc b/editor/editor.cc index e7d8781..1de16a1 100644 --- a/editor/editor.cc +++ b/editor/editor.cc @@ -67,16 +67,17 @@ int main(int argc, char *argv[]) n = n.nextSibling(); } - Toolbox toolbox(docElem); + MacroWindow macrowindow(node); + Toolbox toolbox(docElem, ¯owindow); + propertieseditor = new PropertiesEditor(); + toolbox.move(OFFSET_X, OFFSET_Y); toolbox.show(); - MacroWindow macrowindow(node); macrowindow.resize(400, 300); macrowindow.move(toolbox.width() + OFFSET_X + SPACING, OFFSET_Y); macrowindow.show(); - propertieseditor = new PropertiesEditor(); propertieseditor->setProperties(¯owindow); propertieseditor->move(macrowindow.width() + toolbox.width() + OFFSET_X + 2 * SPACING, OFFSET_Y); propertieseditor->show(); -- cgit v1.2.3