Code

Merged in Native File Dialogs for Windows Branch
[inkscape.git] / src / ui / dialog / tree-editor.cpp
1 /*
2  * \brief  Tree Editor - Abstract base class for dialogs that allow
3  *         editing properties of tree-organized data.
4  *
5  * Authors:
6  *   Bryce W. Harrington <bryce@bryceharrington.org>
7  *
8  * Copyright (C) 2004, 2005 Authors
9  *
10  * Released under GNU GPL.  Read the file 'COPYING' for more information.
11  */
13 #ifdef HAVE_CONFIG_H
14 # include <config.h>
15 #endif
17 #include "tree-editor.h"
18 #include "verbs.h"
20 namespace Inkscape {
21 namespace UI {
22 namespace Dialog {
24 TreeEditor::TreeEditor(Behavior::BehaviorFactory behavior_factory)
25     : Dialog (behavior_factory, "dialogs.treeeditor", SP_VERB_NONE /*FIXME*/)
26 {
27     get_vbox()->pack_start(_hbox);
29     _hbox.add(_leftWin);
30     _leftWin.add(_leftTree);
32     // Only show the scrollbars when they are necessary
33     _leftWin.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
35     // TODO:  Create the tree model
36     
37     show_all_children();
38 }
40 } // namespace Dialog
41 } // namespace UI
42 } // namespace Inkscape
44 /*
45   Local Variables:
46   mode:c++
47   c-file-style:"stroustrup"
48   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
49   indent-tabs-mode:nil
50   fill-column:99
51   End:
52 */
53 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :