Commit Graph

4612 Commits

Author SHA1 Message Date
Neil Toronto
884c8638b7 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

original commit: a713ca8a8b6c7aed987e80d0621484e68bc3c6f5
2012-06-05 22:40:44 -06:00
Matthew Flatt
231f5cb435 racket/gui: fix canvas%' implementation on-paint'
Broken in the conversion from `class100'.

original commit: 16f0b0c3f08ee6842bcf2909c368f3612cab97b8
2012-05-31 05:56:35 -06:00
Matthew Flatt
844c281e4f fix load handlers to match docs on parameters
Problems exposed by setting `read-accept-lang' to #f.

original commit: 74844152bca4d472cd6c415e9aa6e9c1b5bd41ff
2012-05-29 13:57:32 -06:00
Matthew Flatt
3078c04c20 racket/gui: implement set-clipboard-bitmap' in clipboard<%>'
Closes PR 12689

Cocoa implementation provided by Jens Axel Søgaard

original commit: 58db5f8b46bc8e9603a1557c1804a8a87e70b1c4
2012-05-26 19:42:48 -06:00
Asumu Takikawa
af300b7857 racket/gui: fix a mzscheme->racket/base issue
original commit: a38e6a19abfa61945cc98b5688e49fd7305c9361
2012-05-26 16:23:30 -04:00
Asumu Takikawa
22d1436052 Remove mred/private/kw.rkt
This handled init argument inheritance for class100, but
all uses of it have now been removed.

original commit: 05394aff7eb442a3c8711998caa3e6b3d0e58be8
2012-05-26 11:12:56 -04:00
Asumu Takikawa
6368ffded4 Convert all uses of mzlib/class100 to racket/class
original commit: cfe1711494c83fac39485cc0433a63459d028596
2012-05-26 11:12:55 -04:00
Matthew Flatt
ae214a471e racket/gui win32: fix screen info to not assume main is first
Thanks to Kieron Hardy for tracking down the problem.

original commit: 5b80fd37c72a04ed06aa3da47e45f5d132a11a9c
2012-05-26 07:38:24 -06:00
Sam Tobin-Hochstadt
39ce6d8367 Add \bot as alias for \perp in DrRacket (both are supported in LaTeX).
original commit: 952af2fa2dc876adddc910bee8dfd63c31e04314
2012-05-21 15:55:07 -04:00
Matthew Flatt
8ff1044599 racket/gui cocoa: fix internal ObjC class names
"My" -> "Racket". The "My" prefix was from initial experiments,
of course, and I just never got around to changing it before.
I think these names go into a global namespace, though, at the
ObjC level, so they need to have a distinct and Racket-specific
prefix.

original commit: 3a9f8eea4fa9f44cc93526ce1ce208cd870a3a74
2012-05-16 09:43:23 -06:00
Matthew Flatt
557c7106d8 racket/gui cocoa: fix floating-window event handling
Closes PR 12754

original commit: b0409dd23271e2cab0c340250c66852ed14f0293
2012-05-16 08:00:50 -06:00
Matthew Flatt
d2c27b505b racket/gui cocoa: fix 'no-sheet style for `dialog%'
original commit: d5b17210e36db4da605773c9609e91a1aba801b9
2012-05-16 07:34:44 -06:00
Matthew Flatt
78821bc3b3 racket/gui cocoa: fix initial eventspace hook
original commit: 985eecbed743d3e47222b2b411d4ca9cf0c25410
2012-05-16 07:21:55 -06:00
Robby Findler
93404aaf3a fix interaction between the framework's first-line-mixin and
line-numbers mixin

Specifically, when both are turned on, the #lang line now shows
the line number and shifts the "#lang ..." over to the same spot
where it is drawn when the first line is natually visible

Also, rackety

original commit: dfa0305bb3234808334607758f6ddceb32767824
2012-05-15 22:08:42 -05:00
Matthew Flatt
eea4d30f1b doc fix
Closes PR 12772

original commit: e8d7b8696e246b059b560dac7173cd6840afa8dc
2012-05-15 20:13:12 -06:00
Matthew Flatt
b4689e86d2 implement scribble/srcdoc' via submodules instead of expand'
Also add a `for-doc' require form, make `proc-doc' et al. provide
forms, make `provide/doc' an alias for `provide'.

original commit: 964020f288a73340052b471327bfe873d804eea8
2012-05-12 01:37:50 -06:00
John Clements
3cb67f0788 doc clarification for make-argb
original commit: 0196a6f97a923fe571d0dd8eba8cdd8fe8dd8ebd
2012-05-08 12:02:02 -07:00
Eli Barzilay
2869673b26 A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
2012-05-06 12:06:00 -04:00
Matthew Flatt
1f6ad0387a racket/gui: fix problem with recent edit-sequence change
Restores undo support in DrRacket, for example.

original commit: 230463fa3d353a8c09943bb6520752f721334257
2012-05-05 22:09:13 -06:00
Matthew Flatt
1be19d56bd racket/draw: add #:eventspace' argument to open-output-text-editor'
The argument is `(curent-eventspace)' by default, which makes ports
work better with threads.

Closes PR 12749

original commit: b30374824a7d79b96443da6e0e4223dd72da597b
2012-05-05 10:32:05 -06:00
Matthew Flatt
f32ef95602 racket/gui: fix some concurrency problems `text%'
Changed `open-output-text-editor' to put its additions into
an edit sequence to better work with threads.

Fixed problems in editor-canvas refresh and resize events, where
the editor's refresh synchronization wasn't used properly.

Fixed race conditions in the the protocol that is used to separate
refreshes and edit sequences.

Related to PR 12749

original commit: 48f7ddafe4d3363635f775a0da0980065718d5a4
2012-05-05 10:32:05 -06:00
Matthew Flatt
674831a3fc 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.

original commit: 68e005fb2c14551be54beb5543928ac9b7b769ac
2012-05-01 21:04:40 -06:00
Asumu Takikawa
75c774a12e Add immutable constructors for color%, brush%, pen%
- Make set-immutable a local method and document
    is-immutable? as a public method
  - Add some racket/draw tests

original commit: 8db45eb55788d63383334c93694e8e26a2e1108c
2012-05-01 21:20:52 -04:00
Matthew Flatt
faba676526 racket/draw: pens and brushes from lists should be immutable
Closes PR 12732

original commit: 5e4b9e3acac071cc6fdd768070e7f899cda8eccb
2012-04-26 08:45:17 -06:00
Matthew Flatt
252425672e racket/gui: add a 'no-icon style for `message-box'
original commit: fc7f6bbe0fe7a6a3dd29fb42075d6e27a99367ee
2012-04-25 19:32:58 -06:00
Matthew Flatt
84f8fcf825 racket/gui win32: font fallback for labels
When the requested font isn't available, fall back to
the default font at the requested size and style

original commit: 9c025210aa01989109e8ac2e8ed95c35a432387e
2012-04-25 19:17:16 -06:00
Matthew Flatt
6995397432 racket/draw cocoa: adjust default 'script font
Also, adjust the way a font is converted for control labels to
strp away Pango descriptions.

original commit: 418a3cd83b2bde6fc839d4dd2dd9bcd8339a6e65
2012-04-25 19:17:16 -06:00
Robby Findler
750c18c835 fix bug in docs; closes PR 12716
original commit: 80d57148d114ff12f3f97ce0266274850500695b
2012-04-22 21:54:19 -05:00
Eli Barzilay
11e7a01f23 A bunch of scheme' -> racket' conversions.
I think that there are no user-visible changes from these changes.

original commit: 2b76d9e5b03ea97b8de155d2dda63e64256a3212
2012-04-19 16:02:03 -04:00
Robby Findler
d60426e9a6 the autosave file might be deleted by the user after it is created
the first time but before the file is actually saved. guard against that.

closes PR 12698

original commit: 35e818ae50eea159f10c996c3475198bc321c662
2012-04-13 10:04:25 -05:00
Matthew Flatt
253d308313 fix `record-dc%' test
Merge to 5.3

original commit: 7b322c151d553ec80919f08e99743e2272575364
2012-04-11 11:49:01 -06:00
Matthew Flatt
dfeb8956ed racket/draw, racket/gui: modernize contracts, mostly in documentation
Use `or/c' instead of `one-of/c', `#f' instead of `false/c'.

original commit: 2bdcdbb1970bc65625be295eac1f510b97d3df10
2012-04-06 18:51:10 -06:00
Robby Findler
4bee9aeb19 add splicing-syntax-parameterize to the default indentation prefs
original commit: a475c078e26dca8dcdb605fa1212125d4525c7ce
2012-04-05 17:34:45 -05:00
Matthew Flatt
8cff831246 racket/gui, win32: fix problem with modal dialogs
Although most events in other frames were blocked, it was
possible to bring other frames to the front and to select
menu items in other frames.

original commit: 9d563c786a71b621fcd2909c917b49939e0d11b0
2012-04-05 06:58:53 -06:00
Matthew Flatt
15cf494c3e racket/gui: fix reparent' with a pane%' target
original commit: 6afc9d5e8c354dbe444e6f8bf16c6a87c4bc7191
2012-04-03 18:36:28 -06:00
Matthew Flatt
2d667d8eac racket/gui: fix `slider%' range checking
Closes PR 12669

original commit: 3bf538923781dc132b9a30bc0eb49d43d20e8bb0
2012-04-02 15:25:47 -06:00
Asumu Takikawa
5793daf323 Fix docs for get-selected-text-color method.
original commit: 0f5f611f128bacdf991e89897386de191a1c93df
2012-03-31 00:43:43 -04:00
Asumu Takikawa
3364cd3fdd Fix requires to avoid circular dependencies.
original commit: d7fefc848bd734b2623014419052bb22819815fb
2012-03-30 23:34:34 -04:00
Robby Findler
6b7420df8f forgot the result contract
original commit: 8e35fd01a5d13219d2fc2adb955ed9dc24158bc7
2012-03-30 20:57:53 -05:00
Robby Findler
608168b0dc adjust DrRacket submodule-running options so the user
has more control over which ones get run

original commit: 4b57482298c51289c408aee0256b584b08357bf2
2012-03-30 16:42:34 -05:00
Robby Findler
878a7c1a12 add the #:validate argument to get-text-from-user
original commit: 92e874010587c1af3a95007d006b0c7d7aba1c21
2012-03-30 16:42:34 -05:00
Matthew Flatt
d4643b300a fix `record-dc%' problem with regions
Closes PR 12655

original commit: 4b36e708a352f92eda50b2dd108d569e2e391620
2012-03-28 06:26:58 -06:00
Robby Findler
2450c4ad0f be a bit more systematic with tabbing and magic square-bracket-ing for 'for's
also, add in for/sum and for/product

original commit: a1446a037b6dcf083a6e7edeefbc05b5e4a34cf2
2012-03-28 07:21:09 -05:00
Matthew Flatt
fc7b0420da racket/draw: add get-handle' to bitmap%'; add `make-handle-brush'
The `get-handle' method provides the underlying Cairo surface for
a bitmap, while the unsafe `make-handle-brush' function supports the
use of a Cairo surface as a `brush%'.

Also, add `racket/draw/unsafe/cairo-lib', which simplifies access
Cairo from external libraries. Documenting `racket/draw/unsafe/cairo'
might be better, but that's a lot more work.

original commit: 4f197f4ba944ee802e15fb3323f34a074e915db6
2012-03-27 18:14:26 -06:00
Robby Findler
46cd9ed627 added a test suite for DrRacket that checks to make sure the Dear Dr
starts up on all of the days that have easter eggs (well, except 7/2,
since that one is hard to interpose on and hasn't changed in a long
time)

original commit: 617df05ef7d43c04cfaf6978c52619e1865a4812
2012-03-26 15:43:56 -05:00
Robby Findler
eabea09e88 fix splash screen error handling code
original commit: b640b6b41c721bdbd70697e996dd8072a464da73
2012-03-26 15:43:55 -05:00
Robby Findler
018fd62d43 add a preference to control whether or not there is an extra
pixel of space in between lines in DrRacket.

This change is based on Matthew's experience having a look
at the font setup on the three platforms.

He writes:
>  * Mac OS X: the convention seems to be to add space between lines.
>   TextEdit, for example, looks like DrRacket: the maze has spaces.
>
>   (I can't find a font that makes the maze look right, actually, even
>   if I adjust the line spacing.)
>
>  * Windows: the convention seems to be that space is built into the
>   font. DrRacket (and SirMail) draw lines more sparsely than Notepad.
>
>   Perhaps consistent with the differing conventions, the height of
>   "Courier New" at 11-pixel size is 14 on Windows, 13 on Mac OS X.
>
>  * Unix: the convention seems to be to add space. DrRacket looks like
>   the default Terminal and Text Editor programs on Ubuntu.
>
>   The maze nevertheless looks right everywhere, because the glyphs
>   extend an extra pixel above the declared bounding box!

original commit: 0d6b82537776ad4bd850e3b7c5cc1bdaa209b865
2012-03-24 20:20:05 -05:00
Matthew Flatt
4d109759b7 more load[/use-compiled] handler fixes for submodules
Closes PR 12630

original commit: 415b1eabc4451285cffd0f2c5e37bfca3dc3312b
2012-03-13 14:31:40 -06:00
Matthew Flatt
cd76937049 try module+' in place of slice'
original commit: e01ebf6095682d9e8ac51d4ce8bf01bf14e9cfdc
2012-03-13 14:31:40 -06:00
Robby Findler
2da0f72492 small improvements to the memory usage for files opened in DrRacket.
Before this commit, opening collects/drracket/private/unit.rkt required
about 17.5 megabytes of memory and after this commit, it is down to
about 15 megabytes.

The precise measurement I did was to create a frame and a scheme:text%
object in it, record the result of current-memory-use, open the file,
and record current-memory-use again.

For comparison, using a text:standard-style-list% object instead of
the scheme:text% requires only about 4.1 megabytes. One difference
being that there are about 3x more snips (10,204 vs 33,901 (after the
commit)), since we have one snip for each region that has a different
color in the scheme:text version, and the text:standard-style-list has
no colors and thus about two per line (there are 5006 lines in the
file).

original commit: a7cb8fdc84f3b592c812468e5e7486d4f7d5bbb6
2012-03-10 20:18:49 -06:00