/*
* Author:
* Nicholas Bishop <nicholasbishop@gmail.com>
* Felipe C. da S. Sanches <juca@members.fsf.org>
*
* Copyright (C) 2007 Author
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "spin-slider.h"
#include <glibmm/stringutils.h>
namespace Inkscape {
namespace UI {
namespace Widget {
: AttrWidget(a, value),
#if WITH_GTKMM_3_0
#else
#endif
{
pack_start(_spin, false, false);
if (tip_text){
}
_scale.set_draw_value(false);
}
{
#if WITH_GTKMM_3_0
#else
#endif
if(_spin.get_digits() == 0)
else
}
{
#if WITH_GTKMM_3_0
if(val)
else
#else
if(val)
else
#endif
}
{
#if WITH_GTKMM_3_0
return _adjustment->signal_value_changed();
#else
return _adjustment.signal_value_changed();
#endif
}
{
#if WITH_GTKMM_3_0
return _adjustment->get_value();
#else
return _adjustment.get_value();
#endif
}
{
#if WITH_GTKMM_3_0
#else
#endif
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _adjustment;
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _adjustment;
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _scale;
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _scale;
}
{
return _spin;
}
{
return _spin;
}
{
}
: AttrWidget(a),
//TRANSLATORS: "Link" means to _link_ two sliders together
{
#if WITH_GTKMM_3_0
_s1.get_adjustment()->signal_value_changed().connect(sigc::mem_fun(*this, &DualSpinSlider::update_linked));
#else
_s1.get_adjustment().signal_value_changed().connect(sigc::mem_fun(*this, &DualSpinSlider::update_linked));
#endif
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])
#if WITH_GTKMM_3_0
#else
#endif
}
}
}
{
return _signal_value_changed;
}
{
return _s1;
}
{
return _s1;
}
{
return _s2;
}
{
return _s2;
}
{
_s1.remove_scale();
_s2.remove_scale();
}
{
}
{
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)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :