libt3widget
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
List of all members | Public Member Functions
t3_widget::filtered_file_list_t Class Reference

Filted file list implementation. More...

Inheritance diagram for t3_widget::filtered_file_list_t:
t3_widget::filtered_list_t< file_list_t > t3_widget::filtered_list_internal_t< file_list_t > t3_widget::file_list_t t3_widget::filtered_list_base_t t3_widget::string_list_base_t t3_widget::list_base_t t3_widget::list_base_t

Public Member Functions

 filtered_file_list_t (file_list_t *list)
 
virtual const std::string * get_fs_name (size_t idx) const
 Get the file-system name for a particular idx. More...
 
virtual bool is_dir (size_t idx) const
 Retrieve whether the file at index idx in the list is a directory. More...
 
- Public Member Functions inherited from t3_widget::filtered_list_t< file_list_t >
 filtered_list_t (file_list_t *list)
 
virtual void set_filter (const sigc::slot< bool, string_list_base_t *, size_t > &_test)
 Set the filter callback. More...
 
- Public Member Functions inherited from t3_widget::filtered_list_internal_t< file_list_t >
 filtered_list_internal_t (file_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 size_t size (void) const
 Retrieve the size of the list. More...
 

Additional Inherited Members

- Protected Member Functions inherited from t3_widget::filtered_list_internal_t< file_list_t >
void update_list (void)
 Update the filtered list. More...
 
- Protected Attributes inherited from t3_widget::filtered_list_internal_t< file_list_t >
file_list_tbase
 Base list of which this is a filtered view. More...
 
sigc::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...
 
sigc::slot< bool, file_list_t
*, size_t > 
test
 Filter function. More...
 

Detailed Description

Filted file list implementation.

Member Function Documentation

virtual const std::string* t3_widget::filtered_file_list_t::get_fs_name ( size_t  idx) const
inlinevirtual

Get the file-system name for a particular idx.

The file-system name is the name of the file as it is written in the file system. This is opposed to the name retrieved by operator[] which has been converted to UTF-8.

Implements t3_widget::file_list_t.

virtual bool t3_widget::filtered_file_list_t::is_dir ( size_t  idx) const
inlinevirtual

Retrieve whether the file at index idx in the list is a directory.

Implements t3_widget::file_list_t.