parameter.cpp revision a7b98b4dadda9f675e57ee1b78a9e1d2a5b3844f
/*
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "ui/widget/registered-widget.h"
#include "live_effects/parameter/parameter.h"
#include "live_effects/effect.h"
#include "svg/stringstream.h"
#include "verbs.h"
#define noLPEREALPARAM_DEBUG
namespace Inkscape {
namespace LivePathEffect {
oncanvas_editable(false),
widget_is_visible(true),
{
}
void
{
}
void Parameter::write_to_SVG(void)
{
}
/*###########################################
* REAL PARAM
*/
integer(false),
digits(2),
inc_step(0.1),
inc_page(1),
add_slider(false),
overwrite_widget(false)
{
}
{
}
bool
{
double newval;
if (success == 1) {
return true;
}
return false;
}
gchar *
ScalarParam::param_getSVGValue() const
{
return str;
}
void
{
}
void
{
if (integer)
}
void
{
// if you look at client code, you'll see that many effects
// has a tendency to set an upper range of Geom::infinity().
// Once again, in gtk2, this is not a problem. But in gtk3,
// widgets get allocated the amount of size they ask for,
// leading to excessively long widgets.
if (min >= -SCALARPARAM_G_MAXDOUBLE) {
} else {
this->min = -SCALARPARAM_G_MAXDOUBLE;
}
if (max <= SCALARPARAM_G_MAXDOUBLE) {
} else {
this->max = SCALARPARAM_G_MAXDOUBLE;
}
}
void
{
digits = 0;
inc_step = 1;
inc_page = 10;
}
void
{
this->overwrite_widget = overwrite_widget;
}
{
Inkscape::UI::Widget::RegisteredScalar *rsu = Gtk::manage( new Inkscape::UI::Widget::RegisteredScalar(
param_label, param_tooltip, param_key, *param_wr, param_effect->getRepr(), param_effect->getSPDoc() ) );
rsu->setProgrammatically = false;
if (add_slider) {
}
if(!overwrite_widget){
}
}
void
{
}
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 :