#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <libgen.h>
#include "xfile-dialog.h"
#include "xmessage-dialog.h"
Go to the source code of this file.
Functions | |
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_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... | |
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().
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().