spin-slider.cpp revision 68991a79a8befd84ef9af0fd4ee9922e149c5205
/**
* \brief Groups an HScale and a SpinButton together using the same Adjustment
*
* Author:
* Nicholas Bishop <nicholasbishop@gmail.com>
*
* Copyright (C) 2007 Author
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "glib/gstrfuncs.h"
#include "spin-slider.h"
namespace Inkscape {
namespace UI {
namespace Widget {
{
pack_start(_spin, false, false);
_scale.set_draw_value(false);
}
{
if(_spin.get_digits() == 0)
else
}
{
if(val)
}
{
return _adjustment.signal_value_changed();
}
double SpinSlider::get_value() const
{
return _adjustment.get_value();
}
{
}
{
return _adjustment;
}
{
return _adjustment;
}
{
return _scale;
}
{
return _scale;
}
{
return _spin;
}
{
return _spin;
}
{
}
{
}
{
}
{
if(val) {
// Split val into parts
if(toks) {
if(toks[0])
if(toks[1])
}
}
}
{
return _signal_value_changed;
}
{
return _s1;
}
{
return _s1;
}
{
return _s2;
}
{
return _s2;
}
{
_s1.set_update_policy(u);
_s2.set_update_policy(u);
}
} // namespace Widget
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :