From ea7e97bada72126b47c60cd846c168f111bae4a7 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Thu, 3 Jul 2008 09:40:20 +0000 Subject: First shot at a dropdown selector for various shapes in pen/pencil tool, along the lines of Valerie's blueprint. TODO: more paths for the dropdown, read them from a separate file; show images for the choices, not text (bzr r6127) --- src/live_effects/parameter/path.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/live_effects/parameter/path.cpp') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 295e40b7a..16e579d16 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -346,23 +346,28 @@ PathParam::on_edit_button_click() } void -PathParam::on_paste_button_click() +PathParam::paste_param_path(const char *svgd) { - Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get(); - Glib::ustring svgd = cm->getPathParameter(); - if (svgd == "") return; // remove possible link to path remove_link(); - param_write_to_repr(svgd.data()); + param_write_to_repr(svgd); signal_path_pasted.emit(); sp_document_done(param_effect->getSPDoc(), SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Paste path parameter")); } +void +PathParam::on_paste_button_click() +{ + Inkscape::UI::ClipboardManager *cm = Inkscape::UI::ClipboardManager::get(); + Glib::ustring svgd = cm->getPathParameter(); + paste_param_path(svgd.data()); +} + void PathParam::on_copy_button_click() { -- cgit v1.2.3