~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/ui/dialog/guides.h

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <gtkmm/label.h>
21
21
#include <gtkmm/stock.h>
22
22
#include <gtkmm/adjustment.h>
 
23
#include <gtkmm/colorbutton.h>
23
24
#include "ui/widget/button.h"
 
25
#include "ui/widget/spinbutton.h"
 
26
#include "ui/widget/unit-menu.h"
 
27
#include "ui/widget/scalar-unit.h"
 
28
#include "ui/widget/entry.h"
24
29
#include <2geom/point.h>
25
30
 
 
31
class SPGuide;
 
32
class SPDesktop;
 
33
 
26
34
namespace Inkscape {
27
35
namespace UI {
 
36
 
 
37
namespace Widget {
 
38
  class UnitMenu;
 
39
};
 
40
 
28
41
namespace Dialogs {
29
42
 
30
43
class GuidelinePropertiesDialog : public Gtk::Dialog {
45
58
 
46
59
    void _response(gint response);
47
60
    void _modeChanged();
 
61
    void _colorChanged();
48
62
 
49
63
private:
50
64
    GuidelinePropertiesDialog(GuidelinePropertiesDialog const &); // no copy
55
69
    Gtk::Table  _layout_table;
56
70
    Gtk::Label  _label_name;
57
71
    Gtk::Label  _label_descr;
58
 
    Gtk::Label  _label_units;
59
 
    Gtk::Label  _label_X;
60
 
    Gtk::Label  _label_Y;
61
 
    Gtk::Label  _label_degrees;
62
72
    Inkscape::UI::Widget::CheckButton _relative_toggle;
63
 
    Gtk::Adjustment _adjustment_x;
64
 
    Gtk::SpinButton _spin_button_x;
65
 
    Gtk::Adjustment _adjustment_y;
66
 
    Gtk::SpinButton _spin_button_y;
67
 
 
68
 
    Gtk::Adjustment _adj_angle;
69
 
    Gtk::SpinButton _spin_angle;
70
 
 
71
 
    Gtk::Widget *_unit_selector;
 
73
    static bool _relative_toggle_status; // remember the status of the _relative_toggle_status button across instances
 
74
    Inkscape::UI::Widget::UnitMenu _unit_menu;
 
75
    Inkscape::UI::Widget::ScalarUnit _spin_button_x;
 
76
    Inkscape::UI::Widget::ScalarUnit _spin_button_y;
 
77
    Inkscape::UI::Widget::Entry _label_entry;
 
78
    Gtk::ColorButton _color;
 
79
 
 
80
    Inkscape::UI::Widget::ScalarUnit _spin_angle;
 
81
    static Glib::ustring _angle_unit_status; // remember the status of the _relative_toggle_status button across instances
 
82
 
72
83
    bool _mode;
73
84
    Geom::Point _oldpos;
74
85
    gdouble _oldangle;
90
101
  fill-column:99
91
102
  End:
92
103
*/
93
 
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
 
104
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :