blob: 2df441135dfb2aa9c8eaf6cc2f49704eb738fe0c (
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
86
87
88
89
90
91
92
93
94
95
96
97
|
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef SEEN_MESH_TOOLBAR_H
#define SEEN_MESH_TOOLBAR_H
/*
* Mesh aux toolbar
*
* Authors:
* bulia byak <bulia@dr.com>
* Tavmjong Bah <tavmjong@free.fr>
*
* Copyright (C) 2012 authors
* Copyright (C) 2005 authors
*
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
#include "toolbar.h"
#include <gtkmm/adjustment.h>
class SPDesktop;
class SPObject;
namespace Gtk {
class RadioToolButton;
}
namespace Inkscape {
class Selection;
namespace UI {
class SimplePrefPusher;
namespace Tools {
class ToolBase;
}
namespace Widget {
class ComboToolItem;
class SpinButtonToolItem;
}
namespace Toolbar {
class MeshToolbar : public Toolbar {
private:
std::vector<Gtk::RadioToolButton *> _new_type_buttons;
std::vector<Gtk::RadioToolButton *> _new_fillstroke_buttons;
UI::Widget::ComboToolItem *_select_type_item;
Gtk::ToggleToolButton *_edit_fill_item;
Gtk::ToggleToolButton *_edit_stroke_item;
Glib::RefPtr<Gtk::Adjustment> _row_adj;
Glib::RefPtr<Gtk::Adjustment> _col_adj;
std::unique_ptr<UI::SimplePrefPusher> _edit_fill_pusher;
std::unique_ptr<UI::SimplePrefPusher> _edit_stroke_pusher;
std::unique_ptr<UI::SimplePrefPusher> _show_handles_pusher;
sigc::connection c_selection_changed;
sigc::connection c_selection_modified;
sigc::connection c_subselection_changed;
sigc::connection c_defs_release;
sigc::connection c_defs_modified;
void new_geometry_changed(int mode);
void new_fillstroke_changed(int mode);
void row_changed();
void col_changed();
void toggle_fill_stroke();
void selection_changed(Inkscape::Selection *selection);
void toggle_handles();
void watch_ec(SPDesktop* desktop, Inkscape::UI::Tools::ToolBase* ec);
void selection_modified(Inkscape::Selection *selection, guint flags);
void drag_selection_changed(gpointer dragger);
void defs_release(SPObject *defs);
void defs_modified(SPObject *defs, guint flags);
void warning_popup();
void type_changed(int mode);
void toggle_sides();
void make_elliptical();
void pick_colors();
void fit_mesh();
protected:
MeshToolbar(SPDesktop *desktop);
public:
static GtkWidget * create(SPDesktop *desktop);
};
}
}
}
#endif /* !SEEN_MESH_TOOLBAR_H */
|