Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Etk_Filechooser_Widget


Data Structures

struct  Etk_Filechooser_Widget
 An Etk_Filechooser_Widget is a widget used to select one or more files. More...

Defines

#define ETK_FILECHOOSER_WIDGET_TYPE   (etk_filechooser_widget_type_get())
#define ETK_FILECHOOSER_WIDGET(obj)   (ETK_OBJECT_CAST((obj), ETK_FILECHOOSER_WIDGET_TYPE, Etk_Filechooser_Widget))
#define ETK_IS_FILECHOOSER_WIDGET(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_FILECHOOSER_WIDGET_TYPE))

Functions

Etk_Widget * etk_filechooser_widget_new (void)
 Creates a new file chooser widget.
void etk_filechooser_widget_current_folder_set (Etk_Filechooser_Widget *filechooser_widget, const char *folder)
 Sets the current forlder of the filechooser.
const char * etk_filechooser_widget_current_folder_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrieves the current folder.
const char * etk_filechooser_widget_selected_file_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrives the current file selected.
Evas_List * etk_filechooser_widget_selected_files_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrives the current files selected.
void etk_filechooser_widget_select_multiple_set (Etk_Filechooser_Widget *filechooser_widget, Etk_Bool select_multiple)
 Sets if the filechooser widget can select multiple files.
Etk_Bool etk_filechooser_widget_select_multiple_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrieves if the file chooser widget can select multiple files.
void etk_filechooser_widget_show_hidden_set (Etk_Filechooser_Widget *filechooser_widget, Etk_Bool show_hidden)
 Sets if the file chooser widget can show hidden files.
Etk_Bool etk_filechooser_widget_show_hidden_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrieve if the file chooser widget can show hidden files.
void etk_filechooser_widget_is_save_set (Etk_Filechooser_Widget *filechooser_widget, Etk_Bool is_save)
 Sets if the file chooser is a save chooser.
Etk_Bool etk_filechooser_widget_is_save_get (Etk_Filechooser_Widget *filechooser_widget)
 Retrieve if the file chooser widget is a save chooser.
Etk_Bool etk_filechooser_widget_selected_file_set (Etk_Filechooser_Widget *filechooser_widget, const char *filename)
 Set a filename if Etk_Filechooser_Widget is for save.


Define Documentation

#define ETK_FILECHOOSER_WIDGET_TYPE   (etk_filechooser_widget_type_get())

Gets the type of a fileschooser widget

Referenced by etk_filechooser_widget_new().

#define ETK_FILECHOOSER_WIDGET ( obj   )     (ETK_OBJECT_CAST((obj), ETK_FILECHOOSER_WIDGET_TYPE, Etk_Filechooser_Widget))

Casts the object to an Etk_Filechooser_Widget

#define ETK_IS_FILECHOOSER_WIDGET ( obj   )     (ETK_OBJECT_CHECK_TYPE((obj), ETK_FILECHOOSER_WIDGET_TYPE))

Checks if the object is an Etk_Filechooser_Widget


Function Documentation

Etk_Widget * etk_filechooser_widget_new ( void   ) 

Creates a new file chooser widget.

Returns:
Returns the new file chooser widget

References ETK_FILECHOOSER_WIDGET_TYPE, and etk_widget_new().

void etk_filechooser_widget_current_folder_set ( Etk_Filechooser_Widget *  filechooser_widget,
const char *  folder 
)

Sets the current forlder of the filechooser.

Parameters:
filechooser_widget 

References current_folder, ETK_ENTRY, etk_entry_clear(), etk_theme_icon_path_get(), ETK_TREE, etk_tree_clear(), etk_tree_row_append(), files_date_col, files_name_col, files_tree, is_save, name_entry, and show_hidden.

Referenced by etk_filechooser_widget_selected_file_set().

const char * etk_filechooser_widget_current_folder_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrieves the current folder.

Returns:
Returns the current folder

References current_folder.

const char * etk_filechooser_widget_selected_file_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrives the current file selected.

Returns:
Returns filename

References ETK_ENTRY, etk_entry_text_get(), ETK_TREE, etk_tree_row_fields_get(), etk_tree_selected_row_get(), files_name_col, files_tree, is_save, and name_entry.

Evas_List * etk_filechooser_widget_selected_files_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrives the current files selected.

Returns:
Returns filenames list

References ETK_TREE, etk_tree_first_row_get(), etk_tree_row_fields_get(), etk_tree_row_is_selected(), etk_tree_row_next_get(), files_name_col, and files_tree.

void etk_filechooser_widget_select_multiple_set ( Etk_Filechooser_Widget *  filechooser_widget,
Etk_Bool  select_multiple 
)

Sets if the filechooser widget can select multiple files.

Parameters:
filechooser_widget a filechooser widget
select_multiple ETK_TRUE to allow the filechooser to select multiple files

References ETK_TREE, etk_tree_multiple_select_set(), and files_tree.

Etk_Bool etk_filechooser_widget_select_multiple_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrieves if the file chooser widget can select multiple files.

Returns:
Returns if the file chooser widget can select multiple files

References ETK_TREE, etk_tree_multiple_select_get(), and files_tree.

void etk_filechooser_widget_show_hidden_set ( Etk_Filechooser_Widget *  filechooser_widget,
Etk_Bool  show_hidden 
)

Sets if the file chooser widget can show hidden files.

Parameters:
filechooser_widget a filechooser widget
show_hidden ETK_TRUE to allow the filechooser to show hidden files

References ETK_OBJECT, etk_object_notify(), and show_hidden.

Etk_Bool etk_filechooser_widget_show_hidden_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrieve if the file chooser widget can show hidden files.

Returns:
Returns if the file chooser widget can show hidden files

References show_hidden.

void etk_filechooser_widget_is_save_set ( Etk_Filechooser_Widget *  filechooser_widget,
Etk_Bool  is_save 
)

Sets if the file chooser is a save chooser.

Parameters:
filechooser_widget a filechooser widget
is_save ETK_TRUE to enable the file name entry (aka save widget) If is_save is TRUE then the user have the ability to write a custom file name in the file name entry. Else the file name entry is disabled.

References etk_widget_disabled_set(), is_save, and name_entry.

Etk_Bool etk_filechooser_widget_is_save_get ( Etk_Filechooser_Widget *  filechooser_widget  ) 

Retrieve if the file chooser widget is a save chooser.

Returns:
Returns if the file chooser widget is a save chooser

References is_save.

Etk_Bool etk_filechooser_widget_selected_file_set ( Etk_Filechooser_Widget *  filechooser_widget,
const char *  filename 
)

Set a filename if Etk_Filechooser_Widget is for save.

Parameters:
filechooser_widget a filechooser widget
filename the current name of file
Returns:
Return ETK_TRUE if filename can be saved, ETK_FALSE if filename is malformed (like full pathname instead of filename)

References ETK_ENTRY, etk_entry_text_set(), etk_filechooser_widget_current_folder_set(), is_save, and name_entry.