lpe-show_handles.cpp revision f6cbfbe5a4c7dc89273a6f3b9d2a9d3c09df9cce
/*
* Authors:
* Jabier Arraiza Cenoz
*
* Copyright (C) Jabier Arraiza Cenoz 2014 <jabier.arraiza@marker.es>
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtkmm.h>
#include "live_effects/lpe-show_handles.h"
#include "live_effects/parameter/parameter.h"
#include "desktop-style.h"
#include "style.h"
namespace Inkscape {
namespace LivePathEffect {
scaleNodesAndHandles(_("Scale nodes and handles"), _("Scale nodes and handles"), "scaleNodesAndHandles", &wr, this, 10)
{
strokeWidth = 1.0;
}
bool LPEShowHandles::alertsOff = false;
/**
* Sets default styles to element
* this permanently remove.some styles of the element
*/
{
if(!alertsOff) {
char *msg = _("The \"show handles\" path effect will remove any custom style on the object you are applying it to. If this is not what you want, click Cancel.");
alertsOff = true;
if(response == GTK_RESPONSE_CANCEL) {
item->removeCurrentPathEffect(false);
return;
}
}
}
{
}
{
if(originalPath) {
}
}
if(!outlinepath.empty()) {
outlinepath.clear();
}
for (unsigned int i=0; i < outlinepath.size(); i++) {
}
return path_out;
}
void
{
return;
}
//Si está vacío...
continue;
}
//Itreadores
Geom::Path::const_iterator curve_endit = path_it->end_default(); // this determines when the loop has to stop
// if the path is closed, maybe we have to stop a bit earlier because the
// closing line segment has zerolength.
const Geom::Curve &closingline = path_it->back_closed(); // the closing line segment is always of type
// Geom::LineSegment.
// closingline.isDegenerate() did not work, because it only checks for
// *exact* zero length, which goes wrong for relative coordinates and
// rounding errors...
// the closing line segment has zero-length. So stop before that one!
}
}
if(nodes) {
}
while (curve_it1 != curve_endit) {
if (cubic) {
if(handles) {
}
}
}
}
if(nodes) {
}
++curve_it1;
if(curve_it2 != curve_endit){
++curve_it2;
}
}
}
}
void
{
char const * svgd;
svgd = "M 0.55,0.5 A 0.05,0.05 0 0 1 0.5,0.55 0.05,0.05 0 0 1 0.45,0.5 0.05,0.05 0 0 1 0.5,0.45 0.05,0.05 0 0 1 0.55,0.5 Z M 0,0 1,0 1,1 0,1 Z";
}
}
void
{
char const * svgd;
svgd = "M 0.7,0.35 A 0.35,0.35 0 0 1 0.35,0.7 0.35,0.35 0 0 1 0,0.35 0.35,0.35 0 0 1 0.35,0 0.35,0.35 0 0 1 0.7,0.35 Z";
}
}
void
{
}
}
}; //namespace LivePathEffect
}; /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :