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_new(void);
00059 Ewl_Widget *ewl_filedialog_multiselect_new(void);
00060 Ewl_Widget *ewl_filedialog_save_as_new(void);
00061
00062 int ewl_filedialog_init(Ewl_Filedialog *fd);
00063
00064 void ewl_filedialog_list_view_set(Ewl_Filedialog *fd,
00065 Ewl_Filelist_View view);
00066 Ewl_Filelist_View ewl_filedialog_list_view_get(Ewl_Filedialog *fd);
00067
00068 void ewl_filedialog_directory_set(Ewl_Filedialog *fd,
00069 const char *dir);
00070 const char *ewl_filedialog_directory_get(Ewl_Filedialog *fd);
00071
00072 void ewl_filedialog_multiselect_set(Ewl_Filedialog *fd,
00073 unsigned int ms);
00074 unsigned int ewl_filedialog_multiselect_get(Ewl_Filedialog *fd);
00075
00076 void ewl_filedialog_show_dot_files_set(Ewl_Filedialog *fd,
00077 unsigned int dot);
00078 unsigned int ewl_filedialog_show_dot_files_get(Ewl_Filedialog *fd);
00079
00080 void ewl_filedialog_show_favorites_set(Ewl_Filedialog *fd,
00081 unsigned int show);
00082 unsigned int ewl_filedialog_show_favorites_get(Ewl_Filedialog *fd);
00083
00084 void ewl_filedialog_selected_file_set(Ewl_Filedialog *fd,
00085 const char *file);
00086 char *ewl_filedialog_selected_file_get(Ewl_Filedialog *fd);
00087
00088 void ewl_filedialog_selected_files_set(Ewl_Filedialog *fd,
00089 Ecore_List *files);
00090 Ecore_List *ewl_filedialog_selected_files_get(Ewl_Filedialog *fd);
00091
00092 void ewl_filedialog_filter_add(Ewl_Filedialog *fd,
00093 const char *name,
00094 const char *filter,
00095 Ecore_List *mime_types);
00096 void ewl_filedialog_save_as_set(Ewl_Filedialog *fd,
00097 unsigned int t);
00098 unsigned int ewl_filedialog_save_as_get(Ewl_Filedialog *fd);
00099 void ewl_filedialog_return_directories_set(Ewl_Filedialog *fd,
00100 unsigned int t);
00101 unsigned int ewl_filedialog_return_directories_get(Ewl_Filedialog *fd);
00102
00103
00104
00105
00106 void ewl_filedialog_cb_delete_window(Ewl_Widget *w, void *ev_data, void *data);
00107
00112 #endif