Code

search and reset buttons added to ocal related features. fixed signals in import...
[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>
18 #include <gtkmm/checkbutton.h>
20 namespace Inkscape {
21 namespace UI {
22 namespace Widget {
24 class Registry;
26 class ToleranceSlider {
27 public:
28     ToleranceSlider();
29     ~ToleranceSlider();
30     void init (const Glib::ustring& label1, 
31             const Glib::ustring& label2, 
32             const Glib::ustring& tip1,
33             const Glib::ustring& tip2, 
34             const Glib::ustring& key, 
35             Registry& wr);
36     void setValue (double);
37     void setLimits (double, double);
38     Gtk::VBox* _vbox;
40 protected:
41     void on_scale_changed();
42     void on_toggled();
43     void update (double val);
44     Gtk::HBox         *_hbox;
45     Gtk::HScale       *_hscale;
46     Gtk::CheckButton  *_button;
47     Gtk::Tooltips      _tt;
48     Registry          *_wr;
49     Glib::ustring      _key;
50     sigc::connection   _scale_changed_connection;
51     sigc::connection   _btn_toggled_connection;
52     double _old_val;
53 };
56 } // namespace Widget
57 } // namespace UI
58 } // namespace Inkscape
60 #endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
62 /*
63   Local Variables:
64   mode:c++
65   c-file-style:"stroustrup"
66   c-file-offsets:((innamespace . 0)(inline-open . 0))
67   indent-tabs-mode:nil
68   fill-column:99
69   End:
70 */
71 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :