2
* \brief Fill and Stroke dialog,
3
* based on sp_object_properties_dialog
2
* @brief Fill and Stroke dialog - implementation
4
* Based on the old sp_object_properties_dialog.
6
7
* Bryce W. Harrington <bryce@bryceharrington.org>
7
8
* Gustav Broberg <broberg@kth.se>
11
12
* Released under GNU GPL. Read the file 'COPYING' for more information.
18
15
#include "desktop-handles.h"
19
16
#include "desktop-style.h"
20
17
#include "document.h"
21
18
#include "fill-and-stroke.h"
22
19
#include "filter-chemistry.h"
23
20
#include "inkscape.h"
24
#include "inkscape-stock.h"
25
21
#include "selection.h"
27
23
#include "svg/css-ostringstream.h"
24
#include "ui/icon-names.h"
26
#include "widgets/fill-style.h"
27
#include "widgets/icon.h"
28
#include "widgets/paint-selector.h"
29
#include "widgets/stroke-style.h"
29
30
#include "xml/repr.h"
30
#include "widgets/icon.h"
32
#include "dialogs/fill-style.h"
33
#include "dialogs/stroke-style.h"
35
#include <widgets/paint-selector.h>
37
32
namespace Inkscape {
41
36
FillAndStroke::FillAndStroke()
42
: UI::Widget::Panel ("", "dialogs.fillstroke", SP_VERB_DIALOG_FILL_STROKE),
37
: UI::Widget::Panel ("", "/dialogs/fillstroke", SP_VERB_DIALOG_FILL_STROKE),
43
38
_page_fill(1, 1, true, true),
44
39
_page_stroke_paint(1, 1, true, true),
45
40
_page_stroke_style(1, 1, true, true),
51
46
contents->pack_start(_notebook, true, true);
53
_notebook.append_page(_page_fill, _createPageTabLabel(_("Fill"), INKSCAPE_STOCK_PROPERTIES_FILL_PAGE));
54
_notebook.append_page(_page_stroke_paint, _createPageTabLabel(_("Stroke _paint"), INKSCAPE_STOCK_PROPERTIES_STROKE_PAINT_PAGE));
55
_notebook.append_page(_page_stroke_style, _createPageTabLabel(_("Stroke st_yle"), INKSCAPE_STOCK_PROPERTIES_STROKE_PAGE));
48
_notebook.append_page(_page_fill, _createPageTabLabel(_("Fill"), INKSCAPE_ICON_OBJECT_FILL));
49
_notebook.append_page(_page_stroke_paint, _createPageTabLabel(_("Stroke _paint"), INKSCAPE_ICON_OBJECT_STROKE));
50
_notebook.append_page(_page_stroke_style, _createPageTabLabel(_("Stroke st_yle"), INKSCAPE_ICON_OBJECT_STROKE_STYLE));
58
53
_layoutPageStrokePaint();
88
83
FillAndStroke::_layoutPageStrokeStyle()
90
Gtk::Widget *ssl = manage(Glib::wrap(sp_stroke_style_line_widget_new()));
85
//Gtk::Widget *ssl = manage(Glib::wrap(sp_stroke_style_line_widget_new()));
86
//Gtk::Widget *ssl = static_cast<Gtk::Widget *>(sp_stroke_style_line_widget_new());
87
Gtk::Widget *ssl = sp_stroke_style_line_widget_new();
91
88
_page_stroke_style.table().attach(*ssl, 0, 1, 0, 1);