tolerance-slider.h revision 5ae629c910bd31486272c4dc7c31f450b7b454fd
493N/A/** \file
0N/A * \brief
1130N/A *
0N/A * This widget is part of the Document properties dialog.
0N/A *
919N/A * Authors:
919N/A * Ralf Stephan <ralf@ark.in-berlin.de>
919N/A *
919N/A * Copyright (C) 2006 Authors
919N/A *
0N/A * Released under GNU GPL. Read the file 'COPYING' for more information.
919N/A */
919N/A
919N/A#ifndef INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
0N/A#define INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
919N/A
919N/A#include <gtkmm/tooltips.h>
919N/A#include <gtkmm/checkbutton.h>
919N/A
919N/Anamespace Inkscape {
919N/Anamespace UI {
919N/Anamespace Widget {
0N/A
0N/Aclass Registry;
0N/A
0N/Aclass ToleranceSlider {
0N/Apublic:
0N/A ToleranceSlider();
970N/A ~ToleranceSlider();
970N/A void init (const Glib::ustring& label1,
970N/A const Glib::ustring& label2,
0N/A const Glib::ustring& tip1,
0N/A const Glib::ustring& tip2,
0N/A const Glib::ustring& key,
0N/A Registry& wr);
970N/A void setValue (double);
493N/A void setLimits (double, double);
970N/A Gtk::VBox* _vbox;
0N/A
1003N/Aprotected:
1003N/A void on_scale_changed();
1003N/A void on_toggled();
1003N/A void update (double val);
1003N/A Gtk::HBox *_hbox;
1003N/A Gtk::HScale *_hscale;
1003N/A Gtk::CheckButton *_button;
970N/A Gtk::Tooltips _tt;
970N/A Registry *_wr;
0N/A Glib::ustring _key;
970N/A sigc::connection _scale_changed_connection;
970N/A sigc::connection _btn_toggled_connection;
731N/A double _old_val;
970N/A};
970N/A
970N/A
970N/A} // namespace Widget
561N/A} // namespace UI
493N/A} // namespace Inkscape
970N/A
970N/A#endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
970N/A
970N/A/*
970N/A Local Variables:
0N/A mode:c++
0N/A c-file-style:"stroustrup"
0N/A c-file-offsets:((innamespace . 0)(inline-open . 0))
970N/A indent-tabs-mode:nil
970N/A fill-column:99
970N/A End:
0N/A*/
1219N/A// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
1219N/A