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 
)

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_Directory* ewl_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.

Parameters:
path,: The path to the directory to read
show_dot,: TRUE shows dot files, FALSE does not
show_dot_dot,: TRUE shows .. for navigating upwards, FALSE does not
filter,: The Ewl_Filelist_Filter to use
Returns:
Returns an Ewl_Filelist_Directory structure

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

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

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

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


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:46 2009