Commit graph

15 commits

Author SHA1 Message Date
wiz
0e2722bf41 Update to xsane-0.64 (to make it compile again). Sort PLIST.
Major changes since 0.61:
Documentation updates, bug fixes, two new translations (it&tr), update
to gimp-current API.
2000-11-29 22:09:15 +00:00
veego
eea3c22774 Expand the last CPPFLAGS to also include ${LOCALBASE}/include and not only
x_include. Now, we find sane/sane.h if you use xpkgwedge.
Maybe this should just use X11PREFIX, but there was allready a line which
does the x_include and LOCALBASE one.
2000-10-26 21:33:04 +00:00
rh
43b5e48603 Update xsane to 0.61. Changes are:
xsane-0.51 -> 0.52:
-------------------

 - changed gimp_install_procedure(...) for specified device: "RGB, GRAY"
   -> 0

 - in xsane-scan.c and xsane-preview.c added " | GDK_INPUT_EXCEPTION" to
   gdk_input_add(fd, GDK_INPUT_READ | GDK_INPUT_EXCEPTION,
   preview_read_image_data, p);

 - added static int xsane_set_modus_defaults(void)
   zoomfactor is set to 1.0 if copy mode is selected
   full preview area is selected if copy or fax mode is selected

 - removed a second xsane_device_preferences_restore(); in static void
   xsane_device_dialog(void)

 - zoom factor keeps unchanged when printer is changed

 - added psfile-geometry to setup/saving options, it is used when saving
   postscript in scanmode

 - moved exisiting routines to open functions to xsane-front-gtk.c:
   void xsane_define_output_filename(void);
   void xsane_identify_output_format(char **ext);

 - define_maximum_output_size is called in each routine that changes
   filename or fileextension because the output frame is also drawn in
   scanmode with filetype postscript now

 - included Stanislav Brabec's <utx@penguin.cz> sed-scripts and changes
   for Makefile.in in xsane-*/po

 - added creation of newlanguage.po in po/Makefile.in

 - updated german translation file de.po

 - updated czech translation file cs.po - thanks to Stanislav Brabec
   <utx@k332.feld.cvut.cz>

 - updated french translation file fr.po


xsane-0.52 -> 0.53:
-------------------

 - added test if vendor, model and type strings do exists (pointer != 0)
   otherwise "no vendor",... is printed

 - changed
     ext = &extension;
   to
     if (extension)
     {
       *ext = strdup(extension);
     }
     else
     {
       *ext = 0;
     }
   in xsane_identify_output_format - bad thing, I get old ;-)

 - added new routine xsane_find_best_resolution that makes sure that the
   selected resolution fits into range/quantization given by backend.
   This is used by xsane_set_resolution and when resolution_list is
   created.

 - added xsane_set_all_resolutions to xsane_set_modus_defaults

 - xsane resolution can be changed by backend now


xsane-0.53 -> 0.54:
-------------------

 - updated french translation table

 - updated german translation table

 - changed type of umask in preferences from mode_t to int because
   sizeof(mode_t) is on some machines only 2 bytes what cause problems.
   all calls of umask(foo) are changed to umask((mode_t) foo)

 - changed preferences update_policy from GtkUpdateType to int.

 - selection box can not be moved out of the preview window, the
   size of the selection keeps unchanged in that case now.

 - removed some gtk_main_iteration and reordered some selection drawing
   routines.

 - removed unused files/directories from package:
   sanei, include/sane/sanei_(some).h, po_old


xsane-0.54 -> 0.55:
-------------------

 - added preview support for 16 bpp (transformed to 8bpp)

 - added copyright line in devcie selection dialog

 - preview selection frame is only active when backend supports coordinate
   selection

 - added preview oversampling factor (multiplier for calculated preview
   resolution)

 - added lineart enhancement: preview can be done in grayscale now,
   threshold value change is displayed without a new preview scan.

 - added "device options" to setup dialog:
   - Scanner dependant options for grayscale->lineart conversion have
     to be entered there.

 - a color preview is now displayed gray when grayscale mode is selected

 - updated de.po, cs.po, fr.po

 - updated po/xsane-pot.sed


xsane-0.55 -> 0.56:
-------------------

 - added hold timer to preview (update-policy=delayed)

 - added hold timer to xsane_slider (update-policy=delayed)

 - moved help menu from file to help

 - added swedish (sv) translation - thanks to Johan Bengtsson
   <johanb@lls.se>

 - removed bug in xsane_rc_io_w_string, it returns EINVAL now each time
   when the string does not begin with "


xsane-0.56 -> 0.57:
-------------------

 - made xsane_choose_device return type to void (was gint32)

 - arranged device-preferences in struct xsane in the order they are used
   as device preferences, made sure that all variable types are correct:
   - changed type of xsane.mode from gint32 to int
   - changed type of xsane.lineart_mode from gint32 to int
   - changed type of xsane.show_preview from SANE_Bool to int
   - changed type of xsane.enhancement_rgb_default from SANE_Bool to int
   - changed type of xsane.fax_finemode from SANE_Bool to int

 - added mask for *_lock in preview motion_notify_event handling
   Preview selection can be done with locks activated now

 - histogram is cleared before/redrawn after saving/loading device settings

 - added xsane_control_option() that tests if option >= 0 and returns
   SANE_STATUS_INVAL if not

 - added xsane_get_option_descriptor() that tests if option >= 0 and
   returns NULL if not

 - changed parameters of preview_area_resize and added
   preview_area_resize_handler

 - removed a lot of gtk_main_iterations from xsane_preview.c
   they make problems in the redrawing order and can cause display
   problems


xsane-0.57 -> 0.58:
-------------------

 - split the preview_event_handler into
   - preview_press_button_event_handler
   - preview_motion_event_handler
   - preview_release_button_event_handler

 - the preview_expose_event_handler now is called twice,
   the second call has been placed in the preview_event_handler_before

 - reactivated gtk_main_iteration after at the end of motion_event

 - added warning window when xsane is started as root

 - added selection of temporary directory in preferences/setup/saving
   options

 - added gdk_input_remove(xsane.input_tag); before xsane_start_scan is
   called in 3-pass scanning mode (suggestion from
   Heiko_Schroeder@t-online.de)

 - changed output of "xsane -v"

 - in xsane_scan_done moved xsane.header_size = 0; before test for ADF
   Thanks to Russell Coggrave for the info about it.

 - added gtk_set_locale() before gtk_init()

 - added copyright sign "(c)" to translated texts because it is not
   available on all charsets

 - temporary filenames are created random and unique (mktemp + random
   number) due to security problems with fixed/calculateable tempfiles.

 - the preview-files are created (empty) at program startup now

 - when program exits the previews are erased
   there is no way to store the preview images any more when the program
   is closed

 - preview_restore_image() creates the xsane-startimage if no preview is
   stored

 - renamed directory frontend to src

 - create xsane-help script that opens online helpfile


xsane-0.58 -> 0.59:
-------------------

 - preview_do_gamma_correction does test for 3 pass scanner color mode

 - changed fax x-resolution and standard resolution from 98 ppi to 204 ppi
   and with of faxpage from 210.0 to 215.7 (so we get 1728 pixels in
   x direction, hylafax-faq says that is the correct size)

 - split preferences.printer[..].resolution -> lineart, grayscale and
   color_resolution

 - added setlocale(LC_NUMERIC, "C"); in xsane_init() and #include
   <locale.h> in xsane.h this should solve the problems with empty
   images (100%transparent) with gimp and other problems that were caused
   by local settings (1.3 <=> 1,3).

 - added setup-option "disable gimp preview gamma"

 - added selection (preferences/setup/enhancement options) if
   autoenhancement changes gamma value

 - renamed Preferences/Setup/"Device options" to "Enhancement options"

 - removed xsane internal callbacks from dialog struct, the functions are
   called directly now

 - changed the reading of the preview image header. The last newline
   character before the image data starts again made some problems, this
   seems to depend on the data that follows. So I added a fgets() command
   to skip the newline character - this seems to work.

 - changed increase_filename_in_counter, does work now if the only
   character of the base-filename is the counter

 - reduced size of src/xsane-startimage.pnm (1MB => 0.6MB)


xsane-0.59 -> 0.60:
-------------------

 - after filename counter is increased the cursor in the outputfilename
   entry is moved to the right

 - in preview_read_image_data when image is complete:
    preview_update_surface(p, 0);
   is called before
    preview_display_image(p);
   this way the geometry of the first preview scan is correct.

 - moved xsane_set_all_resolutions in xsane_update_xsane_callback(),
   it now also is called when the backend only uses one reesolution

 - added calibration image (xsane-calibration.pnm) that is loaded when
   setup window is created.
   The xsane enhancement functions are disabled in calibration mode, the
   image can not be resized (xscale = yscale = 1.0).
   The previsous image is reloaded when the setup window is closed again.

 - enviornment variable SANE_DEFAULT_DEVICE is used to activate the
   radiobutton in the device selection menu

 - removed unused item "custom" from preview surface menu

 - changed preview surface menu items:
   A3  -> A3P (portrait)
   A4  -> A4P (portrait)
   A4H -> A4L (landscape)
   A5  -> A5P (portrait)
   A5H -> A5L (landscape)

 - removed script xsane-help, necessary command now is listed in
   xsane.PROBLEMS

 - after filename counter is increased the cursor in the outputfilename entry is moved to the right


xsane-0.60 -> 0.61:
-------------------

 - added debug output function and messages

 - moved all global variables and struct GSGdialog to global struct xsane

 - cleaned up some variable names

 - added free gamma curve dialog (not ready)

 - prepared xsane for win32:
   - when BUGGY_GDK_INPUT_EXCEPTION is defined only blocking mode is used
     (needed because GDK input exception does not work on win32)
   - on win32 you cannot get a homedirectory, for this
     XSANE_FIXED_HOME_PATH has to be set to the path that shall be
     used as homedirectory
   - replaced all gtk_dialog_new by gtk_window_new and added hbox and
     vbox to the window (gtk_dialog_new does not work on WIN32)
   - added xsane.WIN32 and xsane.WIN32-compilation that describes how xsane
     is build on WIN32 with CYGWIN
   - replaced "/" in all paths, added label SLASH that is predefined to
     '/' if it is not defined by compiler option. For WIN32 it is set to
     '\' by compiler option
   - all fopen functions use argument "rb" or "wb" now (b=binary). This
     is needed for WIN32 and the b is ignored on unix systems.
   - published binary version xsane-win32-0v01 and xsane-win32-0v02 based
     on xsane-pre0.61 versions

 - removed an ugly bug: in struct Preferences there was predefined a
   string ("/tmp/") that caused a bad memory state when the string memory
   was freed, instead the string is defined in xsane_pref_restore now

 - changes for tiff format:
   - added support for 16 bit tiff format.
   - predefined tiff-compression is changed from 5 to PACKBITS(16bit),
     JPEG(8bit), FAXG3(1bit).
   - add resoultion-tags and datetime-tag to tiff files.

 - added "change directory" entry to preferences menu

 - added "scanning for devices" dialog
2000-08-28 16:00:18 +00:00
danw
82d9c1f174 Remove patches to deal with two bugs involving configure's handling of
INSTALL which have both been worked around in bsd.pkg.mk now.
2000-05-02 18:48:35 +00:00
rh
80a3fd2bdb Update xsane to 0.51
Changes are:

xsane-0.48 -> 0.49:
-------------------

 - added support for different x/y resolutions and zoom factors,
   the y-resolution slider is added to the xsane main dialog now
 - in gimp mode x- and y-resolution infos are set correct now
 - added resolution and zoom icons for x- and y-dimension
 - added fax_width and fax_height to preferences
 - added paper size frame in fax mode preview
 - added czech translation - thanks to by Stanislav Brabec
   <utx@k332.feld.cvut.cz>
 - changed gimp_install_procedure(...): "RGB, GRAY" -> 0
 - changed printer geometry setup from 1/72 ich to mm
 - added setup entries for fax- width, height, left_offset and
   bottom_offset
 - corrected terminating \0 of strings in sane_choose_device
 - when button "Negative" is pressed the white/gray/black points
   are also inverted
 - split preview_restore_image into preview_restore_image and
   preview_restore_image_from_file, it can zoom into a saved
   image now.
 - zoom functions are done now without a new preview scan.
   3 different zoom levels are stored.
 - in xsane_scan_start the output file is only opend once in
   multi pass scan three pass scan does work now again.
 - added several missing routines for gamma correction in three
   pass scan


xsane-0.49 -> 0.50:
-------------------

 - removed bug in calculation of paper size in copy and fax mode
 - added support for rotate image in xsane_save_ps
 - added support for rotate (landscape mode) in copy mode and
   save-ps mode and added preferences menu "Rotate Postscript"
 - added bugfix for gtk_tooltips_set_colors as long as it does
   not work in gtk
 - improved memory allocation routines and error handling in preview
 - after the main window is created the resolution, resolution_x
   and resolution_y are made up to date now
 - changed dynamic menue list definition in xsane_setup for
   TIFF_COMPRESSION menu


xsane-0.50 -> 0.51:
-------------------

 - added some rangechecks to histogram->gamma calculation
   it is done as histogram->gamma->histogram now
 - changed redraw frame in preview_display_partial_image(),
   now the old image is completely overpainted!
 - added xsane_set_all_resolutions() to xsane_printer_callback,
   now paper size frame is updated when printer is changed
 - corrected wrong error message in setting of scansource_selection
   from "unknown type" to "unknown constraint type"
 - moved xsane.header_size = 0; to the end of xsane_scan_done so
   it is called in each case the missing command was responsible
   for a segfault when starting a scan after xsane_cancel has
   been called
 - moved progress_bar from it's own window to the bottom of the
   main window progress_bar texts are displayed in info frame
   and in progress bar
 - added size in mm/cm/in to progress bar when not scanning
 - in scales the number of digits is defined by quantization now,
   if no quantization is given by backend (quant=0, SANE_TYPE_FIXED)
   x.2 digits are displayed
 - corrected page_setp for scales
 - selection_active is reset in preview_display_partial_image
   instead of preview_paint_image
2000-01-26 22:03:12 +00:00
rh
93b21cef3d Update xsane to 0.48. Changes are as follows:
- No longer requires patches ac and ad thanks to author's quick
   reaction to feedback.

xsane-0.46 -> 0.47:
-------------------

 - if helpfile viewer is netscape-remote and netscape is not running
   it is started

 - replaced ENODATA (used for EOF detection in xsane-rc-io and
   xsane-device-preferences) by XSANE_EOF (=-1)
   (ENODATA is not defined on all systems)

 - If faxproject does not exist, project data entries are made insensitive
   and buttons "send project" and "delete project" are replaced by "create
   project"

 - Added missing "&" in xsane_device_preferences_save_values:
   xsane_rc_io_w_array(w, &len, (void **) &word_array, (WireCodecFunc)
   xsane_rc_io_w_word, sizeof(SANE_Word)); that cause segmentation fault
   when writing bool, int or fixpoint arrays.


xsane-0.47 -> 0.48:
-------------------

 - "START" button is made insensitive in fax mode if project does not exist.

 - Preview window is created at the same time as the main dialog and it is
   destroyed at program end. Disabling "show preview" hides the preview
   window. This way the preview window placement does work correct.

 - set default values in xsane_device_preferences_load_file(char *filename)
   before reading the saved values, show_preview default = true

 - Mouse pointers display relevant mode icons in preview window now.

 - In copy mode the maximum selectable size that fits to the selected
   printer is drawn by a rect now. Selection is limited to the printer
   size.

 - if no local xsane.rc, xsane-style.rc or DEVICE.drc file exists it is
   loaded from SANE_DATA_DIR/xsane

 - all xsane rc files are placed in a subdirectory xsane now
   (~/.sane/xsane, SANE_DATA/DIR/xsane)

 - temporary files (previews, conversions) are saved in /tmp (defined in
   SANE_PATH_TMP in xsane.h) now

 - added window decoration icon (top left) to each xsane window (does work
   with kwm, does not work with fvwm2)

 - added warning icon and error icon

 - removed xsane_files_exit_callback, now xsane_scan_win_delete is used for
   all exit program calls

 - conversion-* and preview-* files are created with permission
   "-rw-------", images- and project-files are created with
   "preferences.image_umask" xsane.rc and *.drc are created with
   XSANE_DEFAULT_UMASK defined in xsane.h
2000-01-06 13:48:10 +00:00
rh
466ccf20c1 Update xsane to 0.46.
Changes include:
 * Problem with Segmentation fault when loading device settings with
   "lineart" mode enabled is solved.
 * Changed xsane- and device-preferences read and write routines, problem
   with segmentation faults while loading device preferences (*.drc)
   should be solved now. Old "*.drc" files have to be converted with
   xsane-convert-to-0.46.
 * Added "Problems?" to "Help" menu.
 * Filetype/extension can be selected by the menu "by ext." now.
1999-11-27 12:09:06 +00:00
rh
25c5a12454 Update xsane to 0.43
Notable changes are:
 - Disabled selection of LZW compression for libtiff.
 - PNG problems (not supported, lineart wrong) are solved.
 - Device name is saved in drc file now.
 - Xsane version is saved in drc file now.
 - Warning is printed if device rc file was not created for active device .
 - In GIMP mode there is no empty file created any more.
 - changed calculation of size in info row from unisgned long to float
   because unsigned long / 10 were to small to fit A4 with 1200x1200 dpi
 - removed member device from struct preferences - was never used
 - warning is printed if device rc file was not created for active device
 - bounded contrast to >=-100.0
 - added continuous update to histogram sliders and preview selection
 - moved "show xxx" menu items form menu "Preferences" to menu "View"
 - changed brightness and contrast range maximum from 300 to 400 %
 - added french translation - thanks to Vincent Renardias
 - added german translation table
 - replaced button-texts negative, rgb default, auto, default, store and
   restore by icons
 - setup/jpeg quality selection is enabled
 - implemented real single-bit format for tiff
 - added tiff compression type selection for multi bit and one bit images
 - the preview selection is based on device coordinates instead of
   preview window coordinates now
 - if there are no standard device settings at program startup, xsane
   take the backend predefined resolution (before this was set to 100)
1999-11-11 14:02:04 +00:00
rh
75a81f0f0f Update xsane to 0.33
Changes include:

 - added option --no-mode-selection/-s to disable menu for
   xsane mode selection
 - prepared text outputs (in xsane-text.h) for NLS/gettext support
 - removed change about SANE_STATUS_GOOD in multiple image mode.
   Adf mode is detected by scanmode again. This would be better
   selected by a mulit_image bit in the preferences block.
1999-08-27 06:11:45 +00:00
rh
9d815c97b5 Update xsane to 0.31
Notable changes are:
  * Experimental (not defined in the SANE standard) support for Automatic
    Document Feeder (scan until error) - should at least work with the
    umax-backend!
  * Changed standard device settings filename from scsi generic devicename
    to vendor:model.
  * The main window can be a fixed or a scrolled, resizable window now.
    Selection is done via setup/display/"main window fixed", the main
    window mode can be overwritten by specifying a command line option:

       -R or --Resizeable activates the resizeable, scrolled main window,
       -F or --Fixed activates the fixed (non resizable) main window.

  * Added option --device-settings file for definition of default device
    settings filename
  * Changed *_RGBI to *_RGBA to be compatible with coming extensions to
    the SANE standard
1999-08-04 18:31:53 +00:00
rh
1dcbc3cf62 Regen 1999-07-27 21:23:49 +00:00
rh
036b0883b1 Update xsane to 0.30
Notable changes are:
 * Filename for saving/loading device settings can be specified.
 * improved calculation of auto enhancement values
 * Enhancement options (gamma, contrast, brightness, rgb default
   and negative) are saved as device settings.
 * Auto enhancement and pipette functions calculate enhancement
   values for each color now.
 * Options rgb default and negative are added to preferences.
 * pipette functions: middle mouse button defines shadow/gray/highlight
   for color components, left mouse button only defines gray values!
1999-07-27 15:44:33 +00:00
agc
a910a6fd62 Add package patch-sum files 1999-07-09 13:50:05 +00:00
rh
9e53732e45 Update to xsane-0.22 1999-05-03 16:29:22 +00:00
rh
5355464373 Initial import of xsane-0.19, an improved scanner frontend for SANE
that also includes photocopier functionality.
1999-04-06 05:57:31 +00:00