X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fdialog%2Fextension-editor.h;h=b6c331eae5796a015ae12d32c01eba41cc6dc671;hb=3d7616e3b1a716d7db8b2a763d790edb316a9fd3;hp=81dd2c56311d441a1c59a20bc1c71e64c9854110;hpb=2f5d8259b0fd718ba65a5cc7d14e9a3ec8ece918;p=inkscape.git diff --git a/src/ui/dialog/extension-editor.h b/src/ui/dialog/extension-editor.h index 81dd2c563..b6c331eae 100644 --- a/src/ui/dialog/extension-editor.h +++ b/src/ui/dialog/extension-editor.h @@ -21,6 +21,7 @@ #include #include #include +#include #include "extension/extension.h" @@ -38,35 +39,47 @@ public: static void show_help (gchar const * extension_id); protected: - Gtk::Frame _page_frame; - Gtk::Label _page_title; - Gtk::TreeView _page_list; + /** \brief The view of the list of extensions on the left of the dialog */ + Gtk::TreeView _page_list; + /** \brief The model for the list of extensions */ Glib::RefPtr _page_list_model; + /** \brief The notebook page that contains information */ + Gtk::ScrolledWindow _notebook_info; + /** \brief The notebook page that contains help info */ + Gtk::ScrolledWindow _notebook_help; + /** \brief The notebook page that holds all the parameters */ + Gtk::ScrolledWindow _notebook_params; //Pagelist model columns: class PageListModelColumns : public Gtk::TreeModel::ColumnRecord { public: + /** \brief Creates the Page List model by adding all of the + members of the class as column records. */ PageListModelColumns() { Gtk::TreeModelColumnRecord::add(_col_name); - Gtk::TreeModelColumnRecord::add(_col_page); Gtk::TreeModelColumnRecord::add(_col_id); } + /** \brief Name of the extension */ Gtk::TreeModelColumn _col_name; + /** \brief ID of the extension */ Gtk::TreeModelColumn _col_id; - Gtk::TreeModelColumn _col_page; }; PageListModelColumns _page_list_columns; - Gtk::TreeModel::Path _path_tools; - Gtk::TreeModel::Path _path_shapes; - private: + /** \brief A 'global' variable to help search through and select + an item in the extension list */ + Glib::ustring _selection_search; + ExtensionEditor(ExtensionEditor const &d); ExtensionEditor& operator=(ExtensionEditor const &d); void on_pagelist_selection_changed(void); static void dbfunc (Inkscape::Extension::Extension * in_plug, gpointer in_data); Gtk::TreeModel::iterator add_extension (Inkscape::Extension::Extension * ext); + bool setExtensionIter(const Gtk::TreeModel::iterator &iter); +public: + void setExtension(Glib::ustring extension_id); }; } // namespace Dialog