5cca8d64413c37c8181a13586c645c1804fb61bf
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 };
55 } // namespace Widget
56 } // namespace UI
57 } // namespace Inkscape
59 #endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
61 /*
62 Local Variables:
63 mode:c++
64 c-file-style:"stroustrup"
65 c-file-offsets:((innamespace . 0)(inline-open . 0))
66 indent-tabs-mode:nil
67 fill-column:99
68 End:
69 */
70 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :