tolerance-slider.cpp revision dd6aed16b4ad3361abd09ee6e6a826ae7820ff3a
/** \file
*
Implementation of tolerance slider widget.
*
* Authors:
* Ralf Stephan <ralf@ark.in-berlin.de>
*
* Copyright (C) 2006 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtkmm/adjustment.h>
#include "svg/stringstream.h"
#include "inkscape.h"
#include "document.h"
#include "desktop-handles.h"
#include "sp-namedview.h"
#include "registry.h"
#include "tolerance-slider.h"
namespace Inkscape {
namespace UI {
namespace Widget {
//===================================================
//---------------------------------------------------
//====================================================
: _hbox(0)
{
}
{
}
void
ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr)
{
_hscale->set_draw_value (true);
// Gtk::Label *theLabel2 = manage (new Gtk::Label (label2));
// _hbox->add (*theLabel2);
_scale_changed_connection = _hscale->signal_value_changed().connect (sigc::mem_fun (*this, &ToleranceSlider::update));
}
void
{
if (is_absolute)
{
}
else
{
}
update();
}
void
{
}
void
{
if (_wr->isUpdating())
return;
if (!dt)
return;
_wr->setUpdating (true);
_wr->setUpdating (false);
}
} // namespace Dialog
} // 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 :