Ewl_Filelist: The base widget for the filelists
Detailed Description
A base class to be extended to provide different views on the file list
- Remarks:
- Inherits from Ewl_Box.
Data Structures | |
struct | Ewl_Filelist |
Inherits from Ewl_Box and extends to display a file list. More... | |
struct | Ewl_Filelist_Directory |
The data structure for Ewl_Filelist_Directory. More... | |
struct | Ewl_Filelist_File |
The data structure for Ewl_Filelist_File. More... | |
struct | Ewl_Filelist_Filter |
The data structure for Ewl_Filelist_Filter. More... | |
Defines | |
#define | EWL_FILELIST(fl) ((Ewl_Filelist *)fl) |
#define | EWL_FILELIST_DIRECTORY(fl) ((Ewl_Filelist_Directory *)fl) |
#define | EWL_FILELIST_DIRECTORY_TYPE "filelist_directory" |
#define | EWL_FILELIST_FILE(fl) ((Ewl_Filelist_File *)fl) |
#define | EWL_FILELIST_FILE_TYPE "filelist_file" |
#define | EWL_FILELIST_FILTER(ff) , ((Ewl_Filelist_Filter *)ff) |
#define | EWL_FILELIST_FILTER_TYPE "filelist_filter" |
#define | EWL_FILELIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_TYPE)) |
#define | EWL_FILELIST_TYPE "filelist" |
Typedefs | |
typedef struct Ewl_Filelist | Ewl_Filelist |
typedef struct Ewl_Filelist_Directory | Ewl_Filelist_Directory |
typedef struct Ewl_Filelist_File | Ewl_Filelist_File |
typedef struct Ewl_Filelist_Filter | Ewl_Filelist_Filter |
Functions | |
void | ewl_filelist_cb_destroy (Ewl_Widget *w, void *ev, void *data) |
const char * | ewl_filelist_directory_get (Ewl_Filelist *fl) |
Retrieves the current directory set on the filelist. | |
void | ewl_filelist_directory_set (Ewl_Filelist *fl, const char *dir) |
Sets the given directory dir as the current directory in the filelist. | |
char * | ewl_filelist_expand_path (Ewl_Filelist *fl, const char *dir) |
This will attempt to return the full path to the given directory. It should handle things like .. as well. | |
Ewl_Filelist_Filter * | ewl_filelist_filter_get (Ewl_Filelist *fl) |
Retrieves the current filter set on the filelist. | |
void | ewl_filelist_filter_set (Ewl_Filelist *fl, Ewl_Filelist_Filter *filter) |
Sets the given filter into the filelist. | |
char * | ewl_filelist_groupname_get (gid_t st_gid) |
Converts the given group id into a group name. | |
Ewl_Scrollpane_Flags | ewl_filelist_hscroll_flag_get (Ewl_Filelist *fl) |
Retrieves the flags for the horizontal scrollbar. | |
void | ewl_filelist_hscroll_flag_set (Ewl_Filelist *fl, Ewl_Scrollpane_Flags h) |
Sets the value to use for flags on the horizontal scrollbar. | |
int | ewl_filelist_init (Ewl_Filelist *fl) |
Initialzie a filelist to default values. | |
char * | ewl_filelist_modtime_get (time_t modtime) |
Converts the given modtime to a human readable string. | |
Ewl_Widget * | ewl_filelist_multi_select_preview_get (Ewl_Filelist *fl) |
Sets up a widget to display when multiple files selected. | |
unsigned int | ewl_filelist_multiselect_get (Ewl_Filelist *fl) |
Retrieves the current multiselect state of the filelist. | |
void | ewl_filelist_multiselect_set (Ewl_Filelist *fl, unsigned int ms) |
Sets the given multiselect value into the filelist. | |
Ewl_Widget * | ewl_filelist_new (void) |
Creates a new Ewl_Filelist widget. | |
char * | ewl_filelist_perms_get (mode_t st_mode) |
Converts the given mode settings into a human readable string. | |
char * | ewl_filelist_selected_file_get (Ewl_Filelist *fl) |
Returns the currently selected file from the filelist. | |
Ewl_Widget * | ewl_filelist_selected_file_preview_get (Ewl_Filelist *fl, const char *path) |
Creates and returns a preview widget for the given file. | |
void | ewl_filelist_selected_file_set (Ewl_Filelist *fl, const char *file) |
Sets the given file as selected in the filelist. | |
void | ewl_filelist_selected_files_change_notify (Ewl_Filelist *fl) |
Notifies interested consumers that the filelist has changed selected values. | |
Ecore_List * | ewl_filelist_selected_files_get (Ewl_Filelist *fl) |
Retrieves the list of selected files in the filelist. | |
void | ewl_filelist_selected_files_set (Ewl_Filelist *fl, Ecore_List *files) |
Sets the given files as selected in the filelist. | |
void | ewl_filelist_selected_signal_all (Ewl_Filelist *fl, const char *signal) |
unsigned int | ewl_filelist_show_dot_files_get (Ewl_Filelist *fl) |
Retrieves the current show dot files setting for the filelist. | |
void | ewl_filelist_show_dot_files_set (Ewl_Filelist *fl, unsigned int dot) |
Sets the show dot files setting to the given value. | |
char * | ewl_filelist_size_get (off_t st_size) |
Converts the given size into a human readable format. | |
const char * | ewl_filelist_stock_icon_get (const char *path) |
Retrieves the stock icon for the given file. | |
char * | ewl_filelist_username_get (uid_t st_uid) |
Convertes the given user id into the approriate user name. | |
Ewl_Filelist_View * | ewl_filelist_view_get (Ewl_Filelist *fl) |
Gets the filelist view. | |
void | ewl_filelist_view_set (Ewl_Filelist *fl, Ewl_Filelist_View view) |
Sets the filelist view. | |
Ewl_Scrollpane_Flags | ewl_filelist_vscroll_flag_get (Ewl_Filelist *fl) |
Retrieves the flags for the vertical scrollbar. | |
void | ewl_filelist_vscroll_flag_set (Ewl_Filelist *fl, Ewl_Scrollpane_Flags v) |
Sets the value to use for flags on the vertical scrollbar. |
Define Documentation
#define EWL_FILELIST | ( | fl | ) | ((Ewl_Filelist *)fl) |
Typecasts a pointer to an Ewl_Filelist pointer.
Referenced by ewl_filelist_cb_destroy(), ewl_filelist_expand_path(), ewl_filelist_new(), ewl_filelist_selected_file_preview_get(), ewl_filepicker_directory_get(), ewl_filepicker_directory_set(), ewl_filepicker_filter_get(), ewl_filepicker_list_view_get(), ewl_filepicker_list_view_set(), ewl_filepicker_multiselect_get(), ewl_filepicker_multiselect_set(), ewl_filepicker_selected_file_get(), ewl_filepicker_selected_file_set(), ewl_filepicker_selected_files_get(), ewl_filepicker_selected_files_set(), ewl_filepicker_show_dot_files_get(), and ewl_filepicker_show_dot_files_set().
#define EWL_FILELIST_DIRECTORY | ( | fl | ) | ((Ewl_Filelist_Directory *)fl) |
* * Typecasts a pointer to an Ewl_Filelist_Directory pointer
#define EWL_FILELIST_DIRECTORY_TYPE "filelist_directory" |
* * The type name
#define EWL_FILELIST_FILE | ( | fl | ) | ((Ewl_Filelist_File *)fl) |
Typecasts a pointer to an Ewl_Filelist_File pointer
#define EWL_FILELIST_FILE_TYPE "filelist_file" |
The type name
#define EWL_FILELIST_FILTER | ( | ff | ) | , ((Ewl_Filelist_Filter *)ff) |
* * Typecasts a pointer to an Ewl_Filelist_Filter
#define EWL_FILELIST_FILTER_TYPE "filelist_filter" |
* * The type name
#define EWL_FILELIST_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_TYPE)) |
Returns TRUE if the widget is an Ewl_Filelist, FALSE otherwise
#define EWL_FILELIST_TYPE "filelist" |
The type name for the Ewl_Filelist widget
Referenced by ewl_filelist_cb_destroy(), ewl_filelist_directory_get(), ewl_filelist_directory_set(), ewl_filelist_expand_path(), ewl_filelist_filter_get(), ewl_filelist_filter_set(), ewl_filelist_hscroll_flag_get(), ewl_filelist_hscroll_flag_set(), ewl_filelist_init(), ewl_filelist_multi_select_preview_get(), ewl_filelist_multiselect_get(), ewl_filelist_multiselect_set(), ewl_filelist_selected_file_get(), ewl_filelist_selected_file_preview_get(), ewl_filelist_selected_file_set(), ewl_filelist_selected_files_change_notify(), ewl_filelist_selected_files_get(), ewl_filelist_selected_files_set(), ewl_filelist_show_dot_files_get(), ewl_filelist_show_dot_files_set(), ewl_filelist_view_set(), ewl_filelist_vscroll_flag_get(), and ewl_filelist_vscroll_flag_set().
Typedef Documentation
typedef struct Ewl_Filelist Ewl_Filelist |
The Ewl_Filelist provides a base class for the file lists
typedef struct Ewl_Filelist_Directory Ewl_Filelist_Directory |
typedef struct Ewl_Filelist_File Ewl_Filelist_File |
typedef struct Ewl_Filelist_Filter Ewl_Filelist_Filter |
Function Documentation
void ewl_filelist_cb_destroy | ( | Ewl_Widget * | w, | |
void * | ev, | |||
void * | data | |||
) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, directory, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FILELIST, EWL_FILELIST_TYPE, filter, IF_FREE, model, and view.
Referenced by ewl_filelist_init().
const char* ewl_filelist_directory_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the current directory set on the filelist.
- Parameters:
-
fl,: The filelist to get the current directory from
- Returns:
- Returns the current directory
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, directory, DLEVEL_STABLE, DRETURN_PTR, and EWL_FILELIST_TYPE.
Referenced by ewl_filelist_expand_path(), ewl_filelist_selected_file_preview_get(), ewl_filepicker_directory_get(), and ewl_filepicker_selected_file_get().
void ewl_filelist_directory_set | ( | Ewl_Filelist * | fl, | |
const char * | dir | |||
) |
Sets the given directory dir as the current directory in the filelist.
- Parameters:
-
fl,: The filelist to set the directory into dir,: The directory to set
- Returns:
- Returns no value
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, directory, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_VALUE_CHANGED, EWL_FILELIST_EVENT_DIR_CHANGE, ewl_filelist_model_data_unref(), ewl_filelist_model_directory_new(), EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_data_set(), ewl_mvc_dirty_set(), EWL_WIDGET, filter, IF_FREE, Ewl_Event_Action_Response::response, and show_dot.
Referenced by ewl_filepicker_directory_set().
char* ewl_filelist_expand_path | ( | Ewl_Filelist * | fl, | |
const char * | dir | |||
) |
This will attempt to return the full path to the given directory. It should handle things like .. as well.
- Parameters:
-
fl,: The filelist to get the path from dir,: The dir name to append to the path
- Returns:
- Returns the full path to the given directory
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_FILELIST, ewl_filelist_directory_get(), EWL_FILELIST_TYPE, and PATH_MAX.
Referenced by ewl_filelist_selected_file_set().
Ewl_Filelist_Filter* ewl_filelist_filter_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the current filter set on the filelist.
- Parameters:
-
fl,: The filelist to get the filter from
- Returns:
- Returns the current filter. Do not free returned filter!
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_FILELIST_TYPE, and filter.
Referenced by ewl_filepicker_filter_get().
void ewl_filelist_filter_set | ( | Ewl_Filelist * | fl, | |
Ewl_Filelist_Filter * | filter | |||
) |
Sets the given filter into the filelist.
- Parameters:
-
fl,: The filelist to set the filter into filter,: The filter to set
- Returns:
- Returns no value.
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_filelist_model_filter_set(), EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_dirty_set(), and filter.
char* ewl_filelist_groupname_get | ( | gid_t | st_gid | ) |
Converts the given group id into a group name.
- Parameters:
-
st_gid,: The group id to convert
- Returns:
- Returns the group name for the given id
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and PATH_MAX.
Referenced by ewl_filelist_model_data_fetch(), and ewl_filelist_selected_file_preview_get().
Ewl_Scrollpane_Flags ewl_filelist_hscroll_flag_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the flags for the horizontal scrollbar.
- Parameters:
-
fl,: The filelist to work with
- Returns:
- Returns the flags for the horizontal scrollbar
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_FILELIST_TYPE, EWL_SCROLLPANE_FLAG_NONE, h, and scroll_flags.
void ewl_filelist_hscroll_flag_set | ( | Ewl_Filelist * | fl, | |
Ewl_Scrollpane_Flags | h | |||
) |
Sets the value to use for flags on the horizontal scrollbar.
- Parameters:
-
fl,: The filelist to work with h,: The value to set for the horizontal scrollbar
- Returns:
- Returns no value
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FILELIST_TYPE, h, and scroll_flags.
int ewl_filelist_init | ( | Ewl_Filelist * | fl | ) |
Initialzie a filelist to default values.
- Parameters:
-
fl,: The filelist to initialize
- Returns:
- Returns TRUE on success or FALSE on failure
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, directory, DLEVEL_STABLE, DRETURN_INT, EWL_BOX, ewl_box_init(), EWL_CALLBACK_DESTROY, ewl_callback_prepend(), ewl_filelist_cb_destroy(), EWL_FILELIST_TYPE, EWL_FILELIST_VIEW_ICON, EWL_FLAG_FILL_FILL, EWL_OBJECT, ewl_object_fill_policy_set(), EWL_SCROLLPANE_FLAG_AUTO_VISIBLE, EWL_WIDGET, ewl_widget_inherit(), filter, h, multiselect, scroll_flags, show_dot, v, and view_flag.
Referenced by ewl_filelist_new().
char* ewl_filelist_modtime_get | ( | time_t | st_modtime | ) |
Converts the given modtime to a human readable string.
- Parameters:
-
st_modtime,: The modification time to convert
- Returns:
- Returns the string version of the modtime
References DENTER_FUNCTION, DLEVEL_STABLE, and DRETURN_PTR.
Referenced by ewl_filelist_model_data_fetch(), and ewl_filelist_selected_file_preview_get().
Ewl_Widget* ewl_filelist_multi_select_preview_get | ( | Ewl_Filelist * | fl | ) |
Sets up a widget to display when multiple files selected.
- Parameters:
-
fl,: The filelist to work with
- Returns:
- Return the widget to display
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_BOX, ewl_box_orientation_set(), EWL_CONTAINER, ewl_container_child_append(), EWL_FILELIST_TYPE, EWL_ICON, ewl_icon_label_set(), ewl_icon_simple_new(), EWL_ORIENTATION_VERTICAL, ewl_vbox_new(), and ewl_widget_show().
unsigned int ewl_filelist_multiselect_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the current multiselect state of the filelist.
- Parameters:
-
fl,: The filelist to get the multiselect value from
- Returns:
- Returns the current multiselect state of the filelist
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_FILELIST_TYPE, and multiselect.
Referenced by ewl_filepicker_multiselect_get().
void ewl_filelist_multiselect_set | ( | Ewl_Filelist * | fl, | |
unsigned int | ms | |||
) |
Sets the given multiselect value into the filelist.
- Parameters:
-
fl,: The filelist to set the multiselect value into ms,: The multiselect value to set
- Returns:
- Returns no value
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_call_with_event_data(), EWL_CALLBACK_VALUE_CHANGED, EWL_FILELIST_EVENT_MULTI_FALSE, EWL_FILELIST_EVENT_MULTI_TRUE, EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_selection_mode_set(), EWL_SELECTION_MODE_MULTI, EWL_SELECTION_MODE_SINGLE, EWL_WIDGET, multiselect, and Ewl_Event_Action_Response::response.
Referenced by ewl_filepicker_multiselect_set().
Ewl_Widget* ewl_filelist_new | ( | void | ) |
Creates a new Ewl_Filelist widget.
- Returns:
- Returns a new Ewl_Filelist widget or NULL on failure
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_FILELIST, ewl_filelist_init(), ewl_widget_destroy(), and NEW.
Referenced by ewl_filepicker_init().
char* ewl_filelist_perms_get | ( | mode_t | st_mode | ) |
Converts the given mode settings into a human readable string.
- Parameters:
-
st_mode,: The mode setting to convert
- Returns:
- Returns the string of the given mode setting
References DENTER_FUNCTION, DLEVEL_STABLE, and DRETURN_PTR.
Referenced by ewl_filelist_model_data_fetch(), and ewl_filelist_selected_file_preview_get().
char* ewl_filelist_selected_file_get | ( | Ewl_Filelist * | fl | ) |
Returns the currently selected file from the filelist.
- Parameters:
-
fl,: The filelist to get the selected file from
- Returns:
- Returns the file currently selected in the filelist
References controller, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, Ewl_Filelist_Directory::dirs, DLEVEL_STABLE, DRETURN_PTR, DWARNING, EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_selected_count_get(), ewl_mvc_selected_get(), EWL_SELECTION, Ewl_Filelist_Directory::files, FREE, Ewl_Filelist_Directory::name, Ewl_Filelist_File::name, Ewl_Filelist_Directory::num_dirs, PATH_MAX, and Ewl_Selection_Idx::row.
Referenced by ewl_filepicker_selected_file_get().
Ewl_Widget* ewl_filelist_selected_file_preview_get | ( | Ewl_Filelist * | fl, | |
const char * | path | |||
) |
Creates and returns a preview widget for the given file.
- Parameters:
-
fl,: The Ewl_Filelist to work with path,: The file to get the preview for
- Returns:
- Returns the preview widget for the given file
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_BOX, ewl_box_orientation_set(), EWL_CONTAINER, ewl_container_child_append(), EWL_FILELIST, ewl_filelist_directory_get(), ewl_filelist_groupname_get(), ewl_filelist_modtime_get(), ewl_filelist_perms_get(), ewl_filelist_size_get(), EWL_FILELIST_TYPE, ewl_filelist_username_get(), EWL_FLAG_ALIGN_CENTER, EWL_ICON, ewl_icon_extended_data_set(), ewl_icon_label_set(), ewl_icon_new(), EWL_ICON_TYPE_LONG, ewl_icon_type_set(), EWL_IMAGE, ewl_image_constrain_set(), ewl_image_proportional_set(), EWL_IMAGE_THUMBNAIL, ewl_image_thumbnail_new(), ewl_image_thumbnail_request(), EWL_OBJECT, ewl_object_alignment_set(), EWL_ORIENTATION_VERTICAL, EWL_TEXT, ewl_text_new(), ewl_text_text_set(), ewl_vbox_new(), ewl_widget_show(), FREE, and PATH_MAX.
void ewl_filelist_selected_file_set | ( | Ewl_Filelist * | fl, | |
const char * | file | |||
) |
Sets the given file as selected in the filelist.
- Parameters:
-
fl,: The filelist to set the selected file into file,: The file to set selected
- Returns:
- Returns no value
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Filelist_Directory::dirs, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_filelist_expand_path(), ewl_filelist_selected_files_change_notify(), EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_selected_clear(), ewl_mvc_selected_set(), Ewl_Filelist_Directory::files, FREE, Ewl_Filelist_File::name, and Ewl_Filelist_Directory::num_dirs.
Referenced by ewl_filepicker_selected_file_set().
void ewl_filelist_selected_files_change_notify | ( | Ewl_Filelist * | fl | ) |
Notifies interested consumers that the filelist has changed selected values.
- Parameters:
-
fl,: The filelist to work with
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_VALUE_CHANGED, EWL_FILELIST_EVENT_SELECTION_CHANGE, EWL_FILELIST_TYPE, EWL_WIDGET, and Ewl_Event_Action_Response::response.
Referenced by ewl_filelist_selected_file_set(), and ewl_filelist_selected_files_set().
Ecore_List* ewl_filelist_selected_files_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the list of selected files in the filelist.
- Parameters:
-
fl,: The filelist to get the selected files from
- Returns:
- Returns the Ecore_List of selected files in the filelist
References controller, Ewl_Selection::data, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, Ewl_Filelist_Directory::dirs, DLEVEL_STABLE, DRETURN_PTR, DWARNING, EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_selected_list_get(), EWL_SELECTION_IDX, EWL_SELECTION_RANGE, EWL_SELECTION_TYPE_INDEX, EWL_SELECTION_TYPE_RANGE, Ewl_Filelist_Directory::files, Ewl_Filelist_Directory::name, Ewl_Filelist_File::name, Ewl_Filelist_Directory::num_dirs, PATH_MAX, Ewl_Selection_Range::row, Ewl_Selection_Idx::row, Ewl_Selection_Range::start, and Ewl_Selection::type.
Referenced by ewl_filepicker_selected_files_get().
void ewl_filelist_selected_files_set | ( | Ewl_Filelist * | fl, | |
Ecore_List * | files | |||
) |
Sets the given files as selected in the filelist.
- Parameters:
-
fl,: The filelist to set the selected files into files,: The Ecore_List of the files
- Returns:
- Returns no value.
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Filelist_Directory::dirs, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_filelist_selected_files_change_notify(), EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_selected_list_set(), ewl_mvc_selection_index_new(), Ewl_Filelist_Directory::files, model, Ewl_Filelist_File::name, and Ewl_Filelist_Directory::num_dirs.
Referenced by ewl_filepicker_selected_files_set().
void ewl_filelist_selected_signal_all | ( | Ewl_Filelist * | fl, | |
const char * | signal | |||
) |
unsigned int ewl_filelist_show_dot_files_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the current show dot files setting for the filelist.
- Parameters:
-
fl,: The filelist to get the value from
- Returns:
- Returns the current show dot files setting of the filelist
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_FILELIST_TYPE, and show_dot.
Referenced by ewl_filepicker_show_dot_files_get().
void ewl_filelist_show_dot_files_set | ( | Ewl_Filelist * | fl, | |
unsigned int | dot | |||
) |
Sets the show dot files setting to the given value.
- Parameters:
-
fl,: The filelist to set the show dot files setting into dot,: The value to set into the show dot files field
- Returns:
- Returns no value.
References controller, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_filelist_model_show_dot_files_set(), EWL_FILELIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_dirty_set(), and show_dot.
Referenced by ewl_filepicker_show_dot_files_set().
char* ewl_filelist_size_get | ( | off_t | st_size | ) |
Converts the given size into a human readable format.
- Parameters:
-
st_size,: The size to convert
- Returns:
- Returns a string representation of the given size
References DENTER_FUNCTION, DLEVEL_STABLE, and DRETURN_PTR.
Referenced by ewl_filelist_model_data_fetch(), and ewl_filelist_selected_file_preview_get().
const char* ewl_filelist_stock_icon_get | ( | const char * | path | ) |
Retrieves the stock icon for the given file.
- Parameters:
-
path,: The path to get the icon for
- Returns:
- Returns the stock icon for the given file
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_ICON_APPLICATION_X_EXECUTABLE, EWL_ICON_FOLDER, EWL_ICON_TEXT_X_GENERIC, and ewl_io_manager_extension_icon_name_get().
Referenced by ewl_filelist_view_widget_fetch().
char* ewl_filelist_username_get | ( | uid_t | st_uid | ) |
Convertes the given user id into the approriate user name.
- Parameters:
-
st_uid,: The userid to lookup. On Windows, this parameter should be unused.
- Returns:
- Returns the user name for the given user id
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and PATH_MAX.
Referenced by ewl_filelist_model_data_fetch(), and ewl_filelist_selected_file_preview_get().
Ewl_Filelist_View* ewl_filelist_view_get | ( | Ewl_Filelist * | fl | ) |
Gets the filelist view.
- Parameters:
-
fl,: The filelist to get the view from
- Returns:
- Returns the Ewl_Filelist_View used
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and view_flag.
Referenced by ewl_filepicker_list_view_get().
void ewl_filelist_view_set | ( | Ewl_Filelist * | fl, | |
Ewl_Filelist_View | view | |||
) |
Sets the filelist view.
- Parameters:
-
fl,: The filelist to change the view for view,: The view to set
- Returns:
- : Returns no value
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_FILELIST_TYPE, and view_flag.
Referenced by ewl_filepicker_list_view_set().
Ewl_Scrollpane_Flags ewl_filelist_vscroll_flag_get | ( | Ewl_Filelist * | fl | ) |
Retrieves the flags for the vertical scrollbar.
- Parameters:
-
fl,: The filelist to work with
- Returns:
- Returns the flags for the vertical scrollbar
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_FILELIST_TYPE, EWL_SCROLLPANE_FLAG_NONE, scroll_flags, and v.
void ewl_filelist_vscroll_flag_set | ( | Ewl_Filelist * | fl, | |
Ewl_Scrollpane_Flags | v | |||
) |
Sets the value to use for flags on the vertical scrollbar.
- Parameters:
-
fl,: The filelist to work with v,: The value to set for the vertical scrollbar
- Returns:
- Returns no value
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_FILELIST_TYPE, scroll_flags, and v.