Inkscape
Vector Graphics Editor
|
#include <combo-tool-item.h>
Public Member Functions | |
void | use_label (bool use_label) |
void | use_icon (bool use_icon) |
void | focus_on_click (bool focus_on_click) |
void | use_pixbuf (bool use_pixbuf) |
void | use_group_label (bool use_group_label) |
int | get_active () const |
Glib::ustring | get_active_text () |
void | set_active (int active) |
void | set_icon_size (Gtk::IconSize size) |
Glib::RefPtr< Gtk::ListStore > const & | get_store () |
sigc::signal< void(int)> | signal_changed () |
sigc::signal< void(int)> | signal_changed_after () |
Static Public Member Functions | |
static ComboToolItem * | create (const Glib::ustring &label, const Glib::ustring &tooltip, const Glib::ustring &stock_id, Glib::RefPtr< Gtk::ListStore > store, bool has_entry=false) |
Protected Member Functions | |
void | populate_combobox () |
Protected Attributes | |
sigc::signal< void(int)> | _changed |
sigc::signal< void(int)> | _changed_after |
Private Member Functions | |
void | on_changed_combobox () |
ComboToolItem (Glib::ustring group_label, Glib::ustring tooltip, Glib::ustring stock_id, Glib::RefPtr< Gtk::ListStore > store, bool has_entry=false) | |
~ComboToolItem () final | |
Private Attributes | |
Glib::ustring | _group_label |
Glib::ustring | _tooltip |
Glib::ustring | _stock_id |
Glib::RefPtr< Gtk::ListStore > | _store |
int | _active |
bool | _use_label |
bool | _use_icon |
bool | _use_pixbuf |
Gtk::IconSize | _icon_size |
Gtk::ComboBox * | _combobox |
std::unique_ptr< Gtk::Label > | _group_label_widget |
Gtk::Box * | _container |
Definition at line 57 of file combo-tool-item.h.
|
private |
Definition at line 48 of file combo-tool-item.cpp.
References _combobox, _container, _group_label, _store, Inkscape::append(), on_changed_combobox(), Inkscape::UI::pack_start(), populate_combobox(), and Inkscape::UI::Widget::strip_trailing().
|
finalprivatedefault |
|
static |
Definition at line 39 of file combo-tool-item.cpp.
References store.
Referenced by Inkscape::UI::Toolbar::PencilToolbar::add_powerstroke_cap(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), Inkscape::UI::Widget::UnitTracker::create_tool_item(), Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar(), and Inkscape::UI::Toolbar::PaintbucketToolbar::PaintbucketToolbar().
void Inkscape::UI::Widget::ComboToolItem::focus_on_click | ( | bool | focus_on_click | ) |
Definition at line 86 of file combo-tool-item.cpp.
References _combobox, and focus_on_click().
Referenced by focus_on_click(), and Inkscape::UI::Toolbar::TextToolbar::TextToolbar().
|
inline |
Definition at line 72 of file combo-tool-item.h.
References _active.
Referenced by Inkscape::UI::Toolbar::GradientToolbar::get_selected_gradient(), Inkscape::UI::Toolbar::GradientToolbar::get_selected_stop(), and Inkscape::UI::Toolbar::PencilToolbar::shapewidth_value_changed().
Glib::ustring Inkscape::UI::Widget::ComboToolItem::get_active_text | ( | ) |
Definition at line 189 of file combo-tool-item.cpp.
References _active, _store, and Inkscape::UI::Widget::ComboToolItemColumns::col_label.
|
inline |
Definition at line 77 of file combo-tool-item.h.
References _store.
Referenced by Inkscape::UI::Toolbar::GradientToolbar::_update(), Inkscape::UI::Toolbar::GradientToolbar::get_selected_gradient(), Inkscape::UI::Toolbar::GradientToolbar::get_selected_stop(), Inkscape::UI::Toolbar::GradientToolbar::select_stop_by_draggers(), and Inkscape::UI::Toolbar::GradientToolbar::update_stop_list().
|
private |
Definition at line 196 of file combo-tool-item.cpp.
References _active, _changed, _changed_after, _combobox, and set_active().
Referenced by ComboToolItem().
|
protected |
Definition at line 134 of file combo-tool-item.cpp.
References _active, _combobox, _store, _tooltip, _use_icon, _use_label, _use_pixbuf, cells(), Inkscape::UI::Widget::ComboToolItemColumns::col_icon, Inkscape::UI::Widget::ComboToolItemColumns::col_label, Inkscape::UI::Widget::ComboToolItemColumns::col_pixbuf, Inkscape::UI::Widget::ComboToolItemColumns::col_sensitive, Inkscape::Preferences::get(), and Inkscape::Preferences::getBool().
Referenced by ComboToolItem(), use_icon(), use_label(), and use_pixbuf().
void Inkscape::UI::Widget::ComboToolItem::set_active | ( | int | active | ) |
Definition at line 178 of file combo-tool-item.cpp.
References _active, and _combobox.
Referenced by Inkscape::UI::Toolbar::GradientToolbar::_update(), Inkscape::UI::Toolbar::PencilToolbar::add_powerstroke_cap(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), Inkscape::UI::Toolbar::PaintbucketToolbar::defaults(), Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar(), on_changed_combobox(), Inkscape::UI::Toolbar::PaintbucketToolbar::PaintbucketToolbar(), Inkscape::UI::Toolbar::LPEToolbar::sel_changed(), Inkscape::UI::Toolbar::GradientToolbar::select_stop_by_draggers(), and Inkscape::UI::Toolbar::MeshToolbar::selection_changed().
|
inline |
Definition at line 75 of file combo-tool-item.h.
References _icon_size, and Inkscape::size.
|
inline |
Definition at line 79 of file combo-tool-item.h.
References _changed.
Referenced by Inkscape::UI::Toolbar::PencilToolbar::add_powerstroke_cap(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar(), and Inkscape::UI::Toolbar::PaintbucketToolbar::PaintbucketToolbar().
|
inline |
Definition at line 80 of file combo-tool-item.h.
References _changed_after.
Referenced by Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), and Inkscape::UI::Toolbar::TextToolbar::TextToolbar().
void Inkscape::UI::Widget::ComboToolItem::use_group_label | ( | bool | use_group_label | ) |
Definition at line 114 of file combo-tool-item.cpp.
References _combobox, _container, _group_label, _group_label_widget, Inkscape::UI::pack_start(), and use_group_label().
Referenced by Inkscape::UI::Toolbar::PencilToolbar::add_powerstroke_cap(), Inkscape::UI::Toolbar::PencilToolbar::add_shape_option(), Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), Inkscape::UI::Toolbar::LPEToolbar::LPEToolbar(), Inkscape::UI::Toolbar::MeshToolbar::MeshToolbar(), Inkscape::UI::Toolbar::PaintbucketToolbar::PaintbucketToolbar(), and use_group_label().
void Inkscape::UI::Widget::ComboToolItem::use_icon | ( | bool | use_icon | ) |
Definition at line 100 of file combo-tool-item.cpp.
References _use_icon, populate_combobox(), and use_icon().
Referenced by Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), and use_icon().
void Inkscape::UI::Widget::ComboToolItem::use_label | ( | bool | use_label | ) |
Definition at line 93 of file combo-tool-item.cpp.
References _use_label, populate_combobox(), and use_label().
Referenced by use_label().
void Inkscape::UI::Widget::ComboToolItem::use_pixbuf | ( | bool | use_pixbuf | ) |
Definition at line 107 of file combo-tool-item.cpp.
References _use_pixbuf, populate_combobox(), and use_pixbuf().
Referenced by Inkscape::UI::Toolbar::GradientToolbar::GradientToolbar(), and use_pixbuf().
|
private |
Definition at line 95 of file combo-tool-item.h.
Referenced by get_active(), get_active_text(), on_changed_combobox(), populate_combobox(), and set_active().
|
protected |
Definition at line 86 of file combo-tool-item.h.
Referenced by on_changed_combobox(), and signal_changed().
|
protected |
Definition at line 87 of file combo-tool-item.h.
Referenced by on_changed_combobox(), and signal_changed_after().
|
private |
Definition at line 104 of file combo-tool-item.h.
Referenced by ComboToolItem(), focus_on_click(), on_changed_combobox(), populate_combobox(), set_active(), and use_group_label().
|
private |
Definition at line 106 of file combo-tool-item.h.
Referenced by ComboToolItem(), and use_group_label().
|
private |
Definition at line 90 of file combo-tool-item.h.
Referenced by ComboToolItem(), and use_group_label().
|
private |
Definition at line 105 of file combo-tool-item.h.
Referenced by use_group_label().
|
private |
Definition at line 101 of file combo-tool-item.h.
Referenced by set_icon_size().
|
private |
Definition at line 92 of file combo-tool-item.h.
|
private |
Definition at line 93 of file combo-tool-item.h.
Referenced by ComboToolItem(), get_active_text(), get_store(), and populate_combobox().
|
private |
Definition at line 91 of file combo-tool-item.h.
Referenced by populate_combobox().
|
private |
Definition at line 99 of file combo-tool-item.h.
Referenced by populate_combobox(), and use_icon().
|
private |
Definition at line 98 of file combo-tool-item.h.
Referenced by populate_combobox(), and use_label().
|
private |
Definition at line 100 of file combo-tool-item.h.
Referenced by populate_combobox(), and use_pixbuf().