Code

fix for crash bug 607557
[inkscape.git] / src / ui / dialog / livepatheffect-editor.h
index a924ed6e9507d9fe01d5aedc306d7bd1acdebc09..50e9486444c05efefd54ba1b4f9f3c1d7e48a6e0 100644 (file)
@@ -1,11 +1,10 @@
-/**
- * \brief LivePathEffect dialog
- *
- * Author:
+/** @file
+ * @brief Live Path Effect editing dialog
+ */
+/* Author:
  *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
  *
  * Copyright (C) 2007 Author
- *
  * Released under GNU GPL.  Read the file 'COPYING' for more information.
  */
 
@@ -20,8 +19,7 @@
 #include <gtkmm/frame.h>
 #include <gtkmm/tooltips.h>
 #include "ui/widget/combo-enums.h"
-#include "live_effects/effect.h"
-#include "live_effects/lpeobject-reference.h"
+#include "live_effects/effect-enum.h"
 #include <gtkmm/liststore.h>
 #include <gtkmm/treeview.h>
 #include <gtkmm/scrolledwindow.h>
 
 
 class SPDesktop;
+class SPLPEItem;
 
 namespace Inkscape {
 
+namespace LivePathEffect {
+    class Effect;
+    class LPEObjectReference;
+}
+
 namespace UI {
 namespace Dialog {
 
@@ -53,7 +57,7 @@ private:
 
     void set_sensitize_all(bool sensitive);
 
-    void showParams(LivePathEffect::Effect* effect);
+    void showParams(LivePathEffect::Effect& effect);
     void showText(Glib::ustring const &str);
     void selectInList(LivePathEffect::Effect* effect);
 
@@ -119,6 +123,8 @@ private:
     
     SPLPEItem * current_lpeitem;
 
+    friend void lpeeditor_selection_changed (Inkscape::Selection * selection, gpointer data);
+
     LivePathEffectEditor(LivePathEffectEditor const &d);
     LivePathEffectEditor& operator=(LivePathEffectEditor const &d);
 };