summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bd367a)
raw | patch | inline | side by side (parent: 2bd367a)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 20 Jan 2008 06:10:22 +0000 (06:10 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 20 Jan 2008 06:10:22 +0000 (06:10 +0000) |
src/ui/dialog/livepatheffect-editor.cpp | patch | blob | history | |
src/ui/dialog/livepatheffect-editor.h | patch | blob | history |
index 3956f014087c623d8e3394067a5acdbe97b2a7aa..8d5b504f077fd93826ced167d9bcd5fe03826ea2 100644 (file)
lpeeditor->onSelectionChanged(selection);
}
-static void lpeeditor_selection_modified( Inkscape::Selection *selection, guint /*flags*/, gpointer data )
-{
- lpeeditor_selection_changed (selection, data);
-}
-
/*#######################
* LivePathEffectEditor
explain_label("", Gtk::ALIGN_CENTER),
effectapplication_frame(_("Apply new effect")),
effectcontrol_frame(_("Current effect")),
- current_desktop(NULL),
- currect_effect(NULL)
+ current_desktop(NULL)
{
Gtk::Box *contents = _getContents();
contents->set_spacing(4);
if (current_desktop) {
selection_changed_connection.disconnect();
- selection_modified_connection.disconnect();
}
}
void
LivePathEffectEditor::showParams(LivePathEffect::Effect* effect)
{
- if (currect_effect != effect) {
- currect_effect = effect;
-
- if (effectwidget) {
- effectcontrol_vbox.remove(*effectwidget);
- delete effectwidget;
- effectwidget = NULL;
- }
-
- explain_label.set_markup("<b>" + effect->getName() + "</b>");
- effectwidget = effect->newWidget(&tooltips);
- if (effectwidget) {
- effectcontrol_vbox.pack_start(*effectwidget, true, true);
- }
- button_remove.show();
+ if (effectwidget) {
+ effectcontrol_vbox.remove(*effectwidget);
+ delete effectwidget;
+ effectwidget = NULL;
+ }
- effectcontrol_vbox.show_all_children();
- // fixme: add resizing of dialog
+ explain_label.set_markup("<b>" + effect->getName() + "</b>");
+ effectwidget = effect->newWidget(&tooltips);
+ if (effectwidget) {
+ effectcontrol_vbox.pack_start(*effectwidget, true, true);
}
+ button_remove.show();
+
+ effectcontrol_vbox.show_all_children();
+ // fixme: add resizing of dialog
}
void
if (current_desktop) {
selection_changed_connection.disconnect();
- selection_modified_connection.disconnect();
}
current_desktop = desktop;
Inkscape::Selection *selection = sp_desktop_selection(desktop);
selection_changed_connection = selection->connectChanged(
sigc::bind (sigc::ptr_fun(&lpeeditor_selection_changed), this ) );
- selection_modified_connection = selection->connectModified(
- sigc::bind (sigc::ptr_fun(&lpeeditor_selection_modified), this ) );
onSelectionChanged(selection);
} else {
index 4f635ad51e3858d94c3b58c4fe0b33334b04eefa..dc96fc313761230f75efc9eba01d5eb9b2d4ed6b 100644 (file)
private:
sigc::connection selection_changed_connection;
- sigc::connection selection_modified_connection;
void set_sensitize_all(bool sensitive);
SPDesktop * current_desktop;
- LivePathEffect::Effect* currect_effect;
-
LivePathEffectEditor(LivePathEffectEditor const &d);
LivePathEffectEditor& operator=(LivePathEffectEditor const &d);
};