Download

Support

Ewl_Filelist_Model: The model for the filelist


Detailed Description

A model for the filelist.


Functions

int ewl_filelist_model_column_sortable (void *data, unsigned int column)
unsigned int ewl_filelist_model_data_count (void *data)
int ewl_filelist_model_data_expandable_get (void *data, unsigned int row)
void * ewl_filelist_model_data_expansion_data_fetch (void *data, unsigned int parent)
void * ewl_filelist_model_data_fetch (void *data, unsigned int row, unsigned int column)
void ewl_filelist_model_data_sort (void *data, unsigned int column, Ewl_Sort_Direction sort)
unsigned int ewl_filelist_model_data_unref (void *data)
Ewl_Filelist_Directoryewl_filelist_model_directory_new (const char *path, unsigned char show_dot, unsigned int show_dot_dot, Ewl_Filelist_Filter *filter)
 Retrieves all files in a directory.
Ewl_Filelist_Filterewl_filelist_model_filter_get (Ewl_Filelist_Directory *dir)
 Gets the filter used on a directory.
unsigned int ewl_filelist_model_filter_set (Ewl_Filelist_Directory *dir, Ewl_Filelist_Filter *filter)
 Sets a filter onto a directory.
unsigned int ewl_filelist_model_show_dot_files_get (Ewl_Filelist_Directory *dir)
 Returns if the model shows dot files.
unsigned int ewl_filelist_model_show_dot_files_set (Ewl_Filelist_Directory *dir, unsigned int show_dot)
 This function sets whether the filelist should contain hidden files.

Function Documentation

int ewl_filelist_model_column_sortable ( void *  data,
unsigned int  column 
)

unsigned int ewl_filelist_model_data_count ( void *  data  ) 

int ewl_filelist_model_data_expandable_get ( void *  data,
unsigned int  row 
)

Ewl_Filelist_Filter* ewl_filelist_model_filter_get ( Ewl_Filelist_Directory dir  ) 

Gets the filter used on a directory.

Parameters:
dir,: The directory to get the filter for
Returns:
: Returns the Ewl_Filelist_Filter used

References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and Ewl_Filelist_Directory::filter.

unsigned int ewl_filelist_model_filter_set ( Ewl_Filelist_Directory dir,
Ewl_Filelist_Filter filter 
)

Sets a filter onto a directory.

Parameters:
dir,: The directory to set a filter upon
filter,: The Ewl_Filelist_Filter to use
Returns:
: Returns TRUE on data change, FALSE if not

References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, ewl_filelist_model_filter(), and Ewl_Filelist_Directory::filter.

Referenced by ewl_filelist_filter_set().

unsigned int ewl_filelist_model_show_dot_files_get ( Ewl_Filelist_Directory dir  ) 

Returns if the model shows dot files.

Parameters:
dir,: The Ewl_Filelist_Directory to work with
Returns:
Returns if the model shows dot files

References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, and Ewl_Filelist_Directory::show_dot.

unsigned int ewl_filelist_model_show_dot_files_set ( Ewl_Filelist_Directory dir,
unsigned int  show_dot 
)

This function sets whether the filelist should contain hidden files.

Parameters:
dir,: The Ewl_Filelist_Directory to work with
show_dot,: TRUE shows dot files, FALSE does not
Returns:
Returns TRUE if a change in data, FALSE if not

References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, ewl_filelist_model_filter(), and Ewl_Filelist_Directory::show_dot.

Referenced by ewl_filelist_show_dot_files_set().


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:51:09 2008