summaryrefslogtreecommitdiff
path: root/frontend/xsane-front-gtk.h
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:04:58 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:04:58 +0000
commit2d113e8792747151bf5d830f1a1485f2f951f940 (patch)
treef29e273d53fe5735cdac171504d798bf45ea2007 /frontend/xsane-front-gtk.h
Imported Upstream version 0.50upstream/0.50
Diffstat (limited to 'frontend/xsane-front-gtk.h')
-rw-r--r--frontend/xsane-front-gtk.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/frontend/xsane-front-gtk.h b/frontend/xsane-front-gtk.h
new file mode 100644
index 0000000..600fa28
--- /dev/null
+++ b/frontend/xsane-front-gtk.h
@@ -0,0 +1,73 @@
+/* xsane -- a graphical (X11, gtk) scanner-oriented SANE frontend
+
+ xsane-front-gtk.h
+
+ Oliver Rauch <Oliver.Rauch@Wolfsburg.DE>
+ Copyright (C) 1998-2000 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 void xsane_get_bounds(const SANE_Option_Descriptor *opt, double *minp, double *maxp);
+extern int xsane_set_resolution(int well_known_option, int 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 XsaneProgress_t *xsane_progress_new(char *title, char *text, GtkSignalFunc callback, gpointer callback_data);
+extern void xsane_progress_free(XsaneProgress_t *p);
+extern void xsane_progress_update(XsaneProgress_t *p, gfloat newval);
+extern void xsane_toggle_button_new_with_pixmap(GtkWidget *parent, const char *xpm_d[], const char *desc,
+ int *state, void *xsane_toggle_button_callback);
+extern GtkWidget *xsane_button_new_with_pixmap(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(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 step, float xxx,
+ int digits, double *val, GtkObject **data, void *xsane_scale_callback, SANE_Int settable);
+extern void xsane_scale_new_with_pixmap(GtkBox *parent, const char *xpm_d[], const char *desc,
+ float min, float max, float quant, float step, float xxx, 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 *nothing);
+
+/* ---------------------------------------------------------------------------------------------------------------------- */
+
+#endif
+