From: gouldtj Date: Sat, 1 Sep 2007 04:29:35 +0000 (+0000) Subject: r16220@tres: ted | 2007-08-15 19:43:11 -0700 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a632e427ed7f61cb92fcf61585c07868c7339d3;p=inkscape.git r16220@tres: ted | 2007-08-15 19:43:11 -0700 Okay, so now things are a little more connected. The widgets are parameters and they have signals. Work left is to actually USE those signals ;) --- diff --git a/src/extension/execution-env.h b/src/extension/execution-env.h index 1e145de4d..a20c0ba3d 100644 --- a/src/extension/execution-env.h +++ b/src/extension/execution-env.h @@ -25,7 +25,6 @@ namespace Extension { class ExecutionEnv { private: - Effect * _effect; Gtk::Dialog * _visibleDialog; bool _prefsVisible; bool _finished; @@ -37,6 +36,8 @@ private: std::list _selected; public: + Effect * _effect; + ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Gtk::Widget * controls = NULL); ~ExecutionEnv (void); diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index 2bc971d01..38f5be4a6 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -13,9 +13,14 @@ #include #include "../dialogs/dialog-events.h" +#include "xml/repr.h" + +#include "preferences.h" +#include "effect.h" #include "prefdialog.h" + namespace Inkscape { namespace Extension { @@ -77,6 +82,18 @@ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * co return; } +PrefDialog::~PrefDialog ( ) +{ + if (_param_preview != NULL) { + delete _param_preview; + } + if (_param_pinned != NULL) { + delete _param_pinned; + } + + return; +} + /** \brief Runs the dialog \return The response to the dialog