summaryrefslogtreecommitdiff
path: root/src/xsane-preview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsane-preview.h')
-rw-r--r--src/xsane-preview.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/xsane-preview.h b/src/xsane-preview.h
index ba1321c..d57870e 100644
--- a/src/xsane-preview.h
+++ b/src/xsane-preview.h
@@ -3,7 +3,7 @@
xsane-preview.h
Oliver Rauch <Oliver.Rauch@rauch-domain.de>
- Copyright (C) 1998-2002 Oliver Rauch
+ Copyright (C) 1998-2005 Oliver Rauch
This file is part of the XSANE package.
This program is free software; you can redistribute it and/or modify
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sane/sane.h>
+#include "xsane-batch-scan.h"
#define SELECTION_RANGE_IN 4
#define SELECTION_RANGE_OUT 8
@@ -41,16 +42,20 @@ enum
MODE_NORMAL,
MODE_PIPETTE_WHITE,
MODE_PIPETTE_GRAY,
- MODE_PIPETTE_BLACK
+ MODE_PIPETTE_BLACK,
+ MODE_AUTORAISE_SCANAREA,
+ MODE_ZOOM_IN
};
/* ------------------------------------------------------------------------------------------------------ */
+#if 0
typedef struct Batch_selection
{
float coordinate[4]; /* batch selection coordinate (device coord) */
struct Batch_selection *next;
} Batch_selection;
+#endif
typedef struct
{
@@ -85,6 +90,8 @@ typedef struct
float maximum_output_width; /* maximum output width (photocopy) */
float maximum_output_height; /* maximum output height (photocopy) */
+ int paper_orientation; /* orientation of the paper (photocopy) */
+ int block_update_maximum_output_size_clipping; /* do not clip maximum output size */
int index_xmin, index_xmax, index_ymin, index_ymax; /* index numbers in dependance of p->rotation */
@@ -111,6 +118,8 @@ typedef struct
u_char *preview_row;
int scanning;
+ int read_offset_16;
+ char last_offset_16_byte;
int scan_incomplete;
int invalid;
int preview_colors;
@@ -135,6 +144,7 @@ typedef struct
int selection_ypos;
int selection_xedge;
int selection_yedge;
+ float ratio;
Tselection selection; /* selected area to scan */
Tselection previous_selection; /* previous ... */
@@ -143,7 +153,9 @@ typedef struct
int show_selection;
+#if 0
Batch_selection *batch_selection;
+#endif
GtkWidget *top; /* top-level widget */
GtkWidget *unit_label;
@@ -153,23 +165,30 @@ typedef struct
GtkWidget *window; /* the preview window */
GtkWidget *start; /* the start button */
GtkWidget *cancel; /* the cancel button */
+ GtkWidget *zoom; /* the zoom */
- GtkWidget *button_box; /* hbox for the following buttons */
+ GtkWidget *menu_box; /* the bottom menu box */
+ GtkWidget *button_box; /* the bottom button box */
+ GtkWidget *add_batch; /* add batch button */
GtkWidget *pipette_white; /* pipette white button */
GtkWidget *pipette_gray; /* pipette gray button */
GtkWidget *pipette_black; /* pipette black button */
GtkWidget *zoom_not; /* zoom not button */
GtkWidget *zoom_out; /* zoom out button */
GtkWidget *zoom_in; /* zoom in button */
+ GtkWidget *zoom_area; /* zoom area button */
GtkWidget *zoom_undo; /* zoom undo button */
GtkWidget *full_area; /* select full scanarea */
+ GtkWidget *autoraise; /* autoraise scanarea */
GtkWidget *autoselect; /* autoselect scanarea */
GtkWidget *preset_area_option_menu; /* menu for selection of preview area */
GtkWidget *rotation_option_menu; /* menu for selection of rotation */
+ GtkWidget *ratio_option_menu; /* menu for selection of ratio */
GtkWidget *scanning_pixmap; /* pixmap that shows preview is in scanning progress */
GtkWidget *valid_pixmap; /* pixmap that shows preview is valid */
GtkWidget *invalid_pixmap; /* pixmap that shows preview is invalid */
GtkWidget *incomplete_pixmap; /* pixmap that shows preview is incomplete */
+ GtkWidget *rgb_label; /* label to show RGB values */
}
Preview;
@@ -193,9 +212,10 @@ extern void preview_calculate_raw_histogram(Preview *p, SANE_Int *count_raw, SAN
extern void preview_calculate_enh_histogram(Preview *p, SANE_Int *count, SANE_Int *count_red, SANE_Int *count_green, SANE_Int *count_blue);
extern void preview_area_resize(Preview *p); /* redraw preview rulers */
-extern void preview_set_maximum_output_size(Preview *p, float width, float height); /* set maximum outut size */
+extern void preview_set_maximum_output_size(Preview *p, float width, float height, int paper_orientation); /* set maximum outut size */
extern void preview_select_full_preview_area(Preview *p);
extern void preview_display_valid(Preview *p);
+extern void preview_create_batch_icon(Preview *p, Batch_Scan_Parameters *parameters);
/* ------------------------------------------------------------------------------------------------------ */