Inkscape
Vector Graphics Editor
|
#include <registered-widget.h>
Public Member Functions | |
RegisteredTransformedPoint (Glib::ustring const &label, Glib::ustring const &tip, Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *repr_in=nullptr, SPDocument *doc_in=nullptr) | |
void | setValue (Geom::Point const &p) |
void | setTransform (Geom::Affine const &canvas_to_svg) |
![]() | |
void | set_undo_parameters (Glib::ustring _event_description, Glib::ustring _icon_name, std::string undo_id="") |
void | set_xml_target (Inkscape::XML::Node *xml_node, SPDocument *document) |
bool | is_updating () const |
![]() | |
Point (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Point Widget. | |
Point (Glib::ustring const &label, Glib::ustring const &tooltip, unsigned digits, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Point Widget. | |
Point (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::RefPtr< Gtk::Adjustment > const &adjust, unsigned digits=0, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Point Widget. | |
unsigned | getDigits () const |
Fetches the precision of the spin button. | |
double | getStep () const |
Gets the current step increment used by the spin button. | |
double | getPage () const |
Gets the current page increment used by the spin button. | |
double | getRangeMin () const |
Gets the minimum range value allowed for the spin button. | |
double | getRangeMax () const |
Gets the maximum range value allowed for the spin button. | |
bool | getSnapToTicks () const |
double | getXValue () const |
Get the value in the spin_button. | |
double | getYValue () const |
Geom::Point | getValue () const |
int | getXValueAsInt () const |
Get the value spin_button represented as an integer. | |
int | getYValueAsInt () const |
void | setDigits (unsigned digits) |
Sets the precision to be displayed by the spin button. | |
void | setIncrements (double step, double page) |
Sets the step and page increments for the spin button. | |
void | setRange (double min, double max) |
Sets the minimum and maximum range allowed for the spin button. | |
void | setValue (Geom::Point const &p) |
Sets the value of the spin button. | |
void | update () |
Manually forces an update of the spin button. | |
Glib::SignalProxy< void()> | signal_x_value_changed () |
Signal raised when the spin button's value changes. | |
Glib::SignalProxy< void()> | signal_y_value_changed () |
bool | setProgrammatically () |
Check 'setProgrammatically' of both scalar widgets. | |
void | clearProgrammatically () |
![]() | |
Labelled (Glib::ustring const &label, Glib::ustring const &tooltip, Gtk::Widget *widget, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Labelled Widget. | |
Gtk::Widget const * | getWidget () const |
Gtk::Widget * | getWidget () |
Gtk::Label const * | getLabel () const |
Gtk::Label * | getLabel () |
Protected Member Functions | |
void | on_value_changed () |
![]() | |
RegisteredWidget (Args &&...args) | |
void | init_parent (Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *const repr_in, SPDocument *const doc_in) |
void | write_to_xml (const char *const svgstr) |
Private Attributes | |
sigc::scoped_connection | _value_x_changed_connection |
sigc::scoped_connection | _value_y_changed_connection |
Geom::Affine | to_svg |
Additional Inherited Members | |
![]() | |
Registry * | _wr |
Glib::ustring | _key |
Inkscape::XML::Node * | repr |
SPDocument * | doc |
Glib::ustring | event_description |
Glib::ustring | icon_name |
bool | write_undo |
std::string | _undo_id |
![]() | |
Scalar | xwidget |
Scalar | ywidget |
Definition at line 326 of file registered-widget.h.
Inkscape::UI::Widget::RegisteredTransformedPoint::RegisteredTransformedPoint | ( | Glib::ustring const & | label, |
Glib::ustring const & | tip, | ||
Glib::ustring const & | key, | ||
Registry & | wr, | ||
Inkscape::XML::Node * | repr_in = nullptr , |
||
SPDocument * | doc_in = nullptr |
||
) |
Definition at line 505 of file registered-widget.cpp.
References _value_x_changed_connection, _value_y_changed_connection, Inkscape::UI::Widget::RegisteredWidget< Point >::init_parent(), key, on_value_changed(), Inkscape::UI::Widget::Point::setDigits(), Inkscape::UI::Widget::Point::setIncrements(), Inkscape::UI::Widget::Point::setRange(), Inkscape::UI::Widget::Point::signal_x_value_changed(), and Inkscape::UI::Widget::Point::signal_y_value_changed().
|
protected |
Definition at line 541 of file registered-widget.cpp.
References Inkscape::UI::Widget::RegisteredWidget< Point >::_wr, Inkscape::UI::Widget::Point::clearProgrammatically(), Inkscape::UI::Widget::Point::getValue(), Inkscape::UI::Widget::Registry::isUpdating(), Inkscape::UI::Widget::Point::setProgrammatically(), Inkscape::UI::Widget::Registry::setUpdating(), Inkscape::SVGOStringStream::str(), to_svg, and Inkscape::UI::Widget::RegisteredWidget< Point >::write_to_xml().
Referenced by RegisteredTransformedPoint().
void Inkscape::UI::Widget::RegisteredTransformedPoint::setTransform | ( | Geom::Affine const & | canvas_to_svg | ) |
Definition at line 529 of file registered-widget.cpp.
References Geom::identity(), Geom::Affine::isSingular(), and to_svg.
void Inkscape::UI::Widget::RegisteredTransformedPoint::setValue | ( | Geom::Point const & | p | ) |
Definition at line 522 of file registered-widget.cpp.
References Geom::Affine::inverse(), and to_svg.
|
private |
Definition at line 344 of file registered-widget.h.
Referenced by RegisteredTransformedPoint().
|
private |
Definition at line 345 of file registered-widget.h.
Referenced by RegisteredTransformedPoint().
|
private |
Definition at line 346 of file registered-widget.h.
Referenced by on_value_changed(), setTransform(), and setValue().