diff options
| author | Moini <moini@noreply.invalid> | 2019-07-20 23:21:44 +0000 |
|---|---|---|
| committer | Moini <moini@noreply.invalid> | 2019-07-20 23:21:44 +0000 |
| commit | 79234b1d514fa16664557076a51e8e69ced3d15c (patch) | |
| tree | a65b9d691e59e526cf14a5e53c1b8d12d1dd3a7d /src | |
| parent | Improve some LPE descriptions. (diff) | |
| download | inkscape-79234b1d514fa16664557076a51e8e69ced3d15c.tar.gz inkscape-79234b1d514fa16664557076a51e8e69ced3d15c.zip | |
Remove some trailing whitespace.
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/effect.cpp | 12 | ||||
| -rw-r--r-- | src/live_effects/lpe-mirror_symmetry.cpp | 20 | ||||
| -rw-r--r-- | src/live_effects/parameter/path.cpp | 8 |
3 files changed, 20 insertions, 20 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 88fcd9d0f..1dcdfb566 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -1113,7 +1113,7 @@ Effect::Effect(LivePathEffectObject *lpeobject) current_shape(nullptr), provides_own_flash_paths(true), // is automatically set to false if providesOwnFlashPaths() is not overridden defaultsopen(false), - is_ready(false) + is_ready(false) { registerParameter( dynamic_cast<Parameter *>(&is_visible) ); is_visible.widget_is_visible = false; @@ -1161,7 +1161,7 @@ Effect::isNodePointSelected(Geom::Point const &nodePoint) const { if (selectedNodesPoints.size() > 0) { using Geom::X; - using Geom::Y; + using Geom::Y; for (auto p : selectedNodesPoints) { Geom::Affine transformCoordinate = sp_lpe_item->i2dt_affine(); Geom::Point p2(nodePoint[X],nodePoint[Y]); @@ -1174,7 +1174,7 @@ Effect::isNodePointSelected(Geom::Point const &nodePoint) const return false; } -void +void Effect::processObjects(LPEAction lpe_action) { SPDocument * document = SP_ACTIVE_DOCUMENT; @@ -1389,7 +1389,7 @@ Effect::readallParameters(Inkscape::XML::Node const* repr) } else { Glib::ustring pref_path = (Glib::ustring)"/live_effects/" + (Glib::ustring)LPETypeConverter.get_key(effectType()).c_str() + - (Glib::ustring)"/" + + (Glib::ustring)"/" + (Glib::ustring)key; bool valid = prefs->getEntry(pref_path).isValid(); if(valid){ @@ -1571,7 +1571,7 @@ Effect::defaultParamSet() Gtk::Button *set = Gtk::manage(new Gtk::Button((Glib::ustring)set_or_upd)); Gtk::Button *unset = Gtk::manage(new Gtk::Button(Glib::ustring(_("Unset")))); unset->signal_clicked().connect(sigc::bind<Glib::ustring, Glib::ustring, Parameter *, Gtk::Label *, Gtk::Button *, Gtk::Button *>(sigc::mem_fun(*this, &Effect::unsetDefaultParam), pref_path, tooltip, param, parameter_label, set, unset)); - + set->signal_clicked().connect(sigc::bind<Glib::ustring, Glib::ustring, Parameter *, Gtk::Label *, Gtk::Button *, Gtk::Button *>(sigc::mem_fun(*this, &Effect::setDefaultParam), pref_path, tooltip, param, parameter_label, set, unset)); if (!valid) { unset->set_sensitive(false); @@ -1755,4 +1755,4 @@ Effect::providesKnotholder() const fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
\ No newline at end of file +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp index 45d3802f3..249aca9e6 100644 --- a/src/live_effects/lpe-mirror_symmetry.cpp +++ b/src/live_effects/lpe-mirror_symmetry.cpp @@ -95,7 +95,7 @@ LPEMirrorSymmetry::doAfterEffect (SPLPEItem const* lpeitem) if (root_origin != root) { return; } - + if (split_items && !discard_orig_path) { Geom::Line ls((Geom::Point)start_point, (Geom::Point)end_point); Geom::Affine m = Geom::reflection (ls.vector(), (Geom::Point)start_point); @@ -108,7 +108,7 @@ LPEMirrorSymmetry::doAfterEffect (SPLPEItem const* lpeitem) } } -Gtk::Widget * +Gtk::Widget * LPEMirrorSymmetry::newWidget() { // use manage here, because after deletion of Effect object, others might @@ -192,7 +192,7 @@ LPEMirrorSymmetry::doBeforeEffect (SPLPEItem const* lpeitem) //force update center_horiz = false; } else { - + if (mode == MT_Y) { point_a = Geom::Point(boundingbox_X.min(),center_point[Y]); point_b = Geom::Point(boundingbox_X.max(),center_point[Y]); @@ -238,7 +238,7 @@ LPEMirrorSymmetry::doBeforeEffect (SPLPEItem const* lpeitem) Geom::Point trans = center_point - Geom::middle_point((Geom::Point)start_point, (Geom::Point)end_point); start_point.param_setValue(start_point * trans); end_point.param_setValue(end_point * trans); - + } } else if ( mode == MT_V){ SPDocument * document = SP_ACTIVE_DOCUMENT; @@ -281,7 +281,7 @@ void LPEMirrorSymmetry::cloneStyle(SPObject *orig, SPObject *dest) } void -LPEMirrorSymmetry::cloneD(SPObject *orig, SPObject *dest, bool reset) +LPEMirrorSymmetry::cloneD(SPObject *orig, SPObject *dest, bool reset) { SPDocument * document = SP_ACTIVE_DOCUMENT; if (!document) { @@ -295,8 +295,8 @@ LPEMirrorSymmetry::cloneD(SPObject *orig, SPObject *dest, bool reset) std::vector< SPObject * > childs = orig->childList(true); size_t index = 0; for (auto & child : childs) { - SPObject *dest_child = dest->nthChild(index); - cloneD(child, dest_child, reset); + SPObject *dest_child = dest->nthChild(index); + cloneD(child, dest_child, reset); index++; } return; @@ -409,7 +409,7 @@ LPEMirrorSymmetry::doOnVisibilityToggled(SPLPEItem const* /*lpeitem*/) processObjects(LPE_VISIBILITY); } -void +void LPEMirrorSymmetry::doOnRemove (SPLPEItem const* /*lpeitem*/) { //set "keep paths" hook on sp-lpe-item.cpp @@ -449,7 +449,7 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in) } Geom::PathVector const original_pathv = pathv_to_linear_and_cubic_beziers(path_in); Geom::PathVector path_out; - + if (!discard_orig_path && !fuse_paths) { path_out = pathv_to_linear_and_cubic_beziers(path_in); } @@ -457,7 +457,7 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in) Geom::Line line_separation((Geom::Point)start_point, (Geom::Point)end_point); Geom::Affine m = Geom::reflection (line_separation.vector(), (Geom::Point)start_point); if (fuse_paths && !discard_orig_path) { - for (const auto & path_it : original_pathv) + for (const auto & path_it : original_pathv) { if (path_it.empty()) { continue; diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 532d7485a..8eb01b502 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -220,7 +220,7 @@ PathParam::param_newWidget() static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true); pButton->set_tooltip_text(_("Edit on-canvas")); } - + if (_copy_button) { pIcon = Gtk::manage(sp_get_icon_image(INKSCAPE_ICON("edit-copy"), Gtk::ICON_SIZE_BUTTON)); pButton = Gtk::manage(new Gtk::Button()); @@ -232,7 +232,7 @@ PathParam::param_newWidget() static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true); pButton->set_tooltip_text(_("Copy path")); } - + if (_paste_button) { pIcon = Gtk::manage(sp_get_icon_image(INKSCAPE_ICON("edit-paste"), Gtk::ICON_SIZE_BUTTON)); pButton = Gtk::manage(new Gtk::Button()); @@ -255,7 +255,7 @@ PathParam::param_newWidget() static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true); pButton->set_tooltip_text(_("Insert from clipboard")); } - + static_cast<Gtk::HBox*>(_widget)->show_all_children(); return dynamic_cast<Gtk::Widget *> (_widget); @@ -515,7 +515,7 @@ PathParam::paste_param_path(const char *svgd) path_clipboard *= item->i2doc_affine().inverse(); svgd = sp_svg_write_path( path_clipboard ); } - + param_write_to_repr(svgd); signal_path_pasted.emit(); } |
