diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-01-26 16:44:00 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-01-26 16:44:00 +0000 |
| commit | c78d5eac14cd2dee9293418919ba08e6244c9058 (patch) | |
| tree | 6df4a5be49d86df7d2efb9dffbf2d32e76427604 /src/live_effects/parameter/path.cpp | |
| parent | LPE bend path was badly broken. fixed now. (diff) | |
| download | inkscape-c78d5eac14cd2dee9293418919ba08e6244c9058.tar.gz inkscape-c78d5eac14cd2dee9293418919ba08e6244c9058.zip | |
add copy button to LPE pathparam
(bzr r4600)
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index df904b8a1..7d7679496 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -103,6 +103,16 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips) static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true); tooltips->set_tip(*pButton, _("Edit on-canvas")); + pIcon = Gtk::manage( sp_icon_get_icon( GTK_STOCK_COPY, Inkscape::ICON_SIZE_BUTTON) ); + pButton = Gtk::manage(new Gtk::Button()); + pButton->set_relief(Gtk::RELIEF_NONE); + pIcon->show(); + pButton->add(*pIcon); + pButton->show(); + pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_copy_button_click)); + static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true); + tooltips->set_tip(*pButton, _("Copy path")); + pIcon = Gtk::manage( sp_icon_get_icon( GTK_STOCK_PASTE, Inkscape::ICON_SIZE_BUTTON) ); pButton = Gtk::manage(new Gtk::Button()); pButton->set_relief(Gtk::RELIEF_NONE); @@ -194,6 +204,11 @@ PathParam::on_paste_button_click() } } +void +PathParam::on_copy_button_click() +{ + sp_selection_copy_lpe_pathparam(this); +} } /* namespace LivePathEffect */ |
