|
ginnOS
The reference: libc, the libraries and the kernel
|
idunn: a dialog to choose a file to open, or a name to save as. More...
#include "idunn_internal.h"#include <dirent.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <sys/stat.h>Macros | |
| #define | PATH_MAX_LEN 1024 |
| #define | LIST_HEIGHT 300 |
| #define | DIALOG_WIDTH 520 |
Functions | |
| void | idunn_file_dialog (idunn_widget_t *owner, idunn_file_mode_t mode, const char *title, const char *path, idunn_file_done_t done, void *data) |
| a dialog to choose a file: the folder's items as a list, a button to the folder above, and to save, a field with the name. | |
idunn: a dialog to choose a file to open, or a name to save as.
the folder's items are a list: folders first, then the files, by name (letter case ignored); names that start with a dot are left out. a double click or Enter opens a folder or chooses a file; the arrow button goes to the folder above. to save, the name field holds the name (a click on a file puts its name there), and a file that is there already is replaced only after a question. a name with a / in it is a path: a folder there is opened, a file chosen.
| #define PATH_MAX_LEN 1024 |
| #define LIST_HEIGHT 300 |
| #define DIALOG_WIDTH 520 |
| void idunn_file_dialog | ( | idunn_widget_t * | owner, |
| idunn_file_mode_t | mode, | ||
| const char * | title, | ||
| const char * | path, | ||
| idunn_file_done_t | done, | ||
| void * | data ) |
a dialog to choose a file: the folder's items as a list, a button to the folder above, and to save, a field with the name.
nothing is called when it is cancelled.
| path | the folder to start in, or (to save) the whole path of the file, whose name is then in the field. |