Code

* convolve matrix code refactoring
[inkscape.git] / src / ui / dialog / livepatheffect-editor.h
index 5a40cfd307403fd2b5e6548a9fa45e770d9720b8..dc96fc313761230f75efc9eba01d5eb9b2d4ed6b 100644 (file)
 #ifndef INKSCAPE_UI_DIALOG_LIVE_PATH_EFFECT_H
 #define INKSCAPE_UI_DIALOG_LIVE_PATH_EFFECT_H
 
-#include "dialog.h"
+#include "ui/widget/panel.h"
 #include "ui/widget/button.h"
 
 #include <gtkmm/label.h>
 #include <gtkmm/comboboxtext.h>
 #include <gtkmm/frame.h>
+#include <gtkmm/tooltips.h>
 #include "ui/widget/combo-enums.h"
 #include "live_effects/effect.h"
 
@@ -28,20 +29,18 @@ namespace Inkscape {
 namespace UI {
 namespace Dialog {
 
-class LivePathEffectEditor : public Dialog {
+class LivePathEffectEditor : public UI::Widget::Panel {
 public:
-    LivePathEffectEditor(Behavior::BehaviorFactory behavior_factory);
+    LivePathEffectEditor();
     virtual ~LivePathEffectEditor();
 
-    static LivePathEffectEditor *create(Behavior::BehaviorFactory behavior_factory)
-    { return new LivePathEffectEditor(behavior_factory); }
+    static LivePathEffectEditor &getInstance() { return *new LivePathEffectEditor(); }
 
     void onSelectionChanged(Inkscape::Selection *sel);
     void setDesktop(SPDesktop *desktop);
 
 private:
     sigc::connection selection_changed_connection;
-    sigc::connection selection_modified_connection;
 
     void set_sensitize_all(bool sensitive);
 
@@ -61,6 +60,7 @@ private:
     Gtk::Frame effectcontrol_frame;
     Gtk::HBox effectapplication_hbox;
     Gtk::VBox effectcontrol_vbox;
+    Gtk::Tooltips tooltips;
 
     SPDesktop * current_desktop;