Code

Filter effects dialog:
[inkscape.git] / src / ui / dialog / fill-and-stroke.h
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();
37     virtual ~FillAndStroke();
39     static FillAndStroke *create() { return new FillAndStroke(); }
41     void selectionChanged(Inkscape::Application *inkscape,
42                           Inkscape::Selection *selection);
44 protected:
45     Gtk::Notebook   _notebook;
47     NotebookPage    _page_fill;
48     NotebookPage    _page_stroke_paint;
49     NotebookPage    _page_stroke_style;
51     Gtk::VBox       _fe_vbox;
52     Gtk::Alignment  _fe_alignment;
54     Gtk::VBox       _opacity_vbox;
55     Gtk::HBox       _opacity_label_box;
56     Gtk::HBox       _opacity_hbox;
57     Gtk::Label      _opacity_label;
58     Gtk::Adjustment _opacity_adjustment;
59     Gtk::HScale     _opacity_hscale;
60     Gtk::SpinButton _opacity_spin_button;
62     Gtk::HBox& _createPageTabLabel(const Glib::ustring& label, 
63                                    const char *label_image);
64     SimpleFilterModifier _fe_cb;
66     void _layoutPageFill();
67     void _layoutPageStrokePaint();
68     void _layoutPageStrokeStyle();
70     void _blendBlurValueChanged();
71     void _opacityValueChanged();
73     bool _blocked;
75 private:
76     FillAndStroke(FillAndStroke const &d);
77     FillAndStroke& operator=(FillAndStroke const &d);
78 };
80 } // namespace Dialog
81 } // namespace UI
82 } // namespace Inkscape
84 #endif // INKSCAPE_UI_DIALOG_FILL_AND_STROKE_H
86 /*
87   Local Variables:
88   mode:c++
89   c-file-style:"stroustrup"
90   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
91   indent-tabs-mode:nil
92   fill-column:99
93   End:
94 */
95 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :