Inkscape
Vector Graphics Editor
|
#include <mesh-toolbar.h>
Public Member Functions | |
MeshToolbar () | |
~MeshToolbar () override | |
void | setDesktop (SPDesktop *desktop) override |
![]() | |
~Toolbar () override | |
SPDesktop * | getDesktop () const |
virtual void | setActiveUnit (Util::Unit const *unit) |
void | onDefocus () override |
![]() | |
~ToolbarWidget () override | |
![]() | |
Bin (Gtk::Widget *child=nullptr) | |
Bin (BaseObjectType *cobject, Glib::RefPtr< Gtk::Builder > const &) | |
Gtk::Widget * | get_child () |
Gets the child widget, or nullptr if none. | |
Gtk::Widget const * | get_child () const |
Gets the child widget, or nullptr if none. | |
void | set_child (Gtk::Widget *child) |
Sets (parents) the child widget, or unsets (unparents) it if child is null. | |
void | set_child (Gtk::Widget &child) |
Convenience function: Sets (parents) the child widget. | |
void | unset_child () |
Convenience function: Unsets (unparents) the child widget. | |
template<typename F > | |
sigc::connection | connectBeforeResize (F &&slot) |
Register a handler to run immediately before a resize operation. | |
template<typename F > | |
sigc::connection | connectAfterResize (F &&slot) |
Register a handler to run immediately after a resize operation. | |
Private Types | |
using | ValueChangedMemFun = void(MeshToolbar::*)() |
Private Member Functions | |
MeshToolbar (Glib::RefPtr< Gtk::Builder > const &builder) | |
void | setup_derived_spin_button (UI::Widget::SpinButton &btn, Glib::ustring const &name, double default_value, ValueChangedMemFun value_changed_mem_fun) |
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 () |
void | toggle_handles () |
void | warning_popup () |
void | type_changed (int mode) |
Sets mesh type: Coons, Bicubic. | |
void | toggle_sides () |
void | make_elliptical () |
void | pick_colors () |
void | fit_mesh () |
Tools::MeshTool * | get_mesh_tool () const |
Private Attributes | |
std::vector< Gtk::ToggleButton * > | _new_type_buttons |
std::vector< Gtk::ToggleButton * > | _new_fillstroke_buttons |
UI::Widget::ComboToolItem * | _select_type_item |
Gtk::ToggleButton * | _edit_fill_btn |
Gtk::ToggleButton * | _edit_stroke_btn |
Gtk::ToggleButton * | _show_handles_btn |
UI::Widget::SpinButton & | _row_item |
UI::Widget::SpinButton & | _col_item |
std::unique_ptr< UI::SimplePrefPusher > | _edit_fill_pusher |
std::unique_ptr< UI::SimplePrefPusher > | _edit_stroke_pusher |
std::unique_ptr< UI::SimplePrefPusher > | _show_handles_pusher |
OperationBlocker | _blocker |
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 |
Additional Inherited Members | |
![]() | |
ToolbarWidget (Gtk::Box &toolbar) | |
![]() | |
ToolbarWidget (Gtk::Box &toolbar) | |
void | measure_vfunc (Gtk::Orientation orientation, int for_size, int &min, int &nat, int &min_baseline, int &nat_baseline) const override |
void | on_size_allocate (int width, int height, int baseline) override |
void | _initMenuBtns () |
![]() | |
void | measure_vfunc (Gtk::Orientation orientation, int for_size, int &min, int &nat, int &min_baseline, int &nat_baseline) const override |
![]() | |
~DefocusTarget ()=default | |
![]() | |
SPDesktop * | _desktop = nullptr |
![]() | |
Gtk::Box & | _toolbar |
Definition at line 46 of file mesh-toolbar.h.
|
private |
Definition at line 57 of file mesh-toolbar.h.
Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar | ( | ) |
Definition at line 120 of file mesh-toolbar.cpp.
References Inkscape::UI::create_builder().
|
overridedefault |
|
private |
Definition at line 124 of file mesh-toolbar.cpp.
References _col_item, Inkscape::UI::_continue, _edit_fill_btn, _edit_fill_pusher, _edit_stroke_btn, _edit_stroke_pusher, Inkscape::UI::Toolbar::ToolbarWidget::_initMenuBtns(), _row_item, _select_type_item, _show_handles_btn, _show_handles_pusher, builder, col_changed(), Inkscape::UI::Widget::ComboToolItemColumns::col_label, Inkscape::UI::Widget::ComboToolItemColumns::col_sensitive, Inkscape::UI::Widget::ComboToolItem::create(), fit_mesh(), Inkscape::UI::for_each_child(), Inkscape::Preferences::get(), Inkscape::UI::get_widget(), item, make_elliptical(), mode, new_fillstroke_changed(), new_geometry_changed(), pick_colors(), row_changed(), Inkscape::UI::Widget::ComboToolItem::set_active(), Inkscape::UI::Widget::SpinButton::set_custom_numeric_menu_data(), setup_derived_spin_button(), Inkscape::UI::Widget::ComboToolItem::signal_changed(), SP_MESH_GEOMETRY_NORMAL, store, toggle_fill_stroke(), toggle_handles(), toggle_sides(), type_changed(), Inkscape::UI::Widget::ComboToolItem::use_group_label(), and warning_popup().
|
private |
Definition at line 304 of file mesh-toolbar.cpp.
References _blocker, _col_item, OperationBlocker::block(), Inkscape::Preferences::get(), OperationBlocker::pending(), and Inkscape::Preferences::setInt().
Referenced by MeshToolbar().
|
private |
Definition at line 428 of file mesh-toolbar.cpp.
References get_mesh_tool().
Referenced by MeshToolbar().
|
private |
Definition at line 435 of file mesh-toolbar.cpp.
References Inkscape::UI::Toolbar::Toolbar::_desktop, and SPDesktop::getTool().
Referenced by fit_mesh(), make_elliptical(), pick_colors(), toggle_fill_stroke(), toggle_handles(), and toggle_sides().
|
private |
Definition at line 414 of file mesh-toolbar.cpp.
References get_mesh_tool(), and MG_CORNER_SIDE_ARC.
Referenced by MeshToolbar().
|
private |
Definition at line 286 of file mesh-toolbar.cpp.
References Inkscape::Preferences::get(), mode, and Inkscape::Preferences::setInt().
Referenced by MeshToolbar().
|
private |
Definition at line 281 of file mesh-toolbar.cpp.
References Inkscape::Preferences::get(), mode, and Inkscape::Preferences::setInt().
Referenced by MeshToolbar().
|
private |
Definition at line 421 of file mesh-toolbar.cpp.
References get_mesh_tool(), and MG_CORNER_COLOR_PICK.
Referenced by MeshToolbar().
|
private |
Definition at line 291 of file mesh-toolbar.cpp.
References _blocker, _row_item, OperationBlocker::block(), Inkscape::Preferences::get(), OperationBlocker::pending(), and Inkscape::Preferences::setInt().
Referenced by MeshToolbar().
|
private |
Definition at line 345 of file mesh-toolbar.cpp.
References _blocker, Inkscape::UI::Toolbar::Toolbar::_desktop, _select_type_item, OperationBlocker::block(), SPDesktop::getSelection(), OperationBlocker::pending(), Inkscape::UI::Widget::ComboToolItem::set_active(), and SP_MESH_TYPE_COONS.
Referenced by setDesktop(), and toggle_fill_stroke().
|
overridevirtual |
Reimplemented from Inkscape::UI::Toolbar::Toolbar.
Definition at line 242 of file mesh-toolbar.cpp.
References Inkscape::UI::Toolbar::Toolbar::_desktop, c_defs_modified, c_defs_release, c_selection_changed, c_selection_modified, c_subselection_changed, SPDocument::connectModified(), desktop, SPDesktop::getDocument(), SPDesktop::getSelection(), selection_changed(), and Inkscape::UI::Toolbar::Toolbar::setDesktop().
|
private |
Definition at line 268 of file mesh-toolbar.cpp.
References Inkscape::Preferences::get(), Inkscape::Preferences::getDouble(), name, and Inkscape::UI::Widget::SpinButton::setDefocusTarget().
Referenced by MeshToolbar().
|
private |
Definition at line 317 of file mesh-toolbar.cpp.
References _edit_fill_btn, _edit_stroke_btn, Inkscape::Preferences::get(), get_mesh_tool(), and selection_changed().
Referenced by MeshToolbar().
|
private |
Definition at line 332 of file mesh-toolbar.cpp.
References _show_handles_btn, Inkscape::Preferences::get(), and get_mesh_tool().
Referenced by MeshToolbar().
|
private |
Definition at line 407 of file mesh-toolbar.cpp.
References get_mesh_tool(), and MG_CORNER_SIDE_TOGGLE.
Referenced by MeshToolbar().
|
private |
Sets mesh type: Coons, Bicubic.
Definition at line 386 of file mesh-toolbar.cpp.
References _blocker, Inkscape::UI::Toolbar::Toolbar::_desktop, Inkscape::DocumentUndo::done(), SPDesktop::getDocument(), SPDesktop::getSelection(), mode, and OperationBlocker::pending().
Referenced by MeshToolbar().
|
private |
Definition at line 371 of file mesh-toolbar.cpp.
References Inkscape::UI::dialog_show_modal_and_selfdestruct(), and msg.
Referenced by MeshToolbar().
|
private |
Definition at line 74 of file mesh-toolbar.h.
Referenced by col_changed(), row_changed(), selection_changed(), and type_changed().
|
private |
Definition at line 68 of file mesh-toolbar.h.
Referenced by col_changed(), and MeshToolbar().
|
private |
Definition at line 63 of file mesh-toolbar.h.
Referenced by MeshToolbar(), and toggle_fill_stroke().
|
private |
Definition at line 70 of file mesh-toolbar.h.
Referenced by MeshToolbar().
|
private |
Definition at line 64 of file mesh-toolbar.h.
Referenced by MeshToolbar(), and toggle_fill_stroke().
|
private |
Definition at line 71 of file mesh-toolbar.h.
Referenced by MeshToolbar().
|
private |
Definition at line 60 of file mesh-toolbar.h.
|
private |
Definition at line 59 of file mesh-toolbar.h.
|
private |
Definition at line 67 of file mesh-toolbar.h.
Referenced by MeshToolbar(), and row_changed().
|
private |
Definition at line 61 of file mesh-toolbar.h.
Referenced by MeshToolbar(), and selection_changed().
|
private |
Definition at line 65 of file mesh-toolbar.h.
Referenced by MeshToolbar(), and toggle_handles().
|
private |
Definition at line 72 of file mesh-toolbar.h.
Referenced by MeshToolbar().
|
private |
Definition at line 80 of file mesh-toolbar.h.
Referenced by setDesktop().
|
private |
Definition at line 79 of file mesh-toolbar.h.
Referenced by setDesktop().
|
private |
Definition at line 76 of file mesh-toolbar.h.
Referenced by setDesktop().
|
private |
Definition at line 77 of file mesh-toolbar.h.
Referenced by setDesktop().
|
private |
Definition at line 78 of file mesh-toolbar.h.
Referenced by setDesktop().