path.cpp revision 981b809bc6ed10a21e89444d9447e5475801874f
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/parameter/path.h"
#include "live_effects/effect.h"
#include "live_effects/n-art-bpath-2geom.h"
#include <gtk/gtkstock.h>
#include "selection-chemistry.h"
#include "desktop.h"
#include "inkscape.h"
#include "message-stack.h"
#include "verbs.h"
#include "document.h"
#define noLPEPATHPARAM_DEBUG
namespace Inkscape {
namespace LivePathEffect {
{
}
{
if (_tooltips)
delete _tooltips;
// _widget is managed by GTK so do not delete!
}
bool
{
if (strvalue) {
}
return true;
}
return false;
}
gchar *
PathParam::param_writeSVGValue() const
{
Geom::path_from_piecewise(* dynamic_cast<const Geom::Piecewise<Geom::D2<Geom::SBasis> > *> (this), LPE_CONVERSION_TOLERANCE);
return svgd;
}
{
if (!_widget) {
#ifndef LPEPATHPARAM_DEBUG
pButton->set_sensitive(false);
#endif
}
}
void
{
g_message("give this path to edit on canvas!");
}
void
{
// check if something is in the clipboard
SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Nothing on the clipboard."));
return;
}
if (svgd) {
_("Paste path parameter"));
}
} else {
SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("Clipboard does not contain a path."));
}
}
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 :