1 /**
2 * \brief Fill and Stroke dialog
3 * based on sp_object_properties_dialog
4 *
5 * Authors:
6 * Bryce W. Harrington <bryce@bryceharrington.org>
7 * Gustav Broberg <broberg@kth.se>
8 *
9 * Copyright (C) 2004--2007 Authors
10 *
11 * Released under GNU GPL. Read the file 'COPYING' for more information.
12 */
14 #ifndef INKSCAPE_UI_DIALOG_FILL_AND_STROKE_H
15 #define INKSCAPE_UI_DIALOG_FILL_AND_STROKE_H
17 #include <gtkmm/adjustment.h>
18 #include <gtkmm/alignment.h>
19 #include <gtkmm/notebook.h>
20 #include <gtkmm/scale.h>
21 #include <gtkmm/spinbutton.h>
22 #include <glibmm/i18n.h>
24 #include "dialog.h"
25 #include "ui/widget/notebook-page.h"
26 #include "ui/widget/filter-effect-chooser.h"
28 using namespace Inkscape::UI::Widget;
30 namespace Inkscape {
31 namespace UI {
32 namespace Dialog {
34 class FillAndStroke : public Dialog {
35 public:
36 FillAndStroke(Behavior::BehaviorFactory behavior_factory);
37 virtual ~FillAndStroke();
39 static FillAndStroke *create(Behavior::BehaviorFactory behavior_factory)
40 { return new FillAndStroke(behavior_factory); }
42 void selectionChanged(Inkscape::Application *inkscape,
43 Inkscape::Selection *selection);
45 protected:
46 Gtk::Notebook _notebook;
48 NotebookPage _page_fill;
49 NotebookPage _page_stroke_paint;
50 NotebookPage _page_stroke_style;
52 Gtk::VBox _fe_vbox;
53 Gtk::Alignment _fe_alignment;
55 Gtk::VBox _opacity_vbox;
56 Gtk::HBox _opacity_label_box;
57 Gtk::HBox _opacity_hbox;
58 Gtk::Label _opacity_label;
59 Gtk::Adjustment _opacity_adjustment;
60 Gtk::HScale _opacity_hscale;
61 Gtk::SpinButton _opacity_spin_button;
63 Gtk::HBox& _createPageTabLabel(const Glib::ustring& label,
64 const char *label_image);
65 SimpleFilterModifier _fe_cb;
67 void _layoutPageFill();
68 void _layoutPageStrokePaint();
69 void _layoutPageStrokeStyle();
71 void _blendBlurValueChanged();
72 void _opacityValueChanged();
74 bool _blocked;
76 private:
77 FillAndStroke(FillAndStroke const &d);
78 FillAndStroke& operator=(FillAndStroke const &d);
79 };
81 } // namespace Dialog
82 } // namespace UI
83 } // namespace Inkscape
85 #endif // INKSCAPE_UI_DIALOG_FILL_AND_STROKE_H
87 /*
88 Local Variables:
89 mode:c++
90 c-file-style:"stroustrup"
91 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
92 indent-tabs-mode:nil
93 fill-column:99
94 End:
95 */
96 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :