summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b96551a)
raw | patch | inline | side by side (parent: b96551a)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Jun 2008 05:46:29 +0000 (05:46 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 9 Jun 2008 05:46:29 +0000 (05:46 +0000) |
src/ui/dialog/livepatheffect-editor.cpp | patch | blob | history | |
src/ui/dialog/livepatheffect-editor.h | patch | blob | history |
index 2dc4fda71062dcd1259bbe597cd54640fb66809b..c1bbaa022c503118a81db3c6f743af42f0f95cd4 100644 (file)
lpeeditor->onSelectionChanged(selection);
}
+static void lpeeditor_selection_modified (Inkscape::Selection * selection, guint /*flags*/, gpointer data)
+{
+ LivePathEffectEditor *lpeeditor = static_cast<LivePathEffectEditor *>(data);
+ lpeeditor->onSelectionChanged(selection);
+}
+
/*#######################
* LivePathEffectEditor
if (current_desktop) {
selection_changed_connection.disconnect();
+ selection_modified_connection.disconnect();
}
}
}
else
{
- showText(_("Item is not compound by paths"));
+ showText(_("Item is not a path or shape"));
set_sensitize_all(false);
}
} else {
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 {
SPItem *item = sel->singleItem();
if ( item && SP_IS_LPE_ITEM(item) ) {
- sp_lpe_item_up_current_path_effect(SP_LPE_ITEM(item));
+ sp_lpe_item_up_current_path_effect(SP_LPE_ITEM(item));
sp_document_done ( sp_desktop_document (current_desktop), SP_VERB_DIALOG_LIVE_PATH_EFFECT,
- _("Remove path effect") );
+ _("Move path effect up") );
effect_list_update(SP_LPE_ITEM(item));
}
SPItem *item = sel->singleItem();
if ( item && SP_IS_LPE_ITEM(item) ) {
- sp_lpe_item_down_current_path_effect(SP_LPE_ITEM(item));
+ sp_lpe_item_down_current_path_effect(SP_LPE_ITEM(item));
sp_document_done ( sp_desktop_document (current_desktop), SP_VERB_DIALOG_LIVE_PATH_EFFECT,
- _("Remove path effect") );
+ _("Move path effect down") );
effect_list_update(SP_LPE_ITEM(item));
}
index e2c7da3220bc6bb2421dcc38ea6bc68245e1cfaa..49b25d6077a9b61af9d138b6f8720567315340ee 100644 (file)
private:
sigc::connection selection_changed_connection;
+ sigc::connection selection_modified_connection;
void set_sensitize_all(bool sensitive);