Code

noop: dialogs/rdf.cpp: Mark a few pointers as not being written through. Make rdf_ma...
[inkscape.git] / src / dialogs / guidelinedialog.h
1 /**
2  *
3  * \brief  Dialog for modifying guidelines
4  *
5  * Author:
6  *   Andrius R. <knutux@gmail.com>
7  *
8  * Copyright (C) 2006 Authors
9  *
10  * Released under GNU GPL.  Read the file 'COPYING' for more information
11  */
13 #ifndef INKSCAPE_DIALOG_GUIDELINE_H
14 #define INKSCAPE_DIALOG_GUIDELINE_H
16 #include <gtkmm/dialog.h>
17 #include <gtkmm/table.h>
18 #include <gtkmm/spinbutton.h>
19 #include <gtkmm/label.h>
20 #include <gtkmm/stock.h>
21 #include <gtkmm/adjustment.h>
22 #include "ui/widget/button.h"
24 namespace Inkscape {
25 namespace UI {
26 namespace Dialogs {
28 class GuidelinePropertiesDialog : public Gtk::Dialog {
29 public:
30     GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop);
31     virtual ~GuidelinePropertiesDialog();
33     Glib::ustring     getName() const { return "GuidelinePropertiesDialog"; }
35     static void showDialog(SPGuide *guide, SPDesktop *desktop);
37 protected:
38     void _setup();
40     void _onApply();
41     void _onOK();
42     void _onDelete();
44     void _response(gint response);
45     void _modeChanged();
47 private:
48     GuidelinePropertiesDialog(GuidelinePropertiesDialog const &); // no copy
49     GuidelinePropertiesDialog &operator=(GuidelinePropertiesDialog const &); // no assign
51     SPDesktop *_desktop;
52     SPGuide *_guide;
53     Gtk::Table  _layout_table;
54     Gtk::Label  _label_descr;
55     Gtk::Label  _label_move;
56     Inkscape::UI::Widget::CheckButton _relative_toggle;
57     Gtk::Adjustment _adjustment;
58     Gtk::SpinButton _spin_button;
60     Gtk::Widget *_unit_selector;
61     bool _mode;
62     gdouble _oldpos;
63 };
65 } // namespace
66 } // namespace
67 } // namespace
70 #endif // INKSCAPE_DIALOG_GUIDELINE_H
72 /*
73   Local Variables:
74   mode:c++
75   c-file-style:"stroustrup"
76   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
77   indent-tabs-mode:nil
78   fill-column:99
79   End:
80 */
81 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :