spin-slider.cpp revision d754d035663e44cb000f1f2b41a2fe8bfcfebd6d
/**
* \brief Groups an HScale and a SpinButton together using the same Adjustment
*
* Author:
* Nicholas Bishop <nicholasbishop@gmail.com>
* Felipe C. da S. Sanches <felipe.sanches@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);
if (tip_text){
}
_scale.set_draw_value(false);
}
{
if(_spin.get_digits() == 0)
else
}
{
if(val)
else
}
{
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()
{
}
: AttrWidget(a),
_link(_("Link"))
{
_s1.get_adjustment().signal_value_changed().connect(sigc::mem_fun(*this, &DualSpinSlider::update_linked));
pack_start(*vb);
pack_start(_link, false, false);
_link.set_active(true);
show_all();
}
{
if(_link.get_active())
return _s1.get_as_attribute();
else
}
{
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();
}
void DualSpinSlider::link_toggled()
{
}
void DualSpinSlider::update_linked()
{
if(_link.get_active())
}
} // 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 :