Inkscape
Vector Graphics Editor
|
#include <completion-popup.h>
Public Member Functions | |
CompletionPopup () | |
~CompletionPopup () override | |
PopoverMenu & | get_menu () |
Gtk::Entry & | get_entry () |
void | clear_completion_list () |
void | add_to_completion_list (int id, Glib::ustring name, Glib::ustring icon_name, Glib::ustring search_text={}) |
sigc::signal< void(int)> & | on_match_selected () |
sigc::signal< void()> & | on_button_press () |
sigc::signal< bool()> & | on_focus () |
Private Member Functions | |
bool | onPopoverKeyPressed (unsigned keyval, unsigned keycode, Gdk::ModifierType state) |
void | clear () |
Clear search box without triggering completion popup menu. | |
Private Attributes | |
Glib::RefPtr< Gtk::Builder > | _builder |
Glib::RefPtr< Gtk::ListStore > | _list |
Gtk::Entry & | _search |
Gtk::MenuButton & | _button |
PopoverMenu | _popover_menu |
Glib::RefPtr< Gtk::EntryCompletion > | _completion |
sigc::signal< void(int)> | _match_selected |
sigc::signal< void()> | _button_press |
sigc::signal< bool()> | _on_focus |
Glib::ustring | _menu_search |
Definition at line 23 of file completion-popup.h.
Inkscape::UI::Widget::CompletionPopup::CompletionPopup | ( | ) |
Definition at line 25 of file completion-popup.cpp.
References _builder, _button, _button_press, _completion, _list, _match_selected, _menu_search, _popover_menu, _search, Inkscape::UI::Widget::PopoverMenu::activate(), Inkscape::append(), clear(), Inkscape::UI::Widget::ColID, Inkscape::UI::Widget::ColSearch, Inkscape::UI::create_builder(), Inkscape::UI::get_widget(), key, and onPopoverKeyPressed().
|
overridedefault |
void Inkscape::UI::Widget::CompletionPopup::add_to_completion_list | ( | int | id, |
Glib::ustring | name, | ||
Glib::ustring | icon_name, | ||
Glib::ustring | search_text = {} |
||
) |
Definition at line 124 of file completion-popup.cpp.
References _list, Inkscape::UI::Widget::ColIcon, Inkscape::UI::Widget::ColID, Inkscape::UI::Widget::ColName, Inkscape::UI::Widget::ColSearch, and name.
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::add_effects().
|
private |
Clear search box without triggering completion popup menu.
Definition at line 153 of file completion-popup.cpp.
References _search.
Referenced by CompletionPopup().
void Inkscape::UI::Widget::CompletionPopup::clear_completion_list | ( | ) |
Definition at line 120 of file completion-popup.cpp.
References _list.
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::add_effects(), and Inkscape::UI::Dialog::LivePathEffectEditor::add_lpes().
Gtk::Entry & Inkscape::UI::Widget::CompletionPopup::get_entry | ( | ) |
Definition at line 136 of file completion-popup.cpp.
References _search.
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::FilterEffectsDialog(), Inkscape::UI::Dialog::LivePathEffectEditor::focus_dialog(), and Inkscape::UI::Dialog::LivePathEffectEditor::LivePathEffectEditor().
PopoverMenu & Inkscape::UI::Widget::CompletionPopup::get_menu | ( | ) |
Definition at line 132 of file completion-popup.cpp.
References _popover_menu.
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::add_effects(), and Inkscape::UI::Dialog::LivePathEffectEditor::add_lpes().
sigc::signal< void()> & Inkscape::UI::Widget::CompletionPopup::on_button_press | ( | ) |
Definition at line 144 of file completion-popup.cpp.
References _button_press.
Referenced by Inkscape::UI::Dialog::LivePathEffectEditor::LivePathEffectEditor().
sigc::signal< bool()> & Inkscape::UI::Widget::CompletionPopup::on_focus | ( | ) |
Definition at line 148 of file completion-popup.cpp.
References _on_focus.
Referenced by Inkscape::UI::Dialog::LivePathEffectEditor::LivePathEffectEditor().
sigc::signal< void(int)> & Inkscape::UI::Widget::CompletionPopup::on_match_selected | ( | ) |
Definition at line 140 of file completion-popup.cpp.
References _match_selected.
Referenced by Inkscape::UI::Dialog::FilterEffectsDialog::FilterEffectsDialog(), and Inkscape::UI::Dialog::LivePathEffectEditor::LivePathEffectEditor().
|
private |
Definition at line 81 of file completion-popup.cpp.
References _button, _menu_search, _popover_menu, Inkscape::UI::Widget::PopoverMenu::activate(), len, and Inkscape::UI::Widget::PopoverMenu::unset_items_focus_hover().
Referenced by CompletionPopup().
|
private |
Definition at line 41 of file completion-popup.h.
Referenced by CompletionPopup().
|
private |
Definition at line 44 of file completion-popup.h.
Referenced by CompletionPopup(), and onPopoverKeyPressed().
|
private |
Definition at line 48 of file completion-popup.h.
Referenced by CompletionPopup(), and on_button_press().
|
private |
Definition at line 46 of file completion-popup.h.
Referenced by CompletionPopup().
|
private |
Definition at line 42 of file completion-popup.h.
Referenced by add_to_completion_list(), clear_completion_list(), and CompletionPopup().
|
private |
Definition at line 47 of file completion-popup.h.
Referenced by CompletionPopup(), and on_match_selected().
|
private |
Definition at line 50 of file completion-popup.h.
Referenced by CompletionPopup(), and onPopoverKeyPressed().
|
private |
Definition at line 49 of file completion-popup.h.
Referenced by on_focus().
|
private |
Definition at line 45 of file completion-popup.h.
Referenced by CompletionPopup(), get_menu(), and onPopoverKeyPressed().
|
private |
Definition at line 43 of file completion-popup.h.
Referenced by clear(), CompletionPopup(), and get_entry().