libt3widget
|
Partial implementation of the filtered list. More...
Public Member Functions | |
filtered_list_internal_t (list_t *list) | |
Make a new filtered_list_internal_t, wrapping an existing list. More... | |
virtual const std::string * | operator[] (size_t idx) const |
Retrieve element idx . More... | |
virtual void | reset_filter (void) |
Reset the filter. More... | |
virtual void | set_filter (const signals::slot< bool, string_list_base_t *, size_t > &_test) |
Set the filter callback. More... | |
virtual size_t | size (void) const |
Retrieve the size of the list. More... | |
Protected Member Functions | |
void | update_list (void) |
Update the filtered list. More... | |
Static Protected Member Functions | |
static bool | null_filter (list_t *, size_t) |
Protected Attributes | |
list_t * | base |
Base list of which this is a filtered view. More... | |
signals::connection | base_content_changed_connection |
Connection to base list's content_changed signal. More... | |
std::vector< size_t > | items |
Vector holding the indices in the base list of the items included in the filtered list. More... | |
optional< signals::slot< bool, list_t *, size_t > > | test |
Filter function. More... | |
Partial implementation of the filtered list.
|
inline |
Make a new filtered_list_internal_t, wrapping an existing list.
|
inlinevirtual |
Retrieve element idx
.
Implements t3_widget::list_base_t.
|
inlinevirtual |
Reset the filter.
Implements t3_widget::filtered_list_base_t.
|
inlinevirtual |
Set the filter callback.
Implements t3_widget::filtered_list_base_t.
Reimplemented in t3_widget::filtered_list_t< list_t >, and t3_widget::filtered_list_t< file_list_t >.
|
inlinevirtual |
Retrieve the size of the list.
Implements t3_widget::list_base_t.
|
inlineprotected |
Update the filtered list.
Called automatically when the base list changes, through the use of the content_changed
signal.
|
protected |
Base list of which this is a filtered view.
|
protected |
Connection to base list's content_changed signal.
|
protected |
Vector holding the indices in the base list of the items included in the filtered list.
|
protected |
Filter function.