![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | FileDialog |
struct | FileButton |
Functions | |
Widget_t * | open_directory_dialog (Widget_t *w, const char *path) |
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. | |
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. | |
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. | |
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. | |
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 799 of file xfile-dialog.c.
References add_image_toggle_button(), CENTER, Func_t::dialog_callback, FileButton::filter, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, FileButton::is_active, FileButton::last_path, Func_t::mem_free_callback, FileButton::path, Widget_t::private_struct, Widget_t::scale, Func_t::value_changed_callback, 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 731 of file xsavefile-dialoge.c.
References add_image_toggle_button(), CENTER, Func_t::dialog_callback, FileButton::filter, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, FileButton::is_active, FileButton::last_path, Func_t::mem_free_callback, Widget_t::parent_struct, FileButton::path, Widget_t::scale, Func_t::value_changed_callback, FileButton::w, and widget_get_png().
Definition at line 420 of file xdirectory-dialog.c.
References add_button(), add_check_button(), add_combobox(), add_listview(), add_tooltip(), Widget_t::app, Func_t::button_release_callback, Widget_t::childlist, Childlist_t::childs, combobox_set_active_entry(), create_window(), FileDialog::ct, Xputty::dpy, EASTWEST, Func_t::expose_callback, Widget_t::flags, FileDialog::fp, fp_get_files(), fp_init(), FileDialog::ft, Widget_t::func, Resize_t::gravity, HAS_MEM, IS_WINDOW, Func_t::key_press_callback, listview_set_active_entry(), Func_t::mem_free_callback, NORTHEAST, NORTHWEST, os_get_root_window(), FileDialog::parent, Widget_t::parent_struct, FilePicker::path, Widget_t::scale, FileDialog::sel_dir, FileDialog::send_clear_func, SOUTHWEST, FileDialog::text_entry, Func_t::value_changed_callback, FileDialog::w, FileDialog::w_hidden, FileDialog::w_okay, FileDialog::w_quit, WESTNORTH, Widget_t::widget, widget_set_icon_from_png(), widget_set_title(), and widget_show_all().
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 599 of file xfile-dialog.c.
References add_button(), add_check_button(), add_combobox(), add_hslider(), add_multi_listview(), add_tooltip(), Widget_t::adj, Widget_t::app, Func_t::button_release_callback, Widget_t::childlist, Childlist_t::childs, CL_CONTINUOS, combobox_add_entry(), combobox_set_active_entry(), create_window(), FileDialog::ct, Func_t::double_click_callback, Xputty::dpy, EASTWEST, Func_t::expose_callback, Widget_t::flags, FileDialog::fp, fp_get_files(), fp_init(), FileDialog::ft, Widget_t::func, Resize_t::gravity, HAS_MEM, FileDialog::home_dir, IS_WINDOW, FileDialog::list_view, Func_t::mem_free_callback, multi_listview_set_active_entry(), multi_listview_set_check_dir(), multi_listview_unset_active_entry(), NO_PROPAGATE, NORTHEAST, NORTHWEST, os_get_root_window(), FileDialog::parent, Widget_t::parent_struct, FilePicker::path, Widget_t::scale, FileDialog::scale_size, FileDialog::sel_dir, FileDialog::send_clear_func, set_adjustment(), FileDialog::set_filter, SOUTHWEST, Func_t::value_changed_callback, FileDialog::view, FileDialog::w, FileDialog::w_hidden, FileDialog::w_okay, FileDialog::w_quit, WESTNORTH, Widget_t::widget, widget_set_icon_from_png(), widget_set_title(), widget_show_all(), FileDialog::xdg_dir_counter, FileDialog::xdg_user_dirs, and FileDialog::xdg_user_dirs_path.
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 544 of file xsavefile-dialoge.c.
References add_button(), add_check_button(), add_combobox(), add_listview(), add_tooltip(), Widget_t::app, Widget_t::childlist, Childlist_t::childs, combobox_add_entry(), combobox_set_active_entry(), create_widget(), create_window(), FileDialog::ct, Xputty::dpy, EASTWEST, Func_t::expose_callback, Widget_t::flags, FileDialog::fp, fp_get_files(), fp_init(), FileDialog::ft, Widget_t::func, Resize_t::gravity, HAS_MEM, FileDialog::home_dir, Widget_t::input_label, IS_WINDOW, Func_t::key_press_callback, listview_set_active_entry(), listview_set_check_dir(), listview_unset_active_entry(), Func_t::mem_free_callback, NORTHEAST, NORTHWEST, os_get_root_window(), FileDialog::parent, Widget_t::parent_struct, FilePicker::path, Widget_t::scale, FileDialog::sel_dir, FileDialog::send_clear_func, FileDialog::set_filter, SOUTHWEST, FileDialog::text_entry, Func_t::value_changed_callback, FileDialog::w, FileDialog::w_hidden, FileDialog::w_okay, FileDialog::w_quit, WESTNORTH, Widget_t::widget, widget_set_icon_from_png(), widget_set_title(), widget_show_all(), FileDialog::xdg_dir_counter, and FileDialog::xdg_user_dirs.