1. 15 Sep, 2000 9 commits
    • Dave Love's avatar
      Strokes update. Toolbar stuff. · dab96841
      Dave Love authored
      dab96841
    • Dave Love's avatar
      Sync with maintainer's current version with changes · 0d0db51e
      Dave Love authored
      for Emacs, but avoid runtime cl and levents.
      (toplevel):  Change autoloads and compilation requires.
      (strokes-version, strokes-bug-address, strokes-lift): Values
      changed.
      (strokes-xpm-header, strokes-insinuated): New variable.
      (strokes): Add :link.
      (strokes-mode): Customized.
      (strokes-while-inhibiting-garbage-collector): New macro.
      (strokes-remassoc): Avoid remove-if.
      (strokes-fix-button2-command): Don't use ad-do-it.
      (strokes-insinuate): New function.
      (strokes-button-press-event-p, strokes-button-release-event-p):
      New functions, used instead of non-`strokes-' versions..
      (strokes-mouse-event-p): Rewritten.
      (strokes-event-closest-point): Avoid event-point.
      (strokes-get-grid-position): Avoid cdadr, caadr
      (strokes-read-stroke, strokes-read-complex-stroke): Avoid levents
      functions.
      (strokes-help): Use with-output-to-temp-buffer.
      (strokes-window-configuration-changed-p): New function.
      (strokes-update-window-configuration): Use buffer-live-p,
      strokes-window-configuration-changed-p.
      (strokes-mode): Use strokes-insinuate.  Alter mouse bindings.
      (strokes-char-face): New face.
      (strokes-char-table, strokes-base64-chars): New variable.
      (strokes-xpm-for-stroke, strokes-list-strokes)
      (strokes-xpm-char-on-p, strokes-xpm-char-bit-p)
      (strokes-xpm-encode-length-as-string, strokes-xpm-decode-char)
      (strokes-xpm-to-compressed-string, strokes-decode-buffer)
      (strokes-encode-buffer, strokes-xpm-for-compressed-string)
      (strokes-compose-complex-stroke, strokes-alphabetic-lessp): New
      functions.
      0d0db51e
    • Gerd Moellmann's avatar
      *** empty log message *** · ebb8f116
      Gerd Moellmann authored
      ebb8f116
    • Gerd Moellmann's avatar
      (toolbar-add-item): Use image-mask-p. · fc684909
      Gerd Moellmann authored
      fc684909
    • Gerd Moellmann's avatar
      (ALLOC_XPM_COLORS): Define if we can use Emacs' color · b243755a
      Gerd Moellmann authored
      allocation functions with the XPM lib.
      (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
      (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
      (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
      (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
      (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
      functions.
      (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
      functions, if possible, because these handle color allocation
      failure more gracefully.
      (Fimage_mask_p): New function.
      b243755a
    • Gerd Moellmann's avatar
      *** empty log message *** · 47e351a3
      Gerd Moellmann authored
      47e351a3
    • Gerd Moellmann's avatar
      (create-image): Doc fix. · d1d3c685
      Gerd Moellmann authored
      d1d3c685
    • Gerd Moellmann's avatar
      (toolbar-add-item): Use `:mask heuristic' · b5d618ba
      Gerd Moellmann authored
      instead of `:heuristic-mask t'.
      b5d618ba
    • Gerd Moellmann's avatar
      (QCmatrix, QCcolor_adjustment, QCmask, Qemboss) · 4a8e312c
      Gerd Moellmann authored
      (Qedge_detection, Qheuristic): New symbols.
      (syms_of_xfns): Initialize new symbols.
      (lookup_image): Handle `:mask X', `:algorithm emboss', and
      `algorithm (edge-detection ...)'.
      (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
      (tiff_format, gif_format, gs_format): Add `:mask'.
      (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
      (GIF_MASK, GS_MASK): New enumerators.
      (x_laplace_read_row, x_laplace_write_row): Functions removed.
      (emboss_matrix, laplace_matrix): New variables.
      (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
      (x_edge_detection): New functions.
      (x_laplace): Rewritten in terms of x_detect_edges.
      (x_build_heuristic_mask): If image has a mask, free it.
      4a8e312c
  2. 14 Sep, 2000 31 commits