Inkscape
Vector Graphics Editor
|
Adds a label with optional icon to another widget. More...
#include <labelled.h>
Public Member Functions | |
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 | |
bool | on_mnemonic_activate (bool group_cycling) final |
Private Attributes | |
Gtk::Widget * | _widget = nullptr |
Gtk::Label * | _label = nullptr |
Adds a label with optional icon to another widget.
Definition at line 30 of file labelled.h.
Inkscape::UI::Widget::Labelled::Labelled | ( | Glib::ustring const & | label, |
Glib::ustring const & | tooltip, | ||
Gtk::Widget * | widget, | ||
Glib::ustring const & | icon = {} , |
||
bool | mnemonic = true |
||
) |
label | Label text. |
tooltip | Tooltip markup to set on this Box. |
widget | Widget to label; should be allocated with new, as it will be passed to Gtk::manage(). |
icon | Icon name, placed before the label (defaults to empty). |
mnemonic | Mnemonic toggle; if true, an underscore (_) in the text indicates the next character should be used for the mnemonic accelerator key (defaults to true). |
Definition at line 23 of file labelled.cpp.
References _label, _widget, image, Inkscape::UI::pack_start(), Inkscape::UI::shrink, and sp_get_icon_image().
|
inline |
Definition at line 52 of file labelled.h.
References _label.
|
inline |
Definition at line 51 of file labelled.h.
References _label.
Referenced by Inkscape::UI::Dialog::GuidelinePropertiesDialog::_setup(), Inkscape::UI::Dialog::Find::Find(), Inkscape::UI::Widget::Scalar::hide_label(), and Inkscape::UI::Widget::RegisteredVector::setPolarCoords().
|
inline |
Definition at line 49 of file labelled.h.
References _widget.
|
inline |
Definition at line 48 of file labelled.h.
References _widget.
Referenced by Inkscape::UI::Widget::LabelledColorPicker::closeWindow(), Inkscape::UI::Widget::LabelledColorPicker::connectChanged(), Inkscape::UI::Widget::LabelledComboBoxEnum< E >::getCombobox(), Inkscape::UI::Widget::Entry::getEntry(), Inkscape::UI::Widget::Entry::getEntry(), Inkscape::UI::Widget::Text::getEntry(), Inkscape::UI::Widget::FontButton::getFontButton(), Inkscape::UI::Widget::Scalar::getSpinButton(), Inkscape::UI::Widget::Scalar::hide_label(), Inkscape::UI::Widget::LabelledColorPicker::LabelledColorPicker(), Inkscape::UI::Dialog::Transformation::layoutPageTransform(), Inkscape::UI::Widget::PrefSpinUnit::on_my_value_changed(), Inkscape::UI::Widget::ScalarUnit::ScalarUnit(), and Inkscape::UI::Widget::LabelledColorPicker::setColor().
|
finalprivate |
Definition at line 50 of file labelled.cpp.
References _widget.
|
private |
Definition at line 56 of file labelled.h.
Referenced by getLabel(), getLabel(), and Labelled().
|
private |
Definition at line 55 of file labelled.h.
Referenced by getWidget(), getWidget(), Labelled(), and on_mnemonic_activate().