Code

Add option to align & distribute dialog to treat the selection as a group (closes...
[inkscape.git] / src / ui / dialog / extension-editor.h
index 65eb0c97ea1499450cb2dc070838e4a5b375650c..cfda36856b5ea11233f89f44b75759c0fb9b9caf 100644 (file)
@@ -13,7 +13,7 @@
 #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>
 
@@ -21,6 +21,7 @@
 #include <gtkmm/treeview.h>
 #include <gtkmm/label.h>
 #include <gtkmm/frame.h>
+#include <gtkmm/scrolledwindow.h>
 
 #include "extension/extension.h"
 
@@ -28,12 +29,12 @@ namespace Inkscape {
 namespace UI {
 namespace Dialog {
 
-class ExtensionEditor : public Dialog {
+class ExtensionEditor : public UI::Widget::Panel {
 public:
     ExtensionEditor();
     virtual ~ExtensionEditor();
 
-    static ExtensionEditor *create() { return new ExtensionEditor(); }
+    static ExtensionEditor &getInstance() { return *new ExtensionEditor(); }
 
     static void show_help (gchar const * extension_id);
 
@@ -43,23 +44,25 @@ protected:
     /** \brief  The model for the list of extensions */
     Glib::RefPtr<Gtk::TreeStore> _page_list_model;
     /** \brief  The notebook page that contains information */
-    Gtk::VBox _notebook_info;
+    Gtk::ScrolledWindow _notebook_info;
     /** \brief  The notebook page that contains help info */
-    Gtk::VBox _notebook_help;
+    Gtk::ScrolledWindow _notebook_help;
     /** \brief  The notebook page that holds all the parameters */
-    Gtk::VBox _notebook_params;
+    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<Glib::ustring> _col_name;
+        /** \brief  ID of the extension */
         Gtk::TreeModelColumn<Glib::ustring> _col_id;
-        Gtk::TreeModelColumn<Gtk::Widget *> _col_page;
     };
     PageListModelColumns _page_list_columns;