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 "ui/widget/panel.h"
25 #include "ui/widget/notebook-page.h"
26 #include "ui/widget/object-composite-settings.h"
28 using namespace Inkscape::UI::Widget;
30 namespace Inkscape {
31 namespace UI {
32 namespace Dialog {
34 class FillAndStroke : public UI::Widget::Panel {
35 public:
36 FillAndStroke();
37 virtual ~FillAndStroke();
39 static FillAndStroke &getInstance() { return *new FillAndStroke(); }
41 void selectionChanged(Inkscape::Application *inkscape,
42 Inkscape::Selection *selection);
44 void showPageFill();
45 void showPageStrokePaint();
46 void showPageStrokeStyle();
48 protected:
49 Gtk::Notebook _notebook;
51 NotebookPage _page_fill;
52 NotebookPage _page_stroke_paint;
53 NotebookPage _page_stroke_style;
55 StyleSubject::Selection _subject;
56 ObjectCompositeSettings _composite_settings;
58 Gtk::HBox &_createPageTabLabel(const Glib::ustring &label,
59 const char *label_image);
61 void _layoutPageFill();
62 void _layoutPageStrokePaint();
63 void _layoutPageStrokeStyle();
65 private:
66 FillAndStroke(FillAndStroke const &d);
67 FillAndStroke& operator=(FillAndStroke const &d);
68 };
70 } // namespace Dialog
71 } // namespace UI
72 } // namespace Inkscape
74 #endif // INKSCAPE_UI_DIALOG_FILL_AND_STROKE_H
76 /*
77 Local Variables:
78 mode:c++
79 c-file-style:"stroustrup"
80 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
81 indent-tabs-mode:nil
82 fill-column:99
83 End:
84 */
85 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :