summaryrefslogtreecommitdiff
path: root/editor/editor.cc
diff options
context:
space:
mode:
authordeva <deva>2008-07-14 09:32:45 +0000
committerdeva <deva>2008-07-14 09:32:45 +0000
commit48f92d13fa3a42007a068baf1d63f418b22a2b3e (patch)
treed5a2f314b6da4162e5a45afcf5473529152da288 /editor/editor.cc
parent0ca2a008e3d6f2578246326ba4180cf21d8064ca (diff)
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.
Diffstat (limited to 'editor/editor.cc')
-rw-r--r--editor/editor.cc7
1 files changed, 4 insertions, 3 deletions
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, &macrowindow);
+ 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(&macrowindow);
propertieseditor->move(macrowindow.width() + toolbox.width() + OFFSET_X + 2 * SPACING, OFFSET_Y);
propertieseditor->show();