0915287863d390676100dd0a1ab5de8e8a3f49dc
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/spinbutton.h>
18 #include <gtkmm/label.h>
19 #include <gtkmm/stock.h>
20 #include <gtkmm/adjustment.h>
22 namespace Inkscape {
23 namespace UI {
24 namespace Dialogs {
26 class GuidelinePropertiesDialog : public Gtk::Dialog {
27 public:
28 GuidelinePropertiesDialog(SPGuide *guide, SPDesktop *desktop);
29 virtual ~GuidelinePropertiesDialog();
31 Glib::ustring getName() const { return "LayerPropertiesDialog"; }
33 static void showDialog(SPGuide *guide, SPDesktop *desktop);
35 protected:
36 void _setup();
38 void _onApply();
39 void _onOK();
40 void _onDelete();
42 void _response(gint response);
43 void _modeChanged();
45 private:
46 GuidelinePropertiesDialog(GuidelinePropertiesDialog const &); // no copy
47 GuidelinePropertiesDialog &operator=(GuidelinePropertiesDialog const &); // no assign
49 SPDesktop *_desktop;
50 SPGuide *_guide;
51 Gtk::HBox _b1;
52 Gtk::VBox _b2;
53 Gtk::HBox _b3;
54 Gtk::HBox _b4;
55 Gtk::Label _l1;
56 Gtk::Label _l2;
57 Gtk::Button _but;
58 Gtk::Label _m;
59 Gtk::Adjustment _a;
60 Gtk::SpinButton _e;
62 GtkWidget *_u;
63 bool _mode;
64 gdouble _oldpos;
65 };
67 } // namespace
68 } // namespace
69 } // namespace
72 #endif // INKSCAPE_DIALOG_GUIDELINE_H
74 /*
75 Local Variables:
76 mode:c++
77 c-file-style:"stroustrup"
78 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
79 indent-tabs-mode:nil
80 fill-column:99
81 End:
82 */
83 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :