blob: 165aec791bf9a99b3b8bfff5767b8f5ab3e60933 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
// SPDX-License-Identifier: GPL-2.0-or-later
/** @file
* @brief Fill style configuration
*/
/* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2010 Jon A. Cruz
* Copyright (C) 2002 Lauris Kaplinski
*
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
#ifndef SEEN_DIALOGS_SP_FILL_STYLE_H
#define SEEN_DIALOGS_SP_FILL_STYLE_H
#include "ui/widget/paint-selector.h"
#include <gtkmm/box.h>
namespace Gtk {
class Widget;
}
class SPDesktop;
namespace Inkscape {
namespace UI {
namespace Tools {
class ToolBase;
}
namespace Widget {
class FillNStroke : public Gtk::Box {
private:
FillOrStroke kind;
SPDesktop *_desktop = nullptr;
PaintSelector *_psel = nullptr;
guint32 _last_drag = 0;
guint _drag_id = 0;
bool _update = false;
sigc::connection subselChangedConn;
sigc::connection eventContextConn;
sigc::connection stop_selected_connection;
void paintModeChangeCB(UI::Widget::PaintSelector::Mode mode, bool switch_style);
void paintChangedCB();
static gboolean dragDelayCB(gpointer data);
void eventContextCB(SPDesktop *desktop, Inkscape::UI::Tools::ToolBase *eventcontext);
void dragFromPaint();
void updateFromPaint(bool switch_style = false);
public:
FillNStroke(FillOrStroke k);
~FillNStroke() override;
void selectionModifiedCB(guint flags);
void performUpdate();
void setFillrule(PaintSelector::FillRule mode);
void setDesktop(SPDesktop *desktop);
};
} // namespace Widget
} // namespace UI
} // namespace Inkscape
#endif // SEEN_DIALOGS_SP_FILL_STYLE_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|