summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/tree-editor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/tree-editor.cpp')
-rw-r--r--src/ui/dialog/tree-editor.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/ui/dialog/tree-editor.cpp b/src/ui/dialog/tree-editor.cpp
new file mode 100644
index 000000000..4d982d3e3
--- /dev/null
+++ b/src/ui/dialog/tree-editor.cpp
@@ -0,0 +1,53 @@
+/*
+ * \brief Tree Editor - Abstract base class for dialogs that allow
+ * editing properties of tree-organized data.
+ *
+ * Authors:
+ * Bryce W. Harrington <bryce@bryceharrington.org>
+ *
+ * Copyright (C) 2004, 2005 Authors
+ *
+ * Released under GNU GPL. Read the file 'COPYING' for more information.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include "tree-editor.h"
+#include "verbs.h"
+
+namespace Inkscape {
+namespace UI {
+namespace Dialog {
+
+TreeEditor::TreeEditor()
+ : Dialog ("dialogs.treeeditor", SP_VERB_NONE /*FIXME*/)
+{
+ get_vbox()->pack_start(_hbox);
+
+ _hbox.add(_leftWin);
+ _leftWin.add(_leftTree);
+
+ // Only show the scrollbars when they are necessary
+ _leftWin.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
+
+ // TODO: Create the tree model
+
+ show_all_children();
+}
+
+} // namespace Dialog
+} // namespace UI
+} // namespace Inkscape
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :