diff options
author | Julien BLACHE <jblache@debian.org> | 2007-02-27 22:22:40 +0100 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:34 +0000 |
commit | 4d8384e7b116e3eb11cc3df9151c8554dbca95fc (patch) | |
tree | f049f1240de8a8a971a621a4a3891d5eab2839a1 /src/xsane-back-gtk.h | |
parent | 92f35807f68b30405639d4e0a95f748b6bdb793f (diff) | |
parent | 129ed4b29e21fdb8bda3bee89c3e5d8cca6ba749 (diff) |
Imported Debian patch 0.993-1debian/0.993-1
Diffstat (limited to 'src/xsane-back-gtk.h')
-rw-r--r-- | src/xsane-back-gtk.h | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/xsane-back-gtk.h b/src/xsane-back-gtk.h index 584e6d5..a1a49bf 100644 --- a/src/xsane-back-gtk.h +++ b/src/xsane-back-gtk.h @@ -3,7 +3,7 @@ xsane-back-gtk.h Oliver Rauch <Oliver.Rauch@rauch-domain.de> - Copyright (C) 1998-2005 Oliver Rauch + Copyright (C) 1998-2007 Oliver Rauch This file is part of the XSANE package. This program is free software; you can redistribute it and/or modify @@ -43,6 +43,30 @@ CornerCoordinates; /* ---------------------------------------------------------------------------------------------------------------------- */ +#define XSANE_FILE_FILTER_ALL 1 +#define XSANE_FILE_FILTER_IMAGES 2 +#define XSANE_FILE_FILTER_DRC 4 +#define XSANE_FILE_FILTER_BATCHLIST 8 +#define XSANE_FILE_FILTER_ICM 16 + +#define XSANE_GET_FILENAME_SHOW_NOTHING 0 +#define XSANE_GET_FILENAME_SHOW_FILETYPE 1 +#define XSANE_GET_FILENAME_SHOW_CMS_FUNCTION 2 + + +typedef enum + { + XSANE_FILE_CHOOSER_ACTION_OPEN = 1, + XSANE_FILE_CHOOSER_ACTION_SELECT_OPEN, + XSANE_FILE_CHOOSER_ACTION_SAVE, + XSANE_FILE_CHOOSER_ACTION_SELECT_SAVE, + XSANE_FILE_CHOOSER_ACTION_SELECT_FOLDER, + XSANE_FILE_CHOOSER_ACTION_SELECT_PROJECT + } +XsaneFileChooserAction; + +/* ---------------------------------------------------------------------------------------------------------------------- */ + extern int xsane_back_gtk_message_dialog_active; /* ---------------------------------------------------------------------------------------------------------------------- */ @@ -63,8 +87,9 @@ extern void xsane_back_gtk_warning(gchar *warning_message, int wait); extern void xsane_back_gtk_info(gchar *info_message, int wait); extern void xsane_back_gtk_filetype_menu_set_history(GtkWidget *xsane_filetype_option_menu, char *filetype); extern GtkWidget *xsane_back_gtk_filetype_menu_new(char *filetype, GtkSignalFunc filetype_callback); -extern int xsane_back_gtk_get_filename(const char *label, const char *default_name, size_t max_len, char *filename, char **filetype, - int show_fileopts, int shorten_path, int hide_file_list, int show_filetype_menu); +extern GtkWidget *xsane_back_gtk_cms_function_menu_new(int cms_select_function, GtkSignalFunc cms_function_menu_callback); +extern int xsane_back_gtk_get_filename(const char *label, const char *default_name, size_t max_len, char *filename, char **filetype, int *cms_function, + XsaneFileChooserAction action, int show_filetype_menu, int enable_filters, int activate_filter); extern void xsane_back_gtk_update_vector(int opt_num, SANE_Int *vector); extern void xsane_back_gtk_refresh_dialog(void); |