Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::ComboToolItem Class Referencefinal

#include <combo-tool-item.h>

Inheritance diagram for Inkscape::UI::Widget::ComboToolItem:

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 ComboToolItemcreate (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
 

Detailed Description

Definition at line 57 of file combo-tool-item.h.

Constructor & Destructor Documentation

◆ ComboToolItem()

Inkscape::UI::Widget::ComboToolItem::ComboToolItem ( Glib::ustring  group_label,
Glib::ustring  tooltip,
Glib::ustring  stock_id,
Glib::RefPtr< Gtk::ListStore >  store,
bool  has_entry = false 
)
private

◆ ~ComboToolItem()

Inkscape::UI::Widget::ComboToolItem::~ComboToolItem ( )
finalprivatedefault

Member Function Documentation

◆ create()

ComboToolItem * Inkscape::UI::Widget::ComboToolItem::create ( const Glib::ustring &  label,
const Glib::ustring &  tooltip,
const Glib::ustring &  stock_id,
Glib::RefPtr< Gtk::ListStore >  store,
bool  has_entry = false 
)
static

◆ focus_on_click()

void Inkscape::UI::Widget::ComboToolItem::focus_on_click ( bool  focus_on_click)

◆ get_active()

◆ get_active_text()

Glib::ustring Inkscape::UI::Widget::ComboToolItem::get_active_text ( )

◆ get_store()

◆ on_changed_combobox()

void Inkscape::UI::Widget::ComboToolItem::on_changed_combobox ( )
private

Definition at line 196 of file combo-tool-item.cpp.

References _active, _changed, _changed_after, _combobox, and set_active().

Referenced by ComboToolItem().

◆ populate_combobox()

◆ set_active()

◆ set_icon_size()

void Inkscape::UI::Widget::ComboToolItem::set_icon_size ( Gtk::IconSize  size)
inline

Definition at line 75 of file combo-tool-item.h.

References _icon_size, and Inkscape::size.

◆ signal_changed()

◆ signal_changed_after()

sigc::signal< void(int)> Inkscape::UI::Widget::ComboToolItem::signal_changed_after ( )
inline

◆ use_group_label()

◆ use_icon()

void Inkscape::UI::Widget::ComboToolItem::use_icon ( bool  use_icon)

◆ use_label()

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().

◆ use_pixbuf()

void Inkscape::UI::Widget::ComboToolItem::use_pixbuf ( bool  use_pixbuf)

Member Data Documentation

◆ _active

int Inkscape::UI::Widget::ComboToolItem::_active
private

◆ _changed

sigc::signal<void (int)> Inkscape::UI::Widget::ComboToolItem::_changed
protected

Definition at line 86 of file combo-tool-item.h.

Referenced by on_changed_combobox(), and signal_changed().

◆ _changed_after

sigc::signal<void (int)> Inkscape::UI::Widget::ComboToolItem::_changed_after
protected

Definition at line 87 of file combo-tool-item.h.

Referenced by on_changed_combobox(), and signal_changed_after().

◆ _combobox

Gtk::ComboBox* Inkscape::UI::Widget::ComboToolItem::_combobox
private

◆ _container

Gtk::Box* Inkscape::UI::Widget::ComboToolItem::_container
private

Definition at line 106 of file combo-tool-item.h.

Referenced by ComboToolItem(), and use_group_label().

◆ _group_label

Glib::ustring Inkscape::UI::Widget::ComboToolItem::_group_label
private

Definition at line 90 of file combo-tool-item.h.

Referenced by ComboToolItem(), and use_group_label().

◆ _group_label_widget

std::unique_ptr<Gtk::Label> Inkscape::UI::Widget::ComboToolItem::_group_label_widget
private

Definition at line 105 of file combo-tool-item.h.

Referenced by use_group_label().

◆ _icon_size

Gtk::IconSize Inkscape::UI::Widget::ComboToolItem::_icon_size
private

Definition at line 101 of file combo-tool-item.h.

Referenced by set_icon_size().

◆ _stock_id

Glib::ustring Inkscape::UI::Widget::ComboToolItem::_stock_id
private

Definition at line 92 of file combo-tool-item.h.

◆ _store

Glib::RefPtr<Gtk::ListStore> Inkscape::UI::Widget::ComboToolItem::_store
private

Definition at line 93 of file combo-tool-item.h.

Referenced by ComboToolItem(), get_active_text(), get_store(), and populate_combobox().

◆ _tooltip

Glib::ustring Inkscape::UI::Widget::ComboToolItem::_tooltip
private

Definition at line 91 of file combo-tool-item.h.

Referenced by populate_combobox().

◆ _use_icon

bool Inkscape::UI::Widget::ComboToolItem::_use_icon
private

Definition at line 99 of file combo-tool-item.h.

Referenced by populate_combobox(), and use_icon().

◆ _use_label

bool Inkscape::UI::Widget::ComboToolItem::_use_label
private

Definition at line 98 of file combo-tool-item.h.

Referenced by populate_combobox(), and use_label().

◆ _use_pixbuf

bool Inkscape::UI::Widget::ComboToolItem::_use_pixbuf
private

Definition at line 100 of file combo-tool-item.h.

Referenced by populate_combobox(), and use_pixbuf().


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