Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::CompletionPopup Class Reference

#include <completion-popup.h>

Inheritance diagram for Inkscape::UI::Widget::CompletionPopup:

Public Member Functions

 CompletionPopup ()
 
 ~CompletionPopup () override
 
PopoverMenuget_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
 

Detailed Description

Definition at line 23 of file completion-popup.h.

Constructor & Destructor Documentation

◆ CompletionPopup()

◆ ~CompletionPopup()

Inkscape::UI::Widget::CompletionPopup::~CompletionPopup ( )
overridedefault

Member Function Documentation

◆ add_to_completion_list()

void Inkscape::UI::Widget::CompletionPopup::add_to_completion_list ( int  id,
Glib::ustring  name,
Glib::ustring  icon_name,
Glib::ustring  search_text = {} 
)

◆ clear()

void Inkscape::UI::Widget::CompletionPopup::clear ( )
private

Clear search box without triggering completion popup menu.

Definition at line 153 of file completion-popup.cpp.

References _search.

Referenced by CompletionPopup().

◆ clear_completion_list()

void Inkscape::UI::Widget::CompletionPopup::clear_completion_list ( )

◆ get_entry()

◆ get_menu()

PopoverMenu & Inkscape::UI::Widget::CompletionPopup::get_menu ( )

◆ on_button_press()

sigc::signal< void()> & Inkscape::UI::Widget::CompletionPopup::on_button_press ( )

◆ on_focus()

sigc::signal< bool()> & Inkscape::UI::Widget::CompletionPopup::on_focus ( )

◆ on_match_selected()

sigc::signal< void(int)> & Inkscape::UI::Widget::CompletionPopup::on_match_selected ( )

◆ onPopoverKeyPressed()

bool Inkscape::UI::Widget::CompletionPopup::onPopoverKeyPressed ( unsigned  keyval,
unsigned  keycode,
Gdk::ModifierType  state 
)
private

Member Data Documentation

◆ _builder

Glib::RefPtr<Gtk::Builder> Inkscape::UI::Widget::CompletionPopup::_builder
private

Definition at line 41 of file completion-popup.h.

Referenced by CompletionPopup().

◆ _button

Gtk::MenuButton& Inkscape::UI::Widget::CompletionPopup::_button
private

Definition at line 44 of file completion-popup.h.

Referenced by CompletionPopup(), and onPopoverKeyPressed().

◆ _button_press

sigc::signal<void ()> Inkscape::UI::Widget::CompletionPopup::_button_press
private

Definition at line 48 of file completion-popup.h.

Referenced by CompletionPopup(), and on_button_press().

◆ _completion

Glib::RefPtr<Gtk::EntryCompletion> Inkscape::UI::Widget::CompletionPopup::_completion
private

Definition at line 46 of file completion-popup.h.

Referenced by CompletionPopup().

◆ _list

Glib::RefPtr<Gtk::ListStore> Inkscape::UI::Widget::CompletionPopup::_list
private

◆ _match_selected

sigc::signal<void (int)> Inkscape::UI::Widget::CompletionPopup::_match_selected
private

Definition at line 47 of file completion-popup.h.

Referenced by CompletionPopup(), and on_match_selected().

◆ _menu_search

Glib::ustring Inkscape::UI::Widget::CompletionPopup::_menu_search
private

Definition at line 50 of file completion-popup.h.

Referenced by CompletionPopup(), and onPopoverKeyPressed().

◆ _on_focus

sigc::signal<bool ()> Inkscape::UI::Widget::CompletionPopup::_on_focus
private

Definition at line 49 of file completion-popup.h.

Referenced by on_focus().

◆ _popover_menu

PopoverMenu Inkscape::UI::Widget::CompletionPopup::_popover_menu
private

Definition at line 45 of file completion-popup.h.

Referenced by CompletionPopup(), get_menu(), and onPopoverKeyPressed().

◆ _search

Gtk::Entry& Inkscape::UI::Widget::CompletionPopup::_search
private

Definition at line 43 of file completion-popup.h.

Referenced by clear(), CompletionPopup(), and get_entry().


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