summaryrefslogtreecommitdiff
path: root/src/xsane-viewer.h
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:03 +0000
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:03 +0000
commit817e6294b42b3e4435f1b99728afc1dca84a6445 (patch)
tree75bc563b5fe4149fe7e5cbf7a5c2cbcee5ea0fb3 /src/xsane-viewer.h
parente7e90b72fd3161c5d55fed49e100781dfa3e9408 (diff)
Imported Upstream version 0.97upstream/0.97
Diffstat (limited to 'src/xsane-viewer.h')
-rw-r--r--src/xsane-viewer.h56
1 files changed, 42 insertions, 14 deletions
diff --git a/src/xsane-viewer.h b/src/xsane-viewer.h
index 885466b..31d87bc 100644
--- a/src/xsane-viewer.h
+++ b/src/xsane-viewer.h
@@ -3,7 +3,7 @@
xsane-viewer.h
Oliver Rauch <Oliver.Rauch@rauch-domain.de>
- Copyright (C) 2001-2002 Oliver Rauch
+ Copyright (C) 2001-2005 Oliver Rauch
This file is part of the XSANE package.
This program is free software; you can redistribute it and/or modify
@@ -29,51 +29,79 @@
#include <gdk/gdk.h>
#include <gtk/gtk.h>
+typedef enum
+{
+ VIEWER_NO_MODIFICATION = 0,
+ VIEWER_NO_NAME_AND_SIZE_MODIFICATION,
+ VIEWER_NO_NAME_MODIFICATION,
+ VIEWER_FULL_MODIFICATION
+} viewer_modification;
+
typedef struct Viewer
{
struct Viewer *next_viewer;
char *filename;
char *output_filename;
+ char *last_saved_filename;
+ char *undo_filename;
- int reduce_to_lineart;
+ int allow_reduction_to_lineart;
float zoom;
int image_saved;
int cancel_save;
+ viewer_modification allow_modification;
+
+ int despeckle_radius;
+ float blur_radius;
- int filter_radius;
- float x_scale_factor;
- float y_scale_factor;
+ int bind_scale;
+ double x_scale_factor;
+ double y_scale_factor;
GtkWidget *top;
GtkWidget *button_box;
+ GtkWidget *file_button_box;
+ GtkWidget *edit_button_box;
+ GtkWidget *filters_button_box;
+ GtkWidget *geometry_button_box;
+
+ GtkWidget *file_menu;
+ GtkWidget *edit_menu;
+ GtkWidget *filters_menu;
+ GtkWidget *geometry_menu;
+
GtkWidget *viewport;
GtkWidget *window;
+ GtkWidget *save_menu_item;
+ GtkWidget *ocr_menu_item;
+ GtkWidget *clone_menu_item;
+
+ GtkWidget *undo_menu_item;
+
+ GtkWidget *despeckle_menu_item;
+ GtkWidget *blur_menu_item;
+
GtkWidget *save;
GtkWidget *ocr;
+ GtkWidget *undo;
GtkWidget *clone;
- GtkWidget *scale;
GtkWidget *despeckle;
GtkWidget *blur;
- GtkWidget *rotate90;
- GtkWidget *rotate180;
- GtkWidget *rotate270;
-
- GtkWidget *mirror_x;
- GtkWidget *mirror_y;
-
GtkWidget *image_info_label;
GtkProgressBar *progress_bar;
GtkWidget *active_dialog;
+
+ int block_actions;
}
Viewer;
-extern Viewer *xsane_viewer_new(char *filename, int reduce_to_lineart, char *output_filename);
+extern Viewer *xsane_viewer_new(char *filename, int reduce_to_lineart, char *output_filename, viewer_modification allow_modification);
#endif