summaryrefslogtreecommitdiff
path: root/src/xsane-front-gtk.h
diff options
context:
space:
mode:
authorKevin Dalley <kevind@rahul.net>2002-03-15 14:20:02 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:02 +0000
commitac8459519a9ef2a1ee635509b52a653da1bfe9d5 (patch)
tree9ed2df2144d6ad3bb7cf1d43243d815a8eb90059 /src/xsane-front-gtk.h
parent8b372c9248930ae29763202121434d3d676d0f30 (diff)
parente7e90b72fd3161c5d55fed49e100781dfa3e9408 (diff)
Imported Debian patch 0.84-2debian/0.84-2
Diffstat (limited to 'src/xsane-front-gtk.h')
-rw-r--r--src/xsane-front-gtk.h83
1 files changed, 83 insertions, 0 deletions
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 <Oliver.Rauch@rauch-domain.de>
+ 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 <sane/sane.h>
+#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
+