spin-scale.cpp revision 253ced74a9eaba9a1fab5e20628e27b1d03a4612
/*
* Author:
*
* Copyright (C) 2012 Author
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "spin-scale.h"
#include <gtkmm/adjustment.h>
#include <glibmm/stringutils.h>
#include "ui/widget/gimpspinscale.h"
namespace Inkscape {
namespace UI {
namespace Widget {
: AttrWidget(a, value)
{
#if WITH_GTKMM_3_0
#else
#endif
if (tip_text){
}
}
#if WITH_GTKMM_3_0
#else
#endif
: AttrWidget(a, 0.0),
{
if (tip_text){
}
}
{
//if(_spin.get_digits() == 0)
// return Glib::Ascii::dtostr((int)val);
//else
}
{
if(val)
else
}
{
return _adjustment->signal_value_changed();
}
{
return _adjustment->get_value();
}
{
}
{
}
{
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _adjustment;
}
#if WITH_GTKMM_3_0
#else
#endif
{
return _adjustment;
}
DualSpinScale::DualSpinScale(const char* label1, const char* label2, double value, double lower, double upper, double step_inc,
: AttrWidget(a),
//TRANSLATORS: "Link" means to _link_ two sliders together
{
_s1.get_adjustment()->signal_value_changed().connect(sigc::mem_fun(*this, &DualSpinScale::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;
}
/*void DualSpinScale::remove_scale()
{
_s1.remove_scale();
_s2.remove_scale();
}*/
void DualSpinScale::link_toggled()
{
}
void DualSpinScale::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 :