summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/extension-editor.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-03-29 05:40:31 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-03-29 05:40:31 +0000
commitf8ed0faa3975159b414028b2c2a5ae7d0003a89b (patch)
tree565d957d09b78451514c36236f3b133959814b5a /src/ui/dialog/extension-editor.h
parentr10951@tres: ted | 2006-02-16 08:56:41 -0800 (diff)
downloadinkscape-f8ed0faa3975159b414028b2c2a5ae7d0003a89b.tar.gz
inkscape-f8ed0faa3975159b414028b2c2a5ae7d0003a89b.zip
r10952@tres: ted | 2006-02-16 09:17:08 -0800
Stole the basics from the Inkscape preferences dialog. That's kinda the style I'm looking for. Now, to embrace and extend it. (bzr r342)
Diffstat (limited to 'src/ui/dialog/extension-editor.h')
-rw-r--r--src/ui/dialog/extension-editor.h34
1 files changed, 33 insertions, 1 deletions
diff --git a/src/ui/dialog/extension-editor.h b/src/ui/dialog/extension-editor.h
index 4c6beb7f7..70825d193 100644
--- a/src/ui/dialog/extension-editor.h
+++ b/src/ui/dialog/extension-editor.h
@@ -3,8 +3,9 @@
*
* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
+ * Ted Gould <ted@gould.cx>
*
- * Copyright (C) 2004, 2005 Authors
+ * Copyright (C) 2004-2006 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
@@ -16,6 +17,12 @@
#include <glibmm/i18n.h>
+#include <gtkmm/treestore.h>
+#include <gtkmm/treeview.h>
+#include <gtkmm/label.h>
+#include <gtkmm/frame.h>
+
+
namespace Inkscape {
namespace UI {
namespace Dialog {
@@ -27,11 +34,36 @@ public:
static ExtensionEditor *create() { return new ExtensionEditor(); }
+ static void show_help (gchar const * extension_id);
+
protected:
+ Gtk::Frame _page_frame;
+ Gtk::Label _page_title;
+ Gtk::TreeView _page_list;
+ Glib::RefPtr<Gtk::TreeStore> _page_list_model;
+
+ //Pagelist model columns:
+ class PageListModelColumns : public Gtk::TreeModel::ColumnRecord {
+ public:
+ PageListModelColumns() {
+ Gtk::TreeModelColumnRecord::add(_col_name);
+ Gtk::TreeModelColumnRecord::add(_col_page);
+ Gtk::TreeModelColumnRecord::add(_col_id);
+ }
+ Gtk::TreeModelColumn<Glib::ustring> _col_name;
+ Gtk::TreeModelColumn<gchar const *> _col_id;
+ Gtk::TreeModelColumn<Gtk::Widget *> _col_page;
+ };
+ PageListModelColumns _page_list_columns;
+
+ Gtk::TreeModel::Path _path_tools;
+ Gtk::TreeModel::Path _path_shapes;
private:
ExtensionEditor(ExtensionEditor const &d);
ExtensionEditor& operator=(ExtensionEditor const &d);
+
+ void on_pagelist_selection_changed();
};
} // namespace Dialog