spin-slider.cpp revision e3b2acf99faddc117281614b33fe55e7c8141278
/**
* \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;
}
{
}
void SpinSlider::remove_scale()
{
}
{
}
{
}
{
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);
}
void DualSpinSlider::remove_scale()
{
_s1.remove_scale();
_s2.remove_scale();
}
} // 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 :