From e7e90b72fd3161c5d55fed49e100781dfa3e9408 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 3 Oct 2014 14:05:01 +0000 Subject: Imported Upstream version 0.84 --- src/xsane-front-gtk.h | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/xsane-front-gtk.h (limited to 'src/xsane-front-gtk.h') diff --git a/src/xsane-front-gtk.h b/src/xsane-front-gtk.h new file mode 100644 index 0000000..b894b06 --- /dev/null +++ b/src/xsane-front-gtk.h @@ -0,0 +1,83 @@ +/* xsane -- a graphical (X11, gtk) scanner-oriented SANE frontend + + xsane-front-gtk.h + + Oliver Rauch + Copyright (C) 1998-2002 Oliver Rauch + This file is part of the XSANE package. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/* ---------------------------------------------------------------------------------------------------------------------- */ + +#include +#include "xsane.h" + +/* ---------------------------------------------------------------------------------------------------------------------- */ + +#ifndef xsane_front_gtk_h +#define xsane_front_gtk_h + +/* ---------------------------------------------------------------------------------------------------------------------- */ + +extern int xsane_parse_options(char *options, char *argv[]); +extern void xsane_get_bounds(const SANE_Option_Descriptor *opt, double *minp, double *maxp); +extern double xsane_find_best_resolution(int well_known_option, double dpi); +extern int xsane_set_resolution(int well_known_option, double resolution); +extern void xsane_set_all_resolutions(void); +extern void xsane_define_maximum_output_size(); +extern void xsane_close_dialog_callback(GtkWidget *widget, gpointer data); +extern void xsane_authorization_button_callback(GtkWidget *widget, gpointer data); +extern gint xsane_authorization_callback(SANE_String_Const resource, + SANE_Char username[SANE_MAX_USERNAME_LEN], + SANE_Char password[SANE_MAX_PASSWORD_LEN]); +extern void xsane_progress_cancel(GtkWidget *widget, gpointer data); +extern void xsane_progress_new(char *bar_text, char *info, GtkSignalFunc callback, int *cancel_data_pointer); +extern void xsane_progress_update(gfloat newval); +extern void xsane_progress_clear(); +extern GtkWidget *xsane_vendor_pixmap_new(GdkWindow *window, GtkWidget *parent); +extern GtkWidget *xsane_toggle_button_new_with_pixmap(GdkWindow *window, GtkWidget *parent, const char *xpm_d[], const char *desc, + int *state, void *xsane_toggle_button_callback); +extern GtkWidget *xsane_button_new_with_pixmap(GdkWindow *window, GtkWidget *parent, const char *xpm_d[], const char *desc, + void *xsane_button_callback, gpointer data); +extern void xsane_pixmap_new(GtkWidget *parent, char *title, int width, int height, XsanePixmap *hist); +extern void xsane_option_menu_new(GtkWidget *parent, char *str_list[], const char *val, int option_number, const char *desc, + void *option_menu_callback, SANE_Int settable, const gchar *widget_name); +extern void xsane_option_menu_new_with_pixmap(GdkWindow *window, GtkBox *parent, const char *xpm_d[], const char *desc, + char *str_list[], const char *val, + GtkObject **data, int option, + void *option_menu_callback, SANE_Int settable, const gchar *widget_name); +extern void xsane_scale_new(GtkBox *parent, char *labeltext, const char *desc, + float min, float max, float quant, float page_step, float page_size, + int digits, double *val, GtkObject **data, void *xsane_scale_callback, SANE_Int settable); +extern void xsane_scale_new_with_pixmap(GdkWindow *window, GtkBox *parent, const char *xpm_d[], const char *desc, + float min, float max, float quant, float page_step, float page_size, int digits, + double *val, GtkObject **data, int option, void *xsane_scale_callback, SANE_Int settable); +extern void xsane_separator_new(GtkWidget *xsane_parent, int dist); +extern GtkWidget *xsane_info_table_text_new(GtkWidget *table, gchar *text, int row, int colomn); +extern GtkWidget *xsane_info_text_new(GtkWidget *parent, gchar *text); +extern void xsane_refresh_dialog(void); +extern void xsane_update_param(void *arg); +extern void xsane_define_output_filename(void); +extern int xsane_identify_output_format(char *filename, char **ext); +extern void xsane_change_working_directory(void); +extern int xsane_display_license(int ask_for_accept); +extern void xsane_widget_get_uposition(GtkWidget *gtk_window, gint *x, gint *y); +extern void xsane_widget_test_uposition(GtkWidget *gtk_window); + +/* ---------------------------------------------------------------------------------------------------------------------- */ + +#endif + -- cgit v1.2.3