Commit Graph

149 Commits

Author SHA1 Message Date
Matthew Flatt
b098ca7aa6 slideshow: run a slideshow' or main' submodule, if any
A common Slideshow pattern is to put a subset of slides in its
own module with a `run-slides' function, and then you'd
(un)comment a `(run-slides)' call at the end of the module to
work on the subset by itself. Now, you can write
`(module+ main (run-slides))' atthe end of the module and not
have to comment it out. Adding `main' support to the `slideshow'
executable makes it more consistent with using `racket' directly.
Checking first for a `slideshow' submodule makes it possible
for `slideshow' and `racket' to do different things, in case
that's useful.
2012-05-29 11:00:43 -06:00
Matthew Flatt
a137459b65 more error-message conversions and repairs 2012-05-27 11:29:21 -06:00
Matthew Flatt
5962e542f7 slideshow: add `slide->pict' 2012-05-22 06:20:54 -04:00
Matthew Flatt
1ee2b6a522 slideshow: add current-gap-size' and some #:gap-size' arguments 2012-05-20 13:39:08 -06:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Matthew Flatt
351e82735b move and rename pict `convert' support
Renamed `convert' to `pict-convert', etc., to avoid confusion
with `file/convert' bindings.

Moved out of `slideshow/pict' to `slideshow/pict-convert', because
most `slideshow/pict' clients do not need it.
2012-04-06 18:51:10 -06:00
Neil Toronto
1a00d2d51f Last icon rewrite!
This removes all the SVG sources, parsing, and marked-layer colorizing, the PNG binaries in the distribution, and the dependence of DrRacket on `slideshow/pict'.

Icons are now produced by drawing on a bitmap-dc%, inferring or building a z map, choosing a material, and sending these to a two-pass ray tracer. This is for the most part hidden behind an API consisting of functions from colors and optional sizes and materials to `bitmap%'s.

Contracts and documentation forthcoming.
2012-01-07 16:18:11 -07:00
Matthew Flatt
dccc76c9b0 slight modernization of the Slideshow tutorial 2011-12-21 16:30:24 -07:00
Neil Toronto
076453dacc Use bitmap' instead of icon->pict'
Rename `pict->icon' to `pict->bitmap' and put in `slideshow/pict'
2011-12-01 17:04:31 -07:00
Matthew Flatt
4464f2bf19 fix `get-slides-as-picts' most-recent-slide implementation 2011-11-19 19:14:51 -07:00
Eli Barzilay
ca64179b63 "half-screen" -> "right-half-screen".
(I don't know why this was needed, but calling it "half-screen" looks
like it's asking for future trouble.)
2011-10-10 13:35:00 -04:00
Kevin Tew
abc0af81d2 Slideshow --half-screen 2011-10-10 11:07:29 -06:00
Eli Barzilay
a68ea14d8b Fix typo in symbol name, keep old one still.
Closes PR 12265.
2011-10-07 10:47:15 -04:00
Matthew Flatt
0197902309 add var-ref->mod-decl-insp' and switch cur-code-insp' uses
Macros and other tools that need syntax privilege used
`(current-code-inspector)' at the module top-level to try to
capture the right code inspector at load time. It's more
consistent to instead use the enclosing module's declaration-time
inspector, and `var-ref->mod-decl-insp' provides that. The
new function works only on references to anonymous variables,
which limits access to the inspector.

The real function name is longer, of course.
2011-09-20 13:50:36 -06:00
Matthew Flatt
fa82d70cc6 slideshow/pict: add linestyle' and #:style' argument to `pin-line' 2011-08-24 09:07:13 -06:00
Robby Findler
c908e08dd6 fix the text of the slideshow tutorial to talk about #:bullet instead of item/bullet
closes PR 12095
2011-08-08 16:50:46 -05:00
Matthew Flatt
6d073e0cf7 fix `get-slides-as-picts' to record margin with picts
Closes PR 12059
2011-07-19 08:45:11 -06:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
4905d344dd slideshow/pict: add `rotate'
which requires two new fields in the `child' struct to support
 `lt-find', etc., when child picts are rotated
2011-07-04 16:26:09 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Robby Findler
69b5daa9e6 remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
Matthew Flatt
1160d3df62 remove syntax certificates; add syntax taints 2011-06-29 19:15:48 -06:00
Matthew Flatt
f34a31cac9 "under <platform>" -> "on <platform>"; "X" -> "Unix"
I originally picked "under" as the preposition to go before
 a platform name, but obviously you should build "on" a
 platform, and "under" suddenly annoys me. The choice of "on"
 is now codified in the documentation style guide. Meanwhile,
 "Unix" insted of "X" seems more clear and consistent in the
 `racket/gui' docs.

 More usefully, this patch also fixes a few out-of-date
 platform-specific claims.
2011-06-17 18:54:43 -06:00
Matthew Flatt
dc7e8ef379 slideshow: improve viewer inset handling 2011-05-10 09:53:49 -06:00
Robby Findler
507b1cd8fd moved the docs-complete library into rackunit
to avoid having a separate, new manual for the
  one library
2011-05-05 16:10:42 -05:00
Robby Findler
fcfb422294 weeded out some more of the test-docs-complete.rkt files 2011-04-25 21:20:52 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Matthew Flatt
501892c0ca slideshow: add a couple of contracts
--- more needed
2011-03-08 07:55:53 -06:00
Matthew Flatt
9d2e025e51 Rackety Slideshow tutorial 2011-02-11 09:59:48 -07:00
Matthew Flatt
39e0921f90 trigger Slideshow printing via `executable-yield-handler'
Closes PR 11595
2011-01-08 07:09:39 -07:00
Matthew Flatt
aee9f41d53 slideshow: tame use of fullscreen mode
Closes PR 11490, hopefully
2010-12-08 18:40:09 -07:00
Matthew Flatt
2edadd6113 add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui 2010-11-26 10:35:05 -07:00
Matthew Flatt
c6ae7377a5 slideshow: use printer-dc on all platforms for --print 2010-11-24 05:44:59 -07:00
Matthew Flatt
aa958f8986 slideshow: consistent rounding for clickbacks 2010-11-05 15:54:53 -06:00
Matthew Flatt
85e4fed31f use canvas-compatible bitmap for prefetch 2010-11-05 15:54:28 -06:00
Robby Findler
e2958e0605 don't catch break exceptions 2010-10-13 15:55:16 -05:00
Eli Barzilay
0aa659ffe5 Reindent the body, use `append-map'. 2010-08-28 23:56:55 -04:00
Eli Barzilay
82749312f6 Use racket/base', no need for begin-with-definitions'. 2010-08-28 23:56:55 -04:00
Eli Barzilay
3b609eef10 use .rkt suffix => avoid a bug when trying to show the file 2010-08-28 23:56:55 -04:00
Eli Barzilay
7dc4d2e5a6 Change a bunch of "~%" and "~n" in format strings to "\n". 2010-08-25 17:17:01 -04:00
Robby Findler
2faca724e3 generalized the #:steps argument to play so different phases on an animation can take different amounts of time 2010-08-18 16:58:58 -05:00
Eli Barzilay
de0cc7771b A lot of "DrScheme" -> "DrRacket"s. 2010-05-17 01:27:03 -04:00
Eli Barzilay
7f6efdc8be A lot of "MrEd" -> "GRacket"s. 2010-05-16 23:46:05 -04:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Matthew Flatt
b072d85107 adjust Slideshow to not re-export printable<%>; improve docs for both Slideshow and Scribble 2010-05-14 11:33:08 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
c7e723eef7 somewhat rackety core docs 2010-04-22 15:10:25 -06:00
Matthew Flatt
7503f8c6e9 change #:module-info to #:language-info for consistency with module->language-info 2010-04-21 18:50:16 -06:00
Robby Findler
71ca247b8e undid my font-setting commit
svn: r16542
2009-11-04 17:22:27 +00:00
Robby Findler
71387d274c made gill sans be the default under unix when it is available
svn: r16499
2009-11-02 12:08:06 +00:00