![]() |
![]() |
Public Types | |
typedef sigc::slot< bool, const Glib::ustring &, const TreeModel::const_iterator& > | SlotMatch |
For example, bool on_match(const Glib::ustring& key, const TreeModel::const_iterator& iter);. | |
Public Member Functions | |
void | complete () |
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. | |
void | delete_action (int index=0) |
Deletes the action at index from completion 's action list. | |
const Entry* | get_entry () const |
Gets the entry completion has been attached to. | |
Entry* | get_entry () |
Gets the entry completion has been attached to. | |
bool | get_inline_completion () const |
Returns whether the common prefix of the possible completions should be automatically inserted in the entry. | |
int | get_minimum_key_length () const |
Returns the minimum key length as set for completion . | |
Glib::RefPtr<const TreeModel> | get_model () const |
Returns the model the Gtk::EntryCompletion is using as data source. | |
Glib::RefPtr<TreeModel> | get_model () |
Returns the model the Gtk::EntryCompletion is using as data source. | |
bool | get_popup_completion () const |
Returns whether the completions should be presented in a popup window. | |
bool | get_popup_set_width () const |
Returns whether the completion popup window will be resized to the width of the entry. | |
bool | get_popup_single_match () const |
Returns whether the completion popup window will appear even if there is only a single match. | |
int | get_text_column () |
Returns the column in the model of completion to get strings from. | |
const GtkEntryCompletion* | gobj () const |
Provides access to the underlying C GObject. | |
GtkEntryCompletion* | gobj () |
Provides access to the underlying C GObject. | |
GtkEntryCompletion* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | insert_action_markup (const Glib::ustring& markup, int index) |
void | insert_action_text (const Glib::ustring& text, int index) |
void | insert_prefix () |
Requests a prefix insertion. | |
void | prepend_action_markup (const Glib::ustring& markup) |
void | prepend_action_text (const Glib::ustring& text) |
Glib::PropertyProxy_ReadOnly< bool > | property_inline_completion () const |
Whether the common prefix should be inserted automatically. | |
Glib::PropertyProxy<bool> | property_inline_completion () |
Whether the common prefix should be inserted automatically. | |
Glib::PropertyProxy_ReadOnly< int > | property_minimum_key_length () const |
Minimum length of the search key in order to look up matches. | |
Glib::PropertyProxy<int> | property_minimum_key_length () |
Minimum length of the search key in order to look up matches. | |
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gtk::TreeModel >> | property_model () const |
The model to find matches in. | |
Glib::PropertyProxy< Glib::RefPtr< Gtk::TreeModel > > | property_model () |
The model to find matches in. | |
Glib::PropertyProxy_ReadOnly< bool > | property_popup_completion () const |
Whether the completions should be shown in a popup window. | |
Glib::PropertyProxy<bool> | property_popup_completion () |
Whether the completions should be shown in a popup window. | |
Glib::PropertyProxy_ReadOnly< bool > | property_popup_set_width () const |
If TRUE. | |
Glib::PropertyProxy<bool> | property_popup_set_width () |
If TRUE. | |
Glib::PropertyProxy_ReadOnly< bool > | property_popup_single_match () const |
If TRUE. | |
Glib::PropertyProxy<bool> | property_popup_single_match () |
If TRUE. | |
Glib::PropertyProxy_ReadOnly< int > | property_text_column () const |
The column of the model containing the strings. | |
Glib::PropertyProxy<int> | property_text_column () |
The column of the model containing the strings. | |
void | set_inline_completion (bool inline_completion=true) |
Sets whether the common prefix of the possible completions should be automatically inserted in the entry. | |
void | set_match_func (const SlotMatch& slot) |
void | set_minimum_key_length (int length) |
Requires the length of the search key for completion to be at least length . | |
void | set_model (const Glib::RefPtr<TreeModel>& model) |
Sets the model for a Gtk::EntryCompletion. | |
void | set_popup_completion (bool popup_completion=true) |
Sets whether the completions should be presented in a popup window. | |
void | set_popup_set_width (bool popup_set_width=true) |
Sets whether the completion popup window will be resized to be the same width as the entry. | |
void | set_popup_single_width (bool popup_single_match=true) |
Sets whether the completion popup window will appear even if there is only a single match. | |
void | set_text_column (int column) |
Convenience function for setting up the most used case of this code: a completion list with just strings. | |
void | set_text_column (const TreeModelColumnBase& column) |
Convenience function for setting up the most used case of this code: a completion list with just strings. | |
Glib::SignalProxy1< void, int > | signal_action_activated () |
Emitted when an action is activated. | |
Glib::SignalProxy1< bool, const Glib::ustring& > | signal_insert_prefix () |
Emitted when the inline autocompletion is triggered. | |
Glib::SignalProxy1< bool, const TreeModel::iterator& > | signal_match_selected () |
Emitted when a match from the list is selected. | |
virtual | ~EntryCompletion () |
Static Public Member Functions | |
static Glib::RefPtr<EntryCompletion> | create () |
Protected Member Functions | |
EntryCompletion () | |
virtual void | on_action_activated (int index) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::EntryCompletion> | wrap (GtkEntryCompletion* object, bool take_copy=false) |
|
For example, bool on_match(const Glib::ustring& key, const TreeModel::const_iterator& iter);.
|
|
|
|
|
|
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key. The completion list view will be updated accordingly.
|
|
|
|
Deletes the action at index from completion 's action list.
|
|
Gets the entry completion has been attached to.
|
|
Gets the entry completion has been attached to.
|
|
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
|
|
Returns the minimum key length as set for completion .
|
|
Returns the model the Gtk::EntryCompletion is using as data source.
Returns
|
|
Returns the model the Gtk::EntryCompletion is using as data source.
Returns
|
|
Returns whether the completions should be presented in a popup window.
|
|
Returns whether the completion popup window will be resized to the width of the entry.
|
|
Returns whether the completion popup window will appear even if there is only a single match.
|
|
Returns the column in the model of completion to get strings from.
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
|
|
|
|
Requests a prefix insertion.
|
|
|
|
|
|
|
|
Whether the common prefix should be inserted automatically. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the common prefix should be inserted automatically. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Minimum length of the search key in order to look up matches. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Minimum length of the search key in order to look up matches. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The model to find matches in. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The model to find matches in. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the completions should be shown in a popup window. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Whether the completions should be shown in a popup window. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If TRUE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If TRUE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If TRUE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
If TRUE. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The column of the model containing the strings. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
The column of the model containing the strings. You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets whether the common prefix of the possible completions should be automatically inserted in the entry.
|
|
|
|
Requires the length of the search key for completion to be at least length . This is useful for long lists, where completing using a small key takes a lot of time and will come up with meaningless results anyway (ie, a too large dataset).
|
|
Sets the model for a Gtk::EntryCompletion.
If completion already has a model set, it will remove it before setting the new model. If model is
|
|
Sets whether the completions should be presented in a popup window.
|
|
Sets whether the completion popup window will be resized to be the same width as the entry.
|
|
Sets whether the completion popup window will appear even if there is only a single match.
You may want to set this to
|
|
Convenience function for setting up the most used case of this code: a completion list with just strings. This function will set up completion to have a list displaying all (and just) strings in the completion list, and to get those strings from column in the model of completion . This functions creates and adds a Gtk::CellRendererText for the selected column. If you need to set the text column, but don't want the cell renderer, use Glib::object_set() to set the text_column property directly.
|
|
Convenience function for setting up the most used case of this code: a completion list with just strings. This function will set up completion to have a list displaying all (and just) strings in the completion list, and to get those strings from column in the model of completion . This functions creates and adds a Gtk::CellRendererText for the selected column. If you need to set the text column, but don't want the cell renderer, use Glib::object_set() to set the text_column property directly.
|
|
Emitted when an action is activated.
|
|
Emitted when the inline autocompletion is triggered. The default behaviour is to make the entry display the whole prefix and select the newly inserted part. Applications may connect to this signal in order to insert only a smaller part of the prefix into the entry - e.g. the entry used in the FileChooser inserts only the part of the prefix up to the next '/'.
|
|
Emitted when a match from the list is selected. The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by iter.
|
|
|