Code

Factor out 'create and apply' code for LPEs so that it can be called from everywhere
[inkscape.git] / src / ui / dialog / tree-editor.h
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 #ifndef INKSCAPE_DIALOG_TREE_EDITOR_H
14 #define INKSCAPE_DIALOG_TREE_EDITOR_H
16 #include <gtkmm/box.h>
17 #include <gtkmm/scrolledwindow.h>
18 #include <gtkmm/treeview.h>
19 #include <glibmm/i18n.h>
21 #include "dialog.h"
23 namespace Inkscape {
24 namespace UI {
25 namespace Dialog {
27 class TreeEditor : public Dialog {
28 public:
29     TreeEditor(Behavior::BehaviorFactory behavior_factory);
30     virtual ~TreeEditor();
32 protected:
34     Gtk::HBox             _hbox;
35     Gtk::ScrolledWindow   _leftWin;
36     Gtk::TreeView         _leftTree;
38     // TODO:  Add the tree model
39     // Glib::RefPtr<ExampleTreeModel> _refTreeModel;
41 private:
42     TreeEditor(TreeEditor const &d);
43     TreeEditor& operator=(TreeEditor const &d);
44 };
46 } // namespace Dialog
47 } // namespace UI
48 } // namespace Inkscape
50 #endif // INKSCAPE_UI_DIALOG_TREE_EDITOR_H
52 /*
53   Local Variables:
54   mode:c++
55   c-file-style:"stroustrup"
56   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57   indent-tabs-mode:nil
58   fill-column:99
59   End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :