Commit Graph

303 Commits

Author SHA1 Message Date
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Eli Barzilay
39a0ab60a7 Some more #lang racket' -> #lang racket/base' conversions
(And some other related minor racketisms.)
2012-11-07 08:03:44 -05:00
Robby Findler
8bc3b70a3c clean up rectangle computations, fixing some bugs along the way 2012-10-26 21:49:45 -05:00
Robby Findler
9d4a3a6e07 improve the performance for dragging around items in mrlib/graph
(used by Redex's traces window and the module browser)
2012-10-24 23:56:30 -05:00
Robby Findler
fa891703a8 clean up indentation and move arrows to the front, while I'm here 2012-09-27 11:13:26 -05:00
Eli Barzilay
18883681a2 Convert all uses of (integer-in 0 255) to `byte?'. 2012-07-22 13:00:05 -04:00
Eli Barzilay
7d6e79023c Random pickiness.
Spaces at EOFs, indentation, etc.
2012-06-22 12:00:48 -04:00
Eli Barzilay
b8034828d0 Sort the mess with aligned-pasteboard tests.
1. Lots of #lang-ization, other racketizations, code improvements, etc.

2. Some files that were not working now do.

3. "collects/tests/aligned-pasteboard" had some files that were near
   duplicates of "collects/mrlib/private/aligned-pasteboard/tests".
   I've removed the former since in a few places it looked like an older
   version (eg, there were bogus references to a non-existent
   "utils.rkt").  The former has more files that are in runnable
   condition now.

4. There are plenty of tests that look like they're failing, but it
   wasn't shown since they just return #f, and when they were running
   with a "-f" these results weren't displayed.

5. I have no idea about the code, this is all just reshuffling and minor
   editing.
2012-06-19 01:42:20 -04:00
Asumu Takikawa
f9ec37bbdd Minor fix in mrlib/hierlist docs 2012-06-06 17:20:15 -04:00
Neil Toronto
a713ca8a8b Added nan?, infinite?, degrees->radians, radians->degrees, exact-round, exact-floor, exact-ceiling, exact-truncate to racket/math
Altered TR's random arithmetic testing to generate single-flonums and very small flonums; fails now because of erroneous types

Fixes to sgn, sinh, cosh, and tanh:
 * preserve single-flonum-ness
 * correct zero sign (-0.0) for negative return values that are smaller than epsilon
 * correct behavior with NaN and infinite inputs
2012-06-05 22:40:44 -06:00
Asumu Takikawa
cfe1711494 Convert all uses of mzlib/class100 to racket/class 2012-05-26 11:12:55 -04:00
Sam Tobin-Hochstadt
952af2fa2d Add \bot as alias for \perp in DrRacket (both are supported in LaTeX). 2012-05-21 15:55:07 -04:00
John Clements
0196a6f97a doc clarification for make-argb 2012-05-08 12:02:02 -07: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
68e005fb2c racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
Also, use keywords for `make-pen' and `make-brush'.

Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.

In consultation with Asumu.
2012-05-01 21:04:40 -06:00
Robby Findler
8e35fd01a5 forgot the result contract 2012-03-30 20:57:53 -05:00
Robby Findler
4b57482298 adjust DrRacket submodule-running options so the user
has more control over which ones get run
2012-03-30 16:42:34 -05:00
Robby Findler
3b2cf3f7a4 make the tooltips for the drracket toolbar buttons go away when they
get any events (this shouldn't be necessary unless one gets lost
somehow, but apparently that can happen)
2012-01-19 12:14:35 -06:00
Robby Findler
770c2d14f8 swapped the backwards triangles 2011-10-12 20:46:20 -05:00
Robby Findler
10d19bf8d5 adjust 2htdp/image library so that it doesn't create arbitrarily large
bitmaps when rendering images

closes PR 12277 (except I didn't fix the make-bitmap contract)

include in 5.2
2011-10-11 08:33:50 -05:00
Neil Toronto
d3b5e21cae Added new plot library and old libfit (which plot still depends on) 2011-10-05 10:26:49 -06:00
Robby Findler
560dfd5312 Allows selection of the various text objects inside DrRacket's display of
syntax objects

closes PR 6121
2011-10-05 08:43:18 -05:00
Robby Findler
34581b7050 try using size-in-pixels for the font primitive in 2htdp/image
closes PR 11883

(the earlier commit with this message was just completely bogus)
2011-09-27 16:24:23 -05:00
Robby Findler
b1ecffe262 add missing default arg value to close-icon% docs 2011-09-20 17:14:58 -05:00
Robby Findler
913883fd28 adjust include-bitmap so that it does not write to the filesystem
(also, Rackety)
2011-08-27 07:54:08 -05:00
Robby Findler
6c91288f2f speed up bitmap rotation (could probably revisit this to
speed up flipping (and also to do all three in one pass)
2011-08-23 18:56:51 -05:00
Robby Findler
b425ca90d2 fix bug in the loading of non-alpha bitmaps (also: minor Rackety) 2011-08-23 18:56:50 -05:00
Robby Findler
034e4f2364 add test cases for old file 2htdp/image file formats
(and fix corresponding bugs)
2011-08-23 07:12:11 -05:00
Robby Findler
1f02106318 2htdp/image
normalize the internal representation of bitmaps so it always uses an alpha
bitmap instead of sometimes using a mask bitmap and sometimes using alpha.
This also fixes a bug where the library would get consfused when it saved
a bitmap to a file, since it didn't record if it was an alpha bitmap or not.

This improves the save files that contain images, cutting the size for bitmaps
in half (bringing the drracket save file down to a mere 25x larger than the
png file format for the example I was using...)
2011-08-22 19:09:52 -05:00
Robby Findler
8ccf50b84b use the pre-multiplied alphas when comparing images for 2htdp/image 2011-08-22 19:09:50 -05:00
Robby Findler
56b82ba83c fix the png conversion code for 2htdp/image images
closes PR 12061
  please merge to the release branch
2011-07-22 08:09:17 -05:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Robby Findler
69b5daa9e6 remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
Eli Barzilay
78dacef817 Get rid of "defaultly"s. 2011-06-28 02:11:24 -04:00
Eli Barzilay
ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04: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
Eli Barzilay
3ecdd3bc59 Specify what happens on OS X with ;-separated globs.
Also, update the `path-dialog%' intro -- it is no longer similar to the
dialog under X.
2011-06-06 02:01:26 -04:00
Robby Findler
9e36dc8eb3 adding a missing 2htdp/image color => racket/gui color coercion
closes PR 11956
2011-06-02 16:27:09 -07: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
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Robby Findler
100b4d31f1 make the close icon clicky thingy not grab the focus
closes PR 10380
2011-04-18 10:31:57 -05:00
Robby Findler
7b4e673081 adjust drracket's value printer to specially treat 2htdp/image images.
related to PR 11849
2011-04-14 15:26:43 -05:00
Robby Findler
e928bd840c Two improvements to the mrlib/graph library and the module browser:
- improved the drawing speed in mrlib's graph pasteboard
  by caching the background arrows (optionally; only turned
  on for the module browser. in redex, this probably won't
  speed anything up so it isn't used)

- added a search feature to the module graph to help find
  dependencies; type in string and some of the graph changes
  color
2011-04-06 11:35:31 -05:00
Robby Findler
5522c72ecb Rackety 2011-04-02 13:36:33 -05:00
Robby Findler
362f7392ed fixed add-parent bug 2011-04-02 13:36:31 -05:00
Robby Findler
e8eea05afc rewrote uses of mzlib/contract into racket/contract
(and other minor rackety when the occasion arose)
2011-03-31 18:21:11 -05:00
Robby Findler
7378c2e42f added cdot 2011-03-10 09:18:00 -06:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00