Inkscape
Vector Graphics Editor
|
#include <registered-widget.h>
Public Member Functions | |
RegisteredColorPicker (Glib::ustring const &label, Glib::ustring const &title, Glib::ustring const &tip, Glib::ustring const &ckey, Glib::ustring const &akey, Registry &wr, Inkscape::XML::Node *repr_in=nullptr, SPDocument *doc_in=nullptr) | |
void | setColor (Colors::Color const &) |
void | closeWindow () |
void | setCustomSetter (std::function< void(Inkscape::XML::Node *, Colors::Color)> setter) |
![]() | |
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 |
![]() | |
LabelledColorPicker (Glib::ustring const &label, Glib::ustring const &title, Glib::ustring const &tip, Colors::Color const &initial, bool undo) | |
void | setColor (Colors::Color const &color) |
void | closeWindow () |
sigc::connection | connectChanged (sigc::slot< void(Colors::Color const &)> slot) |
![]() | |
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 () |
Private Member Functions | |
void | on_changed (Colors::Color const &) |
Private Attributes | |
Glib::ustring | _ckey |
Glib::ustring | _akey |
sigc::scoped_connection | _changed_connection |
std::function< void(Inkscape::XML::Node *, Colors::Color)> | _setter |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
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 |
Definition at line 284 of file registered-widget.h.
Inkscape::UI::Widget::RegisteredColorPicker::RegisteredColorPicker | ( | Glib::ustring const & | label, |
Glib::ustring const & | title, | ||
Glib::ustring const & | tip, | ||
Glib::ustring const & | ckey, | ||
Glib::ustring const & | akey, | ||
Registry & | wr, | ||
Inkscape::XML::Node * | repr_in = nullptr , |
||
SPDocument * | doc_in = nullptr |
||
) |
Definition at line 398 of file registered-widget.cpp.
References label.
void Inkscape::UI::Widget::RegisteredColorPicker::closeWindow | ( | ) |
Definition at line 422 of file registered-widget.cpp.
References Inkscape::UI::Widget::LabelledColorPicker::closeWindow().
Referenced by Inkscape::UI::Dialog::DocumentProperties::on_response().
|
private |
Definition at line 428 of file registered-widget.cpp.
References _akey, _ckey, Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >::_wr, c, Inkscape::UI::Widget::Registry::desktop(), Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >::doc, Inkscape::DocumentUndo::done(), SPDesktop::getDocument(), SPDesktop::getNamedView(), Inkscape::Colors::Color::getOpacity(), SPObject::getRepr(), Inkscape::UI::Widget::Registry::isUpdating(), Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >::repr, Inkscape::XML::Node::setAttribute(), Inkscape::XML::Node::setAttributeCssDouble(), SPDocument::setModifiedSinceSave(), Inkscape::UI::Widget::Registry::setUpdating(), and Inkscape::Colors::Color::toString().
void Inkscape::UI::Widget::RegisteredColorPicker::setColor | ( | Colors::Color const & | color | ) |
Definition at line 416 of file registered-widget.cpp.
References Inkscape::UI::Widget::LabelledColorPicker::setColor().
Referenced by Inkscape::UI::Dialog::DocumentProperties::update_widgets().
|
inline |
Definition at line 297 of file registered-widget.h.
|
private |
Definition at line 300 of file registered-widget.h.
Referenced by on_changed().
|
private |
Definition at line 301 of file registered-widget.h.
|
private |
Definition at line 300 of file registered-widget.h.
Referenced by on_changed().
|
private |
Definition at line 302 of file registered-widget.h.