index 0a182958cec26c354fa4c17a3cb974657acb3f76..cfda36856b5ea11233f89f44b75759c0fb9b9caf 100644 (file)
#ifndef INKSCAPE_UI_DIALOG_EXTENSION_EDITOR_H
#define INKSCAPE_UI_DIALOG_EXTENSION_EDITOR_H
#ifndef INKSCAPE_UI_DIALOG_EXTENSION_EDITOR_H
#define INKSCAPE_UI_DIALOG_EXTENSION_EDITOR_H
-#include "dialog.h"
+#include "ui/widget/panel.h"
#include <glibmm/i18n.h>
#include <glibmm/i18n.h>
#include <gtkmm/treeview.h>
#include <gtkmm/label.h>
#include <gtkmm/frame.h>
#include <gtkmm/treeview.h>
#include <gtkmm/label.h>
#include <gtkmm/frame.h>
+#include <gtkmm/scrolledwindow.h>
#include "extension/extension.h"
#include "extension/extension.h"
namespace UI {
namespace Dialog {
namespace UI {
namespace Dialog {
-class ExtensionEditor : public Dialog {
+class ExtensionEditor : public UI::Widget::Panel {
public:
ExtensionEditor();
virtual ~ExtensionEditor();
public:
ExtensionEditor();
virtual ~ExtensionEditor();
- static ExtensionEditor *create() { return new ExtensionEditor(); }
+ static ExtensionEditor &getInstance() { return *new ExtensionEditor(); }
static void show_help (gchar const * extension_id);
protected:
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<Gtk::TreeStore> _page_list_model;
Glib::RefPtr<Gtk::TreeStore> _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:
//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);
PageListModelColumns() {
Gtk::TreeModelColumnRecord::add(_col_name);
- Gtk::TreeModelColumnRecord::add(_col_page);
Gtk::TreeModelColumnRecord::add(_col_id);
}
Gtk::TreeModelColumnRecord::add(_col_id);
}
+ /** \brief Name of the extension */
Gtk::TreeModelColumn<Glib::ustring> _col_name;
Gtk::TreeModelColumn<Glib::ustring> _col_name;
+ /** \brief ID of the extension */
Gtk::TreeModelColumn<Glib::ustring> _col_id;
Gtk::TreeModelColumn<Glib::ustring> _col_id;
- Gtk::TreeModelColumn<Gtk::Widget *> _col_page;
};
PageListModelColumns _page_list_columns;
};
PageListModelColumns _page_list_columns;
- Gtk::TreeModel::Path _path_tools;
- Gtk::TreeModel::Path _path_shapes;
-
private:
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);
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 defaultExtension(const Gtk::TreeModel::iterator &iter);
+ bool setExtensionIter(const Gtk::TreeModel::iterator &iter);
+public:
+ void setExtension(Glib::ustring extension_id);
};
} // namespace Dialog
};
} // namespace Dialog