Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::RegisteredColorPicker Class Reference

#include <registered-widget.h>

Inheritance diagram for Inkscape::UI::Widget::RegisteredColorPicker:
Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker > Inkscape::UI::Widget::LabelledColorPicker Inkscape::UI::Widget::Labelled

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)
 
- Public Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >
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
 
- Public Member Functions inherited from Inkscape::UI::Widget::LabelledColorPicker
 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)
 
- Public Member Functions inherited from Inkscape::UI::Widget::Labelled
 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

- Protected Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >
 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)
 
- Protected Attributes inherited from Inkscape::UI::Widget::RegisteredWidget< LabelledColorPicker >
Registry_wr
 
Glib::ustring _key
 
Inkscape::XML::Noderepr
 
SPDocumentdoc
 
Glib::ustring event_description
 
Glib::ustring icon_name
 
bool write_undo
 
std::string _undo_id
 

Detailed Description

Definition at line 284 of file registered-widget.h.

Constructor & Destructor Documentation

◆ RegisteredColorPicker()

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.

Member Function Documentation

◆ closeWindow()

void Inkscape::UI::Widget::RegisteredColorPicker::closeWindow ( )

◆ on_changed()

◆ setColor()

void Inkscape::UI::Widget::RegisteredColorPicker::setColor ( Colors::Color const &  color)

◆ setCustomSetter()

void Inkscape::UI::Widget::RegisteredColorPicker::setCustomSetter ( std::function< void(Inkscape::XML::Node *, Colors::Color)>  setter)
inline

Definition at line 297 of file registered-widget.h.

Member Data Documentation

◆ _akey

Glib::ustring Inkscape::UI::Widget::RegisteredColorPicker::_akey
private

Definition at line 300 of file registered-widget.h.

Referenced by on_changed().

◆ _changed_connection

sigc::scoped_connection Inkscape::UI::Widget::RegisteredColorPicker::_changed_connection
private

Definition at line 301 of file registered-widget.h.

◆ _ckey

Glib::ustring Inkscape::UI::Widget::RegisteredColorPicker::_ckey
private

Definition at line 300 of file registered-widget.h.

Referenced by on_changed().

◆ _setter

std::function<void (Inkscape::XML::Node*, Colors::Color)> Inkscape::UI::Widget::RegisteredColorPicker::_setter
private

Definition at line 302 of file registered-widget.h.


The documentation for this class was generated from the following files: