Code

9860f1e4a84b19a9d27f7114c1edbd21609ec710
[inkscape.git] / src / ui / widget / tolerance-slider.h
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_
17 #include <gtkmm/tooltips.h>
19 namespace Inkscape {
20 namespace UI {
21 namespace Widget {
23 class Registry;
24 class ToleranceSlider {
25 public:
26     ToleranceSlider();
27     ~ToleranceSlider();
28     void init (const Glib::ustring& label1, 
29 //            const Glib::ustring& label2, 
30             const Glib::ustring& tip, 
31             const Glib::ustring& key, 
32             Registry& wr);
33     void setValue (double, bool);
34     void setLimits (double, double);
35     Gtk::HBox* _hbox;
37 protected:
38     void on_scale_changed();
39     void update();
40     sigc::connection  _scale_changed_connection;
41     Gtk::HScale      *_hscale;
42     Gtk::Tooltips     _tt;
43     Registry         *_wr;
44     Glib::ustring     _key;
45 };
48 } // namespace Widget
49 } // namespace UI
50 } // namespace Inkscape
52 #endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
54 /*
55   Local Variables:
56   mode:c++
57   c-file-style:"stroustrup"
58   c-file-offsets:((innamespace . 0)(inline-open . 0))
59   indent-tabs-mode:nil
60   fill-column:99
61   End:
62 */
63 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :