Inkscape
Vector Graphics Editor
|
#include <satellitearray.h>
Public Member Functions | |
SatelliteArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, bool visible) | |
~SatelliteArrayParam () override | |
SatelliteArrayParam (const SatelliteArrayParam &)=delete | |
SatelliteArrayParam & | operator= (const SatelliteArrayParam &)=delete |
Gtk::Widget * | param_newWidget () override |
bool | param_readSVGValue (char const *strvalue) override |
void | link (SPObject *to, size_t pos=Glib::ustring::npos) |
void | unlink (std::shared_ptr< SatelliteReference > const &to) |
void | unlink (SPObject *to) |
bool | is_connected () |
void | clear () |
void | start_listening () |
void | quit_listening () |
ParamType | paramType () const override |
![]() | |
ArrayParam (const Glib::ustring &label, const Glib::ustring &tip, const Glib::ustring &key, Inkscape::UI::Widget::Registry *wr, Effect *effect, std::size_t n=0) | |
ArrayParam (const ArrayParam &) | |
ArrayParam & | operator= (const ArrayParam &) |
std::vector< std::shared_ptr< SatelliteReference > > const & | data () const |
void | param_update_default (char const *default_value) override |
Glib::ustring | param_getSVGValue () const override |
Glib::ustring | param_getDefaultSVGValue () const override |
void | param_setValue (std::vector< std::shared_ptr< SatelliteReference > > const &new_vector) |
void | param_set_default () override |
void | param_set_and_write_new_value (std::vector< std::shared_ptr< SatelliteReference > > const &new_vector) |
bool | valid_index (int index) const |
![]() | |
Parameter (Glib::ustring label, Glib::ustring tip, Glib::ustring key, Inkscape::UI::Widget::Registry *wr, Effect *effect) | |
virtual | ~Parameter () |
Parameter (const Parameter &)=delete | |
Parameter & | operator= (const Parameter &)=delete |
virtual void | param_widget_is_visible (bool is_visible) |
virtual void | param_widget_is_enabled (bool is_enabled) |
void | write_to_SVG () |
void | read_from_SVG () |
void | setUpdating (bool updating) |
bool | getUpdating () const |
Glib::ustring const * | param_getTooltip () const |
virtual bool | providesKnotHolderEntities () const |
virtual void | addKnotHolderEntities (KnotHolder *, SPItem *) |
virtual void | addCanvasIndicators (SPLPEItem const *, std::vector< Geom::PathVector > &) |
virtual void | param_editOncanvas (SPItem *, SPDesktop *) |
virtual void | param_setup_nodepath (Inkscape::NodePath::Path *) |
virtual void | param_transform_multiply (Geom::Affine const &, bool set) |
void | param_higlight (bool highlight) |
void | change_selection (Inkscape::Selection *selection) |
void | update_satellites () |
EffectType | effectType () const |
void | connect_selection_changed () |
Private Member Functions | |
void | linked_modified (SPObject *linked_obj, guint flags) |
bool | _selectIndex (const Gtk::TreeModel::iterator &iter, int *i) |
void | updatesignal () |
void | on_link_button_click () |
void | on_remove_button_click () |
void | move_up_down (int delta, Glib::ustring const &word) |
void | on_up_button_click () |
void | on_down_button_click () |
void | on_active_toggled (const Glib::ustring &item) |
void | update () |
void | initui () |
std::vector< SPObject * > | param_get_satellites () override |
Private Attributes | |
std::unique_ptr< ModelColumns > | _model |
Glib::RefPtr< Gtk::TreeStore > | _store |
std::unique_ptr< Gtk::TreeView > | _tree |
std::unique_ptr< Gtk::ScrolledWindow > | _scroller |
bool | _visible {} |
std::vector< sigc::scoped_connection > | linked_connections |
Additional Inherited Members | |
![]() | |
sigc::scoped_connection | selection_changed_connection |
Glib::ustring | param_key |
Glib::ustring | param_tooltip |
Inkscape::UI::Widget::Registry * | param_wr |
Glib::ustring | param_label |
bool | oncanvas_editable |
bool | widget_is_visible |
bool | widget_is_enabled |
![]() | |
void | writesvg (SVGOStringStream &str, std::vector< std::shared_ptr< SatelliteReference > > const &vector) const |
void | writesvgData (SVGOStringStream &str, float const &vector_data) const |
void | writesvgData (SVGOStringStream &str, double const &vector_data) const |
void | writesvgData (SVGOStringStream &str, Glib::ustring const &vector_data) const |
void | writesvgData (SVGOStringStream &str, Geom::Point const &vector_data) const |
void | writesvgData (SVGOStringStream &str, std::shared_ptr< SatelliteReference > const &vector_data) const |
void | writesvgData (SVGOStringStream &str, std::vector< NodeSatellite > const &vector_data) const |
std::shared_ptr< SatelliteReference > | readsvg (char const *str) |
double | readsvg (char const *const str) |
float | readsvg (char const *const str) |
Glib::ustring | readsvg (char const *const str) |
Geom::Point | readsvg (char const *const str) |
std::shared_ptr< SatelliteReference > | readsvg (char const *const str) |
std::vector< NodeSatellite > | readsvg (char const *const str) |
![]() | |
void | param_write_to_repr (const char *svgd) |
![]() | |
std::vector< std::shared_ptr< SatelliteReference > > | _vector |
std::size_t | _default_size |
![]() | |
bool | _updating = false |
Inkscape::Display::TemporaryItem * | ownerlocator = nullptr |
Effect * | param_effect |
Definition at line 37 of file satellitearray.h.
Inkscape::LivePathEffect::SatelliteArrayParam::SatelliteArrayParam | ( | const Glib::ustring & | label, |
const Glib::ustring & | tip, | ||
const Glib::ustring & | key, | ||
Inkscape::UI::Widget::Registry * | wr, | ||
Effect * | effect, | ||
bool | visible | ||
) |
Definition at line 51 of file satellitearray.cpp.
References _visible, initui(), Inkscape::LivePathEffect::Parameter::oncanvas_editable, and Inkscape::LivePathEffect::Parameter::param_widget_is_visible().
|
override |
Definition at line 64 of file satellitearray.cpp.
References _model, _store, Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, and quit_listening().
|
delete |
|
private |
void Inkscape::LivePathEffect::SatelliteArrayParam::clear | ( | ) |
Definition at line 452 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector.
Referenced by Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doAfterEffect(), Inkscape::LivePathEffect::LPEMirrorSymmetry::doAfterEffect(), Inkscape::LivePathEffect::LPESlice::doAfterEffect(), Inkscape::LivePathEffect::LPEMeasureSegments::doBeforeEffect(), Inkscape::LivePathEffect::Effect::doOnBeforeCommit(), Inkscape::LivePathEffect::LPECopyRotate::doOnOpen(), Inkscape::LivePathEffect::LPEMirrorSymmetry::doOnOpen(), and Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror().
|
private |
Definition at line 72 of file satellitearray.cpp.
References _model, _scroller, _store, _tree, desktop, on_active_toggled(), Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::param_getSVGValue(), and param_readSVGValue().
Referenced by param_newWidget(), and SatelliteArrayParam().
|
inline |
Definition at line 54 of file satellitearray.h.
References linked_connections.
Referenced by Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doAfterEffect(), Inkscape::LivePathEffect::LPESlice::doAfterEffect(), and Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror().
void Inkscape::LivePathEffect::SatelliteArrayParam::link | ( | SPObject * | to, |
size_t | pos = Glib::ustring::npos |
||
) |
Definition at line 412 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, _visible, SPObject::getId(), Inkscape::LivePathEffect::Effect::getLPEObj(), and Inkscape::LivePathEffect::Parameter::param_effect.
Referenced by Inkscape::LivePathEffect::LPECopyRotate::doOnOpen(), Inkscape::LivePathEffect::LPEMirrorSymmetry::doOnOpen(), param_readSVGValue(), Inkscape::LivePathEffect::LPESlice::split(), Inkscape::LivePathEffect::LPECopyRotate::toItem(), Inkscape::LivePathEffect::LPETiling::toItem(), and Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror().
|
private |
Definition at line 132 of file satellitearray.cpp.
References Inkscape::LivePathEffect::Effect::_lpe_action, Inkscape::LivePathEffect::Parameter::_updating, Inkscape::LivePathEffect::Effect::is_load, Inkscape::LivePathEffect::Effect::isReady(), Inkscape::LivePathEffect::LPE_NONE, Inkscape::LivePathEffect::LPE_UPDATE, Inkscape::LivePathEffect::Parameter::ownerlocator, Inkscape::LivePathEffect::Parameter::param_effect, and Inkscape::LivePathEffect::Effect::processObjects().
Referenced by start_listening().
|
private |
Definition at line 236 of file satellitearray.cpp.
References _selectIndex(), _store, _tree, Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, delta, Inkscape::LivePathEffect::Effect::makeUndoDone(), Inkscape::LivePathEffect::Parameter::param_effect, and w.
Referenced by on_down_button_click(), and on_up_button_click().
|
private |
Definition at line 160 of file satellitearray.cpp.
References _model, _store, Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, Inkscape::LivePathEffect::Effect::makeUndoDone(), Inkscape::LivePathEffect::Parameter::param_effect, and w.
Referenced by initui().
|
private |
Definition at line 265 of file satellitearray.cpp.
References move_up_down().
Referenced by param_newWidget().
|
private |
Definition at line 281 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, _visible, Inkscape::UI::ClipboardManager::get(), Inkscape::UI::ClipboardManager::getElementsOfType(), Inkscape::LivePathEffect::Effect::getLPEObj(), SPDocument::getObjectById(), Inkscape::LivePathEffect::Effect::getSPDoc(), SPObject::hrefList, item, Inkscape::LivePathEffect::Effect::makeUndoDone(), and Inkscape::LivePathEffect::Parameter::param_effect.
Referenced by param_newWidget().
|
private |
Definition at line 271 of file satellitearray.cpp.
References _model, _tree, SPDocument::getObjectById(), Inkscape::LivePathEffect::Effect::getSPDoc(), Inkscape::LivePathEffect::Effect::makeUndoDone(), Inkscape::LivePathEffect::Parameter::param_effect, and unlink().
Referenced by param_newWidget().
|
private |
Definition at line 259 of file satellitearray.cpp.
References move_up_down().
Referenced by param_newWidget().
|
delete |
|
overrideprivatevirtual |
Reimplemented from Inkscape::LivePathEffect::Parameter.
Definition at line 393 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector.
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >.
Definition at line 331 of file satellitearray.cpp.
References _model, _scroller, _tree, _visible, Inkscape::UI::expand_widget, initui(), on_down_button_click(), on_link_button_click(), on_remove_button_click(), on_up_button_click(), Inkscape::UI::pack_end(), Inkscape::UI::pack_start(), Inkscape::UI::shrink, and sp_get_icon_image().
|
overridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >.
Definition at line 179 of file satellitearray.cpp.
References _model, _store, SPObject::_tmpsuccessor, Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, Inkscape::LivePathEffect::Effect::getCurrrentLPEItems(), SPObject::getId(), Inkscape::LivePathEffect::Effect::getSPDoc(), Inkscape::LivePathEffect::Effect::is_applied, Inkscape::LivePathEffect::Effect::is_load, SPDocument::isSeeking(), link(), linked_connections, Inkscape::LivePathEffect::Parameter::param_effect, Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::param_getSVGValue(), Inkscape::LivePathEffect::ArrayParam< StorageType >::param_readSVGValue(), Inkscape::LivePathEffect::Parameter::param_write_to_repr(), start_listening(), unlink(), Inkscape::LivePathEffect::Parameter::update_satellites(), and w.
Referenced by initui().
|
inlineoverridevirtual |
Reimplemented from Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >.
Definition at line 58 of file satellitearray.h.
References Inkscape::LivePathEffect::SATELLITE_ARRAY.
void Inkscape::LivePathEffect::SatelliteArrayParam::quit_listening | ( | ) |
Definition at line 155 of file satellitearray.cpp.
References linked_connections.
Referenced by start_listening(), and ~SatelliteArrayParam().
void Inkscape::LivePathEffect::SatelliteArrayParam::start_listening | ( | ) |
Definition at line 112 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, SPObject::connectModified(), SPObject::connectRelease(), SPItem::connectTransformed(), item, linked_connections, linked_modified(), quit_listening(), ref, and updatesignal().
Referenced by Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doAfterEffect(), Inkscape::LivePathEffect::LPESlice::doAfterEffect(), Inkscape::LivePathEffect::LPECopyRotate::doOnOpen(), Inkscape::LivePathEffect::LPEMirrorSymmetry::doOnOpen(), Inkscape::LivePathEffect::LPEMeasureSegments::doOnOpen(), Inkscape::LivePathEffect::LPESlice::doOnOpen(), param_readSVGValue(), and Inkscape::LivePathEffect::LPEMirrorSymmetry::toMirror().
void Inkscape::LivePathEffect::SatelliteArrayParam::unlink | ( | SPObject * | to | ) |
Definition at line 436 of file satellitearray.cpp.
References Inkscape::LivePathEffect::ArrayParam< std::shared_ptr< SatelliteReference > >::_vector, and w.
void Inkscape::LivePathEffect::SatelliteArrayParam::unlink | ( | std::shared_ptr< SatelliteReference > const & | to | ) |
Definition at line 447 of file satellitearray.cpp.
References unlink().
Referenced by on_remove_button_click(), param_readSVGValue(), and unlink().
|
private |
|
private |
Definition at line 144 of file satellitearray.cpp.
References Inkscape::LivePathEffect::Effect::_lpe_action, Inkscape::LivePathEffect::Parameter::_updating, Inkscape::LivePathEffect::Effect::is_load, Inkscape::LivePathEffect::Effect::isReady(), Inkscape::LivePathEffect::LPE_NONE, Inkscape::LivePathEffect::LPE_UPDATE, Inkscape::LivePathEffect::Parameter::ownerlocator, Inkscape::LivePathEffect::Parameter::param_effect, and Inkscape::LivePathEffect::Effect::processObjects().
Referenced by start_listening().
|
private |
Definition at line 65 of file satellitearray.h.
Referenced by initui(), on_active_toggled(), on_remove_button_click(), param_newWidget(), param_readSVGValue(), and ~SatelliteArrayParam().
|
private |
Definition at line 68 of file satellitearray.h.
Referenced by initui(), and param_newWidget().
|
private |
Definition at line 66 of file satellitearray.h.
Referenced by initui(), move_up_down(), on_active_toggled(), param_readSVGValue(), and ~SatelliteArrayParam().
|
private |
Definition at line 67 of file satellitearray.h.
Referenced by _selectIndex(), initui(), move_up_down(), on_remove_button_click(), and param_newWidget().
|
private |
Definition at line 80 of file satellitearray.h.
Referenced by link(), on_link_button_click(), param_newWidget(), and SatelliteArrayParam().
|
private |
Definition at line 81 of file satellitearray.h.
Referenced by is_connected(), param_readSVGValue(), quit_listening(), and start_listening().