2eeacb403d578636aba47a86bde27a89ae5728d3
1 /** \file
2 * \brief
3 *
4 * This widget is part of the Document properties dialog.
5 *
6 * Authors:
7 * Ralf Stephan <ralf@ark.in-berlin.de>
8 *
9 * Copyright (C) 2006 Authors
10 *
11 * Released under GNU GPL. Read the file 'COPYING' for more information.
12 */
14 #ifndef INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
15 #define INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
18 namespace Inkscape {
19 namespace UI {
20 namespace Widget {
22 class Registry;
23 class ToleranceSlider {
24 public:
25 ToleranceSlider();
26 ~ToleranceSlider();
27 void init (const Glib::ustring& label1,
28 const Glib::ustring& label2,
29 const Glib::ustring& tip,
30 const Glib::ustring& key,
31 Registry& wr);
32 void setValue (double, bool);
33 void setLimits (double, double);
34 Gtk::HBox* _hbox;
36 protected:
37 void on_scale_changed();
38 void update();
39 sigc::connection _scale_changed_connection;
40 Gtk::HScale *_hscale;
41 Registry *_wr;
42 Glib::ustring _key;
43 };
46 } // namespace Widget
47 } // namespace UI
48 } // namespace Inkscape
50 #endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
52 /*
53 Local Variables:
54 mode:c++
55 c-file-style:"stroustrup"
56 c-file-offsets:((innamespace . 0)(inline-open . 0))
57 indent-tabs-mode:nil
58 fill-column:99
59 End:
60 */
61 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :