~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/ui/widget/tolerance-slider.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** \file
 
2
 * \brief 
 
3
 *
 
4
 * This widget is part of the Document properties dialog.
 
5
 */
 
6
/*
 
7
 * Authors:
 
8
 *   Ralf Stephan <ralf@ark.in-berlin.de>
 
9
 *
 
10
 * Copyright (C) 2006 Authors
 
11
 *
 
12
 * Released under GNU GPL.  Read the file 'COPYING' for more information.
 
13
 */
 
14
 
 
15
#ifndef INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
 
16
#define INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
 
17
 
 
18
#include <gtkmm/box.h>
 
19
#include <gtkmm/tooltips.h>
 
20
#include <gtkmm/checkbutton.h>
 
21
#include <gtkmm/radiobutton.h>
 
22
#include <gtkmm/scale.h>
 
23
 
 
24
namespace Inkscape {
 
25
namespace UI {
 
26
namespace Widget {
 
27
 
 
28
class Registry;
 
29
 
 
30
class ToleranceSlider {
 
31
public:
 
32
    ToleranceSlider();
 
33
    ~ToleranceSlider();
 
34
    void init (const Glib::ustring& label1, 
 
35
            const Glib::ustring& label2, 
 
36
            const Glib::ustring& label3,
 
37
            const Glib::ustring& tip1,
 
38
            const Glib::ustring& tip2, 
 
39
            const Glib::ustring& tip3,
 
40
            const Glib::ustring& key, 
 
41
            Registry& wr);
 
42
    void setValue (double);
 
43
    void setLimits (double, double);
 
44
    Gtk::VBox* _vbox;
 
45
 
 
46
protected:
 
47
    void on_scale_changed();
 
48
    void on_toggled();
 
49
    void update (double val);
 
50
    Gtk::HBox         *_hbox;
 
51
    Gtk::HScale       *_hscale;
 
52
    Gtk::RadioButtonGroup _radio_button_group;
 
53
    Gtk::RadioButton  *_button1;
 
54
    Gtk::RadioButton  *_button2;
 
55
    Gtk::Tooltips      _tt;
 
56
    Registry          *_wr;
 
57
    Glib::ustring      _key;
 
58
    sigc::connection   _scale_changed_connection;
 
59
    sigc::connection   _btn_toggled_connection;
 
60
    double _old_val;
 
61
};
 
62
 
 
63
 
 
64
} // namespace Widget
 
65
} // namespace UI
 
66
} // namespace Inkscape
 
67
 
 
68
#endif // INKSCAPE_UI_WIDGET_TOLERANCE_SLIDER__H_
 
69
 
 
70
/*
 
71
  Local Variables:
 
72
  mode:c++
 
73
  c-file-style:"stroustrup"
 
74
  c-file-offsets:((innamespace . 0)(inline-open . 0))
 
75
  indent-tabs-mode:nil
 
76
  fill-column:99
 
77
  End:
 
78
*/
 
79
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :