Go to the source code of this file.
Data Structures | |
struct | FileDialog |
struct | FileButton |
Macros | |
#define | XFILE_DIALOG_H_ |
Functions | |
Widget_t * | open_file_dialog (Widget_t *w, const char *path, const char *filter) |
open_file_dialog - open a non blocking dialog window, to select a file. The path to open the file-selector could be NULL It will open then in $HOME. The filter to use could be NULL, then the file-selector will show all files. More... | |
Widget_t * | save_file_dialog (Widget_t *w, const char *path, const char *filter) |
save_file_dialog - open a non blocking dialog window, to select a file. The path to open the file-selector could be NULL It will open then in $HOME. The filter to use could be NULL, then the file-selector will show all files. More... | |
Widget_t * | add_file_button (Widget_t *parent, int x, int y, int width, int height, const char *path, const char *filter) |
add_file_button - add a pre-defined button which will pop-up a file dialog when pressed. path and filter will e hand over to the file selector. More... | |
Widget_t * | add_save_file_button (Widget_t *parent, int x, int y, int width, int height, const char *path, const char *filter) |
add_save_file_button - add a pre-defined button which will pop-up a file dialog when pressed. path and filter will e hand over to the file selector. More... | |
#define XFILE_DIALOG_H_ |
Definition at line 24 of file xfile-dialog.h.
Widget_t* add_file_button | ( | Widget_t * | parent, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
const char * | path, | ||
const char * | filter | ||
) |
add_file_button - add a pre-defined button which will pop-up a file dialog when pressed. path and filter will e hand over to the file selector.
Definition at line 377 of file xfile-dialog.c.
References add_image_toggle_button(), CENTER, FileButton::filter, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, FileButton::is_active, FileButton::last_path, LDVAR, Func_t::mem_free_callback, Widget_t::parent_struct, FileButton::path, Widget_t::scale, FileButton::w, and widget_get_png().
Widget_t* add_save_file_button | ( | Widget_t * | parent, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
const char * | path, | ||
const char * | filter | ||
) |
add_save_file_button - add a pre-defined button which will pop-up a file dialog when pressed. path and filter will e hand over to the file selector.
Definition at line 534 of file xsavefile-dialoge.c.
References add_image_toggle_button(), CENTER, FileButton::filter, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, FileButton::is_active, FileButton::last_path, LDVAR, Func_t::mem_free_callback, Widget_t::parent_struct, FileButton::path, Widget_t::scale, FileButton::w, and widget_get_png().
open_file_dialog - open a non blocking dialog window, to select a file. The path to open the file-selector could be NULL It will open then in $HOME. The filter to use could be NULL, then the file-selector will show all files.
Definition at line 257 of file xfile-dialog.c.
References Widget_t::app, create_window(), Xputty::dpy, Func_t::expose_callback, Widget_t::flags, FileDialog::fp, fp_init(), Widget_t::func, HAS_MEM, FileDialog::icon, FileDialog::parent, Widget_t::parent_struct, FileDialog::send_clear_func, FileDialog::w, and widget_set_title().
save_file_dialog - open a non blocking dialog window, to select a file. The path to open the file-selector could be NULL It will open then in $HOME. The filter to use could be NULL, then the file-selector will show all files.
Definition at line 401 of file xsavefile-dialoge.c.
References Widget_t::app, create_window(), Xputty::dpy, Func_t::expose_callback, Widget_t::flags, FileDialog::fp, fp_init(), Widget_t::func, HAS_MEM, FileDialog::icon, FileDialog::parent, Widget_t::parent_struct, FileDialog::send_clear_func, FileDialog::w, and widget_set_title().