vector.cpp revision e590a460c93f0a1352c6b4fc4a53e7ef3ea7a3c3
/*
* Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "live_effects/parameter/vector.h"
#include "sp-lpe-item.h"
#include "knotholder.h"
#include "svg/stringstream.h"
#include <gtkmm.h>
#include "ui/widget/registered-widget.h"
#include "live_effects/effect.h"
#include "desktop.h"
namespace Inkscape {
namespace LivePathEffect {
origin(0.,0.),
{
vec_knot_color = 0xffffb500;
ori_knot_color = 0xffffb500;
}
{
}
void
{
}
bool
{
if (!strarray) {
return false;
}
double val[4];
unsigned int i = 0;
while (i < 4 && strarray[i]) {
i++;
} else {
break;
}
}
if (i == 4) {
return true;
}
return false;
}
gchar *
VectorParam::param_getSVGValue() const
{
return str;
}
{
*param_wr,
param_effect->getRepr(),
param_effect->getSPDoc() ) );
}
void
{
}
void
{
}
void
{
}
void
{
}
class VectorParamKnotHolderEntity_Origin : public LPEKnotHolderEntity {
public:
virtual ~VectorParamKnotHolderEntity_Origin() {}
};
};
};
private:
};
class VectorParamKnotHolderEntity_Vector : public LPEKnotHolderEntity {
public:
virtual ~VectorParamKnotHolderEntity_Vector() {}
/// @todo implement angle snapping when holding CTRL
};
};
};
private:
};
void
{
origin_e->create(desktop, item, knotholder, handleTip(), ori_knot_shape, ori_knot_mode, ori_knot_color);
vector_e->create(desktop, item, knotholder, handleTip(), vec_knot_shape, vec_knot_mode, vec_knot_color);
}
} /* 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 :