lib/ewl_filedialog.h
Go to the documentation of this file.00001
00002 #ifndef EWL_FILEDIALOG_H
00003 #define EWL_FILEDIALOG_H
00004
00005 #include "ewl_dialog.h"
00006 #include "ewl_view.h"
00007
00029 #define EWL_FILEDIALOG_TYPE "filedialog"
00030
00035 #define EWL_FILEDIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILEDIALOG_TYPE))
00036
00040 typedef struct Ewl_Filedialog Ewl_Filedialog;
00041
00046 #define EWL_FILEDIALOG(fd) ((Ewl_Filedialog *) fd)
00047
00051 struct Ewl_Filedialog
00052 {
00053 Ewl_Dialog dialog;
00054 Ewl_Widget *fp;
00055 Ewl_Widget *menu;
00056 };
00057
00058 Ewl_Widget *ewl_filedialog_multiselect_new(void);
00059 Ewl_Widget *ewl_filedialog_new(void);
00060 int ewl_filedialog_init(Ewl_Filedialog *fd);
00061
00062 void ewl_filedialog_list_view_set(Ewl_Filedialog *fd,
00063 Ewl_Filelist_View view);
00064 Ewl_Filelist_View *ewl_filedialog_list_view_get(Ewl_Filedialog *fd);
00065
00066 void ewl_filedialog_directory_set(Ewl_Filedialog *fd,
00067 const char *dir);
00068 const char *ewl_filedialog_directory_get(Ewl_Filedialog *fd);
00069
00070 void ewl_filedialog_multiselect_set(Ewl_Filedialog *fd,
00071 unsigned int ms);
00072 unsigned int ewl_filedialog_multiselect_get(Ewl_Filedialog *fd);
00073
00074 void ewl_filedialog_show_dot_files_set(Ewl_Filedialog *fd,
00075 unsigned int dot);
00076 unsigned int ewl_filedialog_show_dot_files_get(Ewl_Filedialog *fd);
00077
00078 void ewl_filedialog_show_favorites_set(Ewl_Filedialog *fd,
00079 unsigned int show);
00080 unsigned int ewl_filedialog_show_favorites_get(Ewl_Filedialog *fd);
00081
00082 void ewl_filedialog_selected_file_set(Ewl_Filedialog *fd,
00083 const char *file);
00084 char *ewl_filedialog_selected_file_get(Ewl_Filedialog *fd);
00085
00086 void ewl_filedialog_selected_files_set(Ewl_Filedialog *fd,
00087 Ecore_List *files);
00088 Ecore_List *ewl_filedialog_selected_files_get(Ewl_Filedialog *fd);
00089
00090 void ewl_filedialog_filter_add(Ewl_Filedialog *fd,
00091 const char *name,
00092 const char *filter,
00093 Ecore_List *mime_types);
00094 void ewl_filedialog_save_as_set(Ewl_Filedialog *fd,
00095 unsigned int t);
00096 unsigned int ewl_filedialog_save_as_get(Ewl_Filedialog *fd);
00097 void ewl_filedialog_return_directories_set(Ewl_Filedialog *fd,
00098 unsigned int t);
00099 unsigned int ewl_filedialog_return_directories_get(Ewl_Filedialog *fd);
00100 Ewl_Widget *ewl_filedialog_save_as_new(void);
00101
00102
00103
00104
00105 void ewl_filedialog_cb_delete_window(Ewl_Widget *w, void *ev_data, void *data);
00106
00111 #endif