Inkscape
Vector Graphics Editor
|
#include <registered-widget.h>
Public Member Functions | |
RegisteredRandom (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 (double val, long startseed) |
![]() | |
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 |
![]() | |
Random (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Random scalar Widget. | |
Random (Glib::ustring const &label, Glib::ustring const &tooltip, unsigned digits, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Random Scalar Widget. | |
Random (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::RefPtr< Gtk::Adjustment > adjust, unsigned digits=0, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Random Scalar Widget. | |
long | getStartSeed () const |
Gets the startseed. | |
void | setStartSeed (long newseed) |
Sets the startseed number. | |
![]() | |
Scalar (Glib::ustring const &label, Glib::ustring const &tooltip, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Scalar Widget. | |
Scalar (Glib::ustring const &label, Glib::ustring const &tooltip, unsigned digits, Glib::ustring const &icon={}, bool mnemonic=true) | |
Construct a Scalar Widget. | |
Scalar (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 Scalar 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 | getValue () const |
Get the value in the spin_button. | |
int | getValueAsInt () const |
Get the value spin_button represented as an integer. | |
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 (double value, bool setProg=true) |
Sets the value of the spin button. | |
void | setWidthChars (unsigned chars) |
Sets the width of the spin button by number of characters. | |
void | update () |
Manually forces an update of the spin button. | |
void | addSlider () |
Adds a slider (HScale) to the left of the spinbox. | |
void | setNoLeadingZeros () |
remove leading zeros fron widget. | |
bool | setNoLeadingZerosOutput () |
void | setWidthChars (gint width_chars) |
Set the number of set width chars of entry. | |
Glib::SignalProxy< void()> | signal_value_changed () |
Signal raised when the spin button's value changes. | |
void | hide_label () |
SpinButton const & | getSpinButton () const |
SpinButton & | getSpinButton () |
![]() | |
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_changed_connection |
sigc::scoped_connection | _reseeded_connection |
Additional Inherited Members | |
![]() | |
sigc::signal< void()> | signal_reseeded |
![]() | |
bool | setProgrammatically |
true if the value was set by setValue, not changed by the user; if a callback checks it, it must reset it back to false. | |
![]() | |
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 |
![]() | |
long | startseed |
Definition at line 371 of file registered-widget.h.
Inkscape::UI::Widget::RegisteredRandom::RegisteredRandom | ( | 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 646 of file registered-widget.cpp.
References _reseeded_connection, _value_changed_connection, Inkscape::UI::Widget::RegisteredWidget< Random >::init_parent(), key, on_value_changed(), Inkscape::UI::Widget::Scalar::setDigits(), Inkscape::UI::Widget::Scalar::setIncrements(), Inkscape::UI::Widget::Scalar::setProgrammatically, Inkscape::UI::Widget::Scalar::setRange(), Inkscape::UI::Widget::Random::signal_reseeded, and Inkscape::UI::Widget::Scalar::signal_value_changed().
|
protected |
Definition at line 670 of file registered-widget.cpp.
References Inkscape::UI::Widget::RegisteredWidget< Random >::_wr, Inkscape::UI::Widget::Random::getStartSeed(), Inkscape::UI::Widget::Scalar::getValue(), Inkscape::UI::Widget::Registry::isUpdating(), Inkscape::UI::Widget::Scalar::setProgrammatically, Inkscape::UI::Widget::Registry::setUpdating(), Inkscape::SVGOStringStream::str(), and Inkscape::UI::Widget::RegisteredWidget< Random >::write_to_xml().
Referenced by RegisteredRandom().
void Inkscape::UI::Widget::RegisteredRandom::setValue | ( | double | val, |
long | startseed | ||
) |
Definition at line 663 of file registered-widget.cpp.
References Inkscape::UI::Widget::Random::setStartSeed(), Inkscape::UI::Widget::Scalar::setValue(), and Inkscape::UI::Widget::Random::startseed.
|
private |
Definition at line 387 of file registered-widget.h.
Referenced by RegisteredRandom().
|
private |
Definition at line 386 of file registered-widget.h.
Referenced by RegisteredRandom().