Inkscape
Vector Graphics Editor
|
#include <drop-down-list.h>
Public Member Functions | |
DropDownList () | |
DropDownList (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder) | |
unsigned int | append (const Glib::ustring &item) |
Glib::ustring | get_string (unsigned int position) const |
unsigned int | get_item_count () const |
void | remove_all () |
Glib::SignalProxyProperty | signal_changed () |
void | enable_search (bool enable=true) |
void | set_row_separator_func (std::function< bool(unsigned int)> callback) |
Private Member Functions | |
void | _init () |
Private Attributes | |
Glib::RefPtr< Gtk::StringList > | _model = Gtk::StringList::create({}) |
Glib::RefPtr< Gtk::SignalListItemFactory > | _factory = Gtk::SignalListItemFactory::create() |
std::function< bool(unsigned int)> | _separator_callback |
Definition at line 26 of file drop-down-list.h.
Inkscape::UI::Widget::DropDownList::DropDownList | ( | ) |
Definition at line 10 of file drop-down-list.cpp.
References _init().
Inkscape::UI::Widget::DropDownList::DropDownList | ( | BaseObjectType * | cobject, |
const Glib::RefPtr< Gtk::Builder > & | builder | ||
) |
Definition at line 14 of file drop-down-list.cpp.
References _init().
|
private |
Definition at line 21 of file drop-down-list.cpp.
References _factory, _model, _separator_callback, item, and label.
Referenced by DropDownList(), and DropDownList().
unsigned int Inkscape::UI::Widget::DropDownList::append | ( | const Glib::ustring & | item | ) |
Definition at line 48 of file drop-down-list.cpp.
Referenced by Inkscape::UI::Widget::UnitMenu::addUnit(), Inkscape::UI::Widget::ComboBoxEnum< E >::ComboBoxEnum(), Inkscape::UI::Widget::PrefCombo::init(), Inkscape::UI::Widget::PrefCombo::init(), Inkscape::UI::Widget::UnitMenu::setUnitType(), and Inkscape::UI::Widget::StrokeStyle::StrokeStyle().
void Inkscape::UI::Widget::DropDownList::enable_search | ( | bool | enable = true | ) |
Definition at line 54 of file drop-down-list.cpp.
|
inline |
Definition at line 38 of file drop-down-list.h.
References _model.
Referenced by Inkscape::UI::Widget::UnitMenu::setUnit().
|
inline |
Definition at line 36 of file drop-down-list.h.
References _model.
Referenced by Inkscape::UI::Widget::UnitMenu::get_selected_string(), and Inkscape::UI::Widget::UnitMenu::setUnit().
|
inline |
Definition at line 40 of file drop-down-list.h.
References _model.
Referenced by Inkscape::UI::Widget::UnitMenu::resetUnitType().
void Inkscape::UI::Widget::DropDownList::set_row_separator_func | ( | std::function< bool(unsigned int)> | callback | ) |
Definition at line 66 of file drop-down-list.cpp.
References _separator_callback.
Referenced by Inkscape::UI::Widget::ComboBoxEnum< E >::ComboBoxEnum().
|
inline |
Definition at line 43 of file drop-down-list.h.
Referenced by Inkscape::UI::Widget::SimpleFilterModifier::SimpleFilterModifier().
|
private |
Definition at line 55 of file drop-down-list.h.
Referenced by _init(), and enable_search().
|
private |
Definition at line 54 of file drop-down-list.h.
Referenced by _init(), append(), get_item_count(), get_string(), and remove_all().
|
private |
Definition at line 56 of file drop-down-list.h.
Referenced by _init(), and set_row_separator_func().