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

#include <registered-widget.h>

Inheritance diagram for Inkscape::UI::Widget::RegisteredUnitMenu:
Inkscape::UI::Widget::RegisteredWidget< Labelled > Inkscape::UI::Widget::Labelled

Public Member Functions

 RegisteredUnitMenu (Glib::ustring const &label, Glib::ustring const &key, Registry &wr, Inkscape::XML::Node *repr_in=nullptr, SPDocument *doc_in=nullptr)
 
void setUnit (const Glib::ustring)
 
Unit const * getUnit () const
 
UnitMenu const * getUnitMenu () const
 
UnitMenugetUnitMenu ()
 
- Public Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Labelled >
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::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 ()
 

Private Attributes

sigc::scoped_connection _changed_connection
 

Additional Inherited Members

- Protected Member Functions inherited from Inkscape::UI::Widget::RegisteredWidget< Labelled >
 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< Labelled >
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 205 of file registered-widget.h.

Constructor & Destructor Documentation

◆ RegisteredUnitMenu()

Inkscape::UI::Widget::RegisteredUnitMenu::RegisteredUnitMenu ( Glib::ustring const &  label,
Glib::ustring const &  key,
Registry wr,
Inkscape::XML::Node repr_in = nullptr,
SPDocument doc_in = nullptr 
)

Definition at line 207 of file registered-widget.cpp.

References label.

Member Function Documentation

◆ getUnit()

Unit const * Inkscape::UI::Widget::RegisteredUnitMenu::getUnit ( ) const
inline

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

◆ getUnitMenu() [1/2]

UnitMenu * Inkscape::UI::Widget::RegisteredUnitMenu::getUnitMenu ( )
inline

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

◆ getUnitMenu() [2/2]

UnitMenu const * Inkscape::UI::Widget::RegisteredUnitMenu::getUnitMenu ( ) const
inline

◆ on_changed()

◆ setUnit()

void Inkscape::UI::Widget::RegisteredUnitMenu::setUnit ( const Glib::ustring  unit)

Member Data Documentation

◆ _changed_connection

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

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


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