Commit Graph

16947 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
2431f8f706 Fix TR tests for new contract error messages. 2010-12-29 13:46:57 -05:00
Matthew Flatt
fb42102c62 further performance tweaks for `get-argb-pixels' 2010-12-29 09:44:16 -07:00
Robby Findler
03ff6f3abb noticed a few uses of unsafe primitives in some code that was causing trouble yesterday,
so I refactored it a bit to speed it up by adding a  few more unsafes and lifting
computations out of the main loop. It sped up the 'time' in the program below
by slightly less than a factor of 2.

(define w 200)
(define h 200)
(define bm (make-bitmap w h))
(define bdc (make-object bitmap-dc% bm))
(send bdc set-smoothing 'aligned)
(send bdc set-text-foreground (send the-color-database find-color "blue"))
(send bdc draw-text "ab" 0 0)
(define the-bytes (make-bytes (* w h 4)))
(time
 (let loop ([n 400])
    (unless (zero? n)
         (send bm get-argb-pixels 0 0 w h the-bytes)
	      (loop (- n 1)))))
2010-12-29 09:05:49 -06:00
Robby Findler
56b27975a4 added in missing solutions (Racket and the machines it runs on
got a lot faster in the last 12 or so years. who knew!)
2010-12-29 09:05:48 -06:00
Robby Findler
edbdada36c Rackety 2010-12-29 09:05:46 -06:00
Matthew Flatt
dcbf6c5590 clean up library dependencies in "unstable" collection 2010-12-29 07:49:02 -07:00
Matthew Flatt
ffd4193e32 fix frame registration on show' when current-eventspace' is weird
(i.e., not the frame's eventspace)
 Closes PR 11573
2010-12-29 07:45:49 -07:00
Matthew Flatt
c916e99af5 reduce some memory use of `unstable' doc build
by explicitly closing evaluators
2010-12-28 20:55:32 -07:00
Matthew Flatt
80e5c6cec3 clean up 2010-12-28 20:15:30 -07:00
Matthew Flatt
dc926925aa retain eventspaces weakly 2010-12-28 20:06:57 -07:00
Matthew Flatt
0476ab4fc4 guard against bad pre-mult ARGB
Closes PR 11572
2010-12-28 20:03:56 -07:00
Robby Findler
1d89cfc9d7 2htdp/image fix bitmap scaling to respect alpha channels 2010-12-28 19:08:11 -06:00
Matthew Flatt
3b032893c1 don't JIT-inline `values' in a single-value position 2010-12-28 17:47:03 -07:00
Robby Findler
5eec85a5a2 change the way scrolling works so that canvases that are 'primary-owner's are respected when calling scroll-to on an admin
This change may also affect other attempts to scroll, however, so watch for strange scrollings when multiple editor-canvaess are displaying the same text% object.
  closes PR 10853
2010-12-28 16:37:13 -06:00
Robby Findler
ae2d7c47b6 added missing call-as-primary-owner
related to PR 10853
2010-12-28 16:37:11 -06:00
Matthew Flatt
5ea0c93e0f gtk: combo-field% fixes
Closes PR 11569
2010-12-28 14:58:22 -07:00
Matthew Flatt
36e9e6fa20 fix locks on some racket/draw tables to work right in atomic mode 2010-12-28 12:12:53 -07:00
Matthew Flatt
8ac21c745f add show-without-yield' to dialog%' 2010-12-28 10:52:17 -07:00
Matthew Flatt
5339be7594 make language test work with cgc 2010-12-28 10:52:17 -07:00
Matthew Flatt
2e8f771661 adjust password dots again 2010-12-28 10:52:17 -07:00
Robby Findler
4e40efaf37 framework: sometimes put the text completion menu above the line instead of below it
closes PR 10829
2010-12-28 07:33:26 -06:00
Robby Findler
f849f25272 Rackety 2010-12-28 07:33:24 -06:00
Matthew Flatt
b701d309f1 win32: fix EndPaint to avoid GDI leak 2010-12-28 06:21:58 -07:00
Matthew Flatt
7b5d948d33 win32: fix `focus' return value 2010-12-28 05:30:58 -07:00
Matthew Flatt
68e477fd52 implement get-focus-window' and get-edit-target-window' in back end to avoid relying on `on-focus' callback handling 2010-12-28 05:25:26 -07:00
Robby Findler
54c337e5d3 2htdp/image: use erase instead of clear to zero out a bitmap 2010-12-27 21:51:16 -06:00
Robby Findler
835f7753dc generalize the color structs to have an alpha field and then use that in the bitmap conversion functions 2010-12-27 21:51:14 -06:00
Matthew Flatt
0b1f1a4f4e add missing test case for premultiply-alpha fix 2010-12-27 19:34:59 -07:00
Matthew Flatt
5440edfd74 `set-argb-pixels' needs to pre-multiply alpha for a alpha-channel bitmap
Closes PR 11571
2010-12-27 19:14:22 -07:00
Matthew Flatt
719df98d83 prevent dc<%> state contamination among transparent canvases 2010-12-27 17:43:36 -07:00
Matthew Flatt
4d008e3021 fix for pre-v2.0 Objective-C 2010-12-27 16:12:36 -07:00
Matthew Flatt
705b11f2b8 a prompt-test fix like the previous one, but for post thunks 2010-12-27 15:24:33 -07:00
Matthew Flatt
958c141508 improve password-mode dots for text-field% 2010-12-27 15:22:53 -07:00
Kevin Tew
aa42f4a582 Fixed Warning output in parallel scribble build 2010-12-27 14:30:10 -07:00
Robby Findler
6fe8643194 adjust teaching languages so that print works properly 2010-12-27 09:16:09 -06:00
Robby Findler
413c0489f2 adjust arity to the global-port-print-handler so that its name is meaningful 2010-12-27 09:16:07 -06:00
Robby Findler
5828906585 tweak contact error message formatting 2010-12-27 09:16:06 -06:00
Matthew Flatt
0d3fbb11fa supress a prompt test that doesn't apply to composable continuations 2010-12-26 16:21:28 -06:00
Matthew Flatt
0ef5a01c9b win32: minor repair to single-instance check 2010-12-26 09:35:22 -07:00
Robby Findler
064492d4b8 improved the docs and the contracts for various planet/util functions
closes PR 11079
2010-12-26 08:42:38 -06:00
Mike Sperber
d5c58d9f82 Extends =~ to complex numbers
This is a (variation of a) fix from David van Horn.

Closes PR 11547.
2010-12-26 09:03:10 +01:00
Robby Findler
7282e19178 tightened up the check on polygon to make sure the posns contain reals
closes PR 10997
2010-12-25 20:33:33 -06:00
Robby Findler
c926656b8a save the 'preserve stacktrace' setting the language preference
closes PR 11037
2010-12-25 20:07:34 -06:00
Matthew Flatt
e77917db8c fix another continuation bug discovered by Casey's random testing 2010-12-25 17:12:33 -06:00
Robby Findler
0a3c70db91 added note committing teaching language metadata to always being three lines 2010-12-25 15:52:46 -06:00
Robby Findler
dd531dde9e check syntax does not call eval-compile-time-part-of-top-level when
checking programs in the module language.
closes PR 10908
2010-12-25 15:38:08 -06:00
Matthew Flatt
e7b52bf10f fix ffi handling of non-GCable pointers with offsets
Closes PR 11567
2010-12-25 09:34:07 -06:00
Robby Findler
8bb2543b34 bring this code in the modern world
(I think the use of bitmaps is the right one here, but this code doesn't actually work, pending PR 11566)
2010-12-25 07:48:25 -06:00
Matthew Flatt
735c4e660c fix check on snip% `other-equal-to?' 2010-12-24 20:09:17 -06:00
Matthew Flatt
a3adf07fd2 clean up pre-drawing of canvases for a frame to show 2010-12-24 20:09:16 -06:00
Robby Findler
9c12f7aaa5 fix dumb edito I did last week or so 2010-12-24 19:12:55 -06:00
Matthew Flatt
bb96973c4a cocoa: don't disable flushes on a window that isn't shown
because that doesn't seem to work
 Closes PR 11565
2010-12-24 18:22:59 -06:00
Matthew Flatt
21ca120c8c cocoa: fix problems with no-frame root menu
on-demand callback and original installation
2010-12-24 17:48:13 -06:00
Robby Findler
173172ddeb the specification of the runtime paths for windows libraries
wasn't collaborating properly with executable creation;
the fix I did was to simplify it a little bit (and duplicate
a little bit of code between the win32 and win64 versions)
closes PR 11483
2010-12-24 15:59:05 -06:00
Robby Findler
8903de5a12 inserted a coercion string->path
(there is one on the line above so this is probably the right thing)
closes PR 11563
2010-12-24 15:58:21 -06:00
Robby Findler
da68fc209a fix contract 2010-12-24 15:58:18 -06:00
Robby Findler
a68850ca78 added menu shortcut 2010-12-24 15:38:05 -06:00
Robby Findler
519eb580b2 typo 2010-12-24 13:36:31 -06:00
Robby Findler
7ac268e4da Rackety 2010-12-24 06:34:45 -06:00
Robby Findler
e896360dcf take advantage of new equal<%> and snip% setup to make image-snip%s equal to 2htdp/image images (when appropriate) 2010-12-24 06:34:43 -06:00
Robby Findler
2f009ca529 changed the way equal<%> and snip% interact. Specifically:
- snip% now implements equal<%>
   its equal-to? delegates to other-equal-to?.

 - snip%'s other-equal-to and equal-hash-code and
   equal-secondary-hash-code all just amount to using eq?. The
   setup is here just to make snip% be the one that declares
   that it implements equal<%> so that various snips can adjust
   other-equal-to? (and the hash code methods)

 - image-snip% no longer implements equal<%>
   (but it extends snip% and it overrides other-equal-to?
    and the hash-code methods to do what they always did)
2010-12-24 06:34:42 -06:00
Matthew Flatt
e5175c5b38 fix bug that affects the DrRacket language dialog
when switching to he choose-a-language radio button
 when the selected language is under a closed section
2010-12-23 07:15:36 -06:00
Matthew Flatt
93b2046b75 fix doc typo 2010-12-22 21:00:08 -06:00
Matthew Flatt
94e6d8f399 gtk: clipboard fix
Closes PR 11552
2010-12-22 19:40:37 -07:00
Matthew Flatt
4a6af2a81e another try-atomic repair 2010-12-22 19:09:21 -07:00
Robby Findler
bb9bd1b07a new attempt at contract violation error messages 2010-12-22 10:39:59 -06:00
Matthias Felleisen
e2e27522fb inconsistent doc for stop-with 2010-12-22 08:47:13 -05:00
Matthias Felleisen
da7567b7a8 wish list for 2htdp/*sl 2010-12-22 08:47:13 -05:00
Matthias Felleisen
d4dd5f13e1 idea collection for 2htdp/*sl 2010-12-22 08:47:13 -05:00
Matthew Flatt
3d10915736 fix font size for lang-in-source explanation 2010-12-21 19:28:40 -07:00
Matthew Flatt
78b2e47541 fix more try-atomic problems 2010-12-21 18:45:36 -07:00
Robby Findler
eb29b17112 adds a #:pred argument to test-->> (in rough analogy to the #:pred argument on traces) 2010-12-20 22:09:10 -06:00
Robby Findler
4c796a6445 added a 'fast path' check that speeds up the coloring phrase of check syntax by 3x on drracket/private/rep.rkt under windows
(thank you Eli's profiler!)
2010-12-20 12:22:46 -06:00
Matthew Flatt
43b96fe47c adjust racket/snip docs 2010-12-20 08:04:11 -07:00
Robby Findler
bf53fd5c38 adjust the auto-text behavior of DrRacket so that it doesn't require the
queue-callback / execute callback dance; also, change the behavior
  a little bit so that it works a little bit more like the rest of the
  DrRacket languages; in particular, the initialization of the REPL
  now only happens when a window is first opened or a new tab is first
  created, but not at other times (ie not when the language changes;
  when the language changes, we just keep the REPL state the same and
  show a warning like before)

This change also required a change to the way the repl is initialized
and a slight change to the behavior of the first-opened method. Specifically,
it is now called in a slightly better context so that errors that
happen look like errors in the user's program. The only other use of
the first-opened method in the tree was to initialize the teachpacks
in the teaching languages and this new behavior is also an improvement
there.
2010-12-20 08:43:34 -06:00
Robby Findler
ba11a02c1d adjust drracket to use setup/dir's find-collects-path instead of the broken, halfway thing is was doing 2010-12-20 08:43:31 -06:00
Robby Findler
53509bef5f made module lang tests Windows friendly & Rackety 2010-12-20 08:43:28 -06:00
Robby Findler
dfe6e37ffd removed mention of PLTDRTEST (it was already gone from the implementation) 2010-12-20 08:43:26 -06:00
Robby Findler
7a945785f3 fix (my own) docs stupidity 2010-12-20 08:43:22 -06:00
Matthew Flatt
b6167c23d5 fix R5RS `caar', etc., when used in a non-application position
Closes PR 11558
2010-12-20 07:25:19 -07:00
Sam Tobin-Hochstadt
abf2215de7 Fix send to the wrong administrator.
Bug found by tests/gracket/wxme-random.
2010-12-19 22:56:15 -05:00
Sam Tobin-Hochstadt
491eeaa759 Move mred/private/wxme/style to racket/snip/private/style.
`racket/snip' now exports the style classes and the add,mult-color interfaces.
2010-12-19 22:56:15 -05:00
Matthew Flatt
975c2400a1 cocoa: fix interaction of combo-field% popup and canvas refresh
and also reduce work on redundant show/hide of canvas
 Closes PR 11557
2010-12-19 18:58:27 -07:00
Matthew Flatt
dd8215d0dd fix `read-bitmap' to accept an input port
Closes PR 11555
2010-12-19 06:25:45 -07:00
Mike Sperber
3518e027fb Synch German string constants with latest. 2010-12-19 11:56:28 +01:00
Mike Sperber
bb09ae8a02 Unbreak detection of missing string constants.
The call to sort requires keywords, so convert everything to
2010-12-19 11:55:55 +01:00
Mike Sperber
79600e15a6 Merge remote branch 'origin' 2010-12-19 11:21:41 +01:00
Mike Sperber
fa854f62fc Add vector signatures, and `vector-of' to the HtDP signature syntax. 2010-12-19 11:20:51 +01:00
Matthew Flatt
c259d0839a make editor caret adapt to background color 2010-12-18 07:22:40 -07:00
Sam Tobin-Hochstadt
70955d5540 Split mred/private/wxme/private into two files. 2010-12-18 00:10:26 -05:00
Sam Tobin-Hochstadt
cf3aec6b95 Move load-one to racket/snip.
Create private directory for racket/snip.
Remove snip dependence on events.
2010-12-18 00:10:26 -05:00
Sam Tobin-Hochstadt
e9e45fdc2c Fix test require. 2010-12-18 00:10:25 -05:00
Matthew Flatt
b07f57fc73 fix problems with canvas refresh, especially win32 2010-12-17 14:43:14 -07:00
Robby Findler
2dc15061a8 adjust Sam's edit so the file is now properly indented 2010-12-17 13:53:03 -06:00
Robby Findler
4917d2af4a added freeze to 2htdp/image 2010-12-17 13:51:10 -06:00
Ryan Culpepper
5a10ca8fb1 macro-stepper: fix props panel size memory, better width calculation
see PR 11551
2010-12-17 12:03:54 -07:00
Matthew Flatt
0c4d2e332c fix transparent-canvas detection 2010-12-17 10:46:06 -07:00
Sam Tobin-Hochstadt
24ea7d34fc Fix use of 'fn-name in 2htdp/image error messages. 2010-12-17 12:37:32 -05:00
Sam Tobin-Hochstadt
4e85687d96 Ignore test-generated files 2010-12-17 12:32:28 -05:00
Sam Tobin-Hochstadt
f4571cb39a Reorganize editor and snip documentation to break out `racket/snip' 2010-12-17 12:32:27 -05:00
Sam Tobin-Hochstadt
f7559b8269 Move readable-snip<%>' to racket/snip'
Reprovide `racket/snip' rather than propagating it in `mred/mred'
2010-12-17 12:32:27 -05:00
Sam Tobin-Hochstadt
de63b79300 Document new methods of `snip-admin%'. 2010-12-17 12:32:27 -05:00
Sam Tobin-Hochstadt
fb76a887d8 Refactor to create `racket/snip' collection. 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
bb7307883a Fix doc typo. 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
8a8a8dbe4b Separate snip% from the gui 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
398add4e29 Move symbol predicates to their own file. 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
13cae20838 Fixes for PNG conversion, and make `image-snip%' convertible. 2010-12-17 12:32:25 -05:00
Sam Tobin-Hochstadt
d92ce41a6f Make 2htdp/image produce png-convertible results. 2010-12-17 12:32:25 -05:00
Matthew Flatt
fc4165ec40 win32: fix transparent-canvas support 2010-12-17 09:33:11 -07:00
Matthew Flatt
f700a15d85 specially record transparent-canvas drawing for a small number of drawing ops
which enables background-sensitive smoothing of text
2010-12-17 09:27:10 -07:00
Robby Findler
d1fe276655 adjust the bug report form so that hitting return does not submit the bug report
as mentioned in PR 11551
2010-12-17 10:02:48 -06:00
Robby Findler
6ee34f1e88 generalize gui-utils:ok/cancel-buttons so that the ok button doesn't have to have the '(border) style 2010-12-17 10:02:46 -06:00
Robby Findler
2a3c7598ab put a special title in the menu when a saved bug report has no title 2010-12-17 10:02:43 -06:00
Robby Findler
4d04aa2b97 generalize define/chk to work with case-lambda-style functions 2010-12-17 10:02:40 -06:00
Robby Findler
e0b425e5d8 change more cross-collection requires 2010-12-17 10:02:38 -06:00
Robby Findler
52092eeb80 remove sillyness 2010-12-17 10:02:35 -06:00
Matthew Flatt
8681e73278 set `dc-for-text-size' default to a bitmap DC (instead of #f) 2010-12-17 07:16:54 -07:00
Matthew Flatt
4e0069d6d8 turn off font-metric hinting in all drawing contexts
which makes font-metric results consistent across DC types
2010-12-17 07:04:21 -07:00
Matthew Flatt
4195cf3297 more fixes for weird draw-bitmap mask and mode combinations 2010-12-17 05:51:23 -07:00
Matthew Flatt
98f6415c59 another fix to drawing a color bitmap to a monochrome target 2010-12-17 05:29:50 -07:00
Matthew Flatt
d2fb0b8f7d further `draw-bitmap' doc improvements 2010-12-16 21:20:13 -07:00
Matthew Flatt
8a10c3d3db fix use of color bitmap as mask when drawing after previous use 2010-12-16 21:02:11 -07:00
Matthew Flatt
6f114b318b correct draw-bitmap docs 2010-12-16 20:41:54 -07:00
Matthew Flatt
37682242e5 docs: clarify effect of mask-bitmap alphas channel in dc<%> draw-bitmap 2010-12-16 19:36:13 -07:00
Matthew Flatt
f8ec47cdeb test for draw-bitmap repairs 2010-12-16 19:36:13 -07:00
Matthew Flatt
2ce5c63ea8 fix alpha-channel result of draw-bitmap to monochrome bitmap 2010-12-16 19:36:13 -07:00
Matthew Flatt
2cb52ed8ef fix draw-bitmap-section with mask bitmap
when the section is smaller than the mask
2010-12-16 19:36:13 -07:00
Robby Findler
ede60de584 Make it so that DrRacket deletes .zo files when the corresponding source file isn't present anymore
(when in the DrRAcket-compiles-my-zo-files mode)
2010-12-16 16:12:54 -06:00
Robby Findler
5e51b7f335 add a menu item to the check syntax context-sensitive help that offers to search in help desk (just like the menu item that is there when check syntax is not running)
closes PR 11357
2010-12-16 16:12:51 -06:00
Matthew Flatt
54d36dc22a don't popup disable combo-field% 2010-12-16 13:43:22 -07:00
Matthew Flatt
01b9c1600e avoid allocating a new font map, since freeing it seems to create problems 2010-12-16 12:21:25 -07:00
Matthew Flatt
7fa0ae3ea6 fix typo 2010-12-16 12:20:39 -07:00
Matthew Flatt
7571579ce5 win32: combo-field% on-popup 2010-12-16 10:48:29 -07:00
Matthew Flatt
c9e778c541 cocoa and gtk: make combo-field% `on-popup' work better 2010-12-16 10:48:28 -07:00
Matthew Flatt
d518084f88 cocoa: fix message% 'app icon 2010-12-16 10:48:26 -07:00
Ryan Culpepper
9f3ac86488 macro-stepper: avoid too-long labels in hiding policy display 2010-12-15 19:16:52 -07:00
Ryan Culpepper
af7f60f3b5 macro-stepper: smooth rounded rectangles
Closes PR 11489
2010-12-15 19:15:38 -07:00
Ryan Culpepper
c640814917 fixed typo (wrong arg blamed in error) 2010-12-15 19:15:38 -07:00
Matthew Flatt
234a57506f document some modules that are referenced in other documentation 2010-12-15 13:41:59 -07:00
Matthew Flatt
489c5de9e8 another module-body duplication 2010-12-15 12:28:09 -07:00
Matthew Flatt
31906d6261 route glib logging to Racket logging 2010-12-15 12:25:45 -07:00
Mike Sperber
3f74e662ed Add tool.rkt needed for "Disable Signature Check".
I'd screwed up previously.
2010-12-15 08:17:57 +01:00
Matthew Flatt
cad500d802 fix problems with image-snip%, masks or alpha channels, and saving
and also generalize image-snip% to accept input port instead
 of filenames, and avoid temporary files for loading and saving images
2010-12-14 21:11:10 -07:00
Robby Findler
0542d3ca70 added support for saving bug reports (for ease of offline submission)
also cleaned up a bunch of little things in the bug report implementation:
 - the abort had race conditions
 - formatted the collections a little bit better (hopefully)
 - broke the implementation up into multiple files
 - fixed broken interaction with drracket (the drracket frame mixin is now being used properly)
2010-12-14 19:14:33 -06:00
Robby Findler
80f573cc0e multi-file search bugfix
(it now correctly restores the regexp vs string match preference)
2010-12-14 19:14:29 -06:00
Robby Findler
4881bc33f4 open-input-text-editor: beef up the protection that the lock-while-reading? argument provides 2010-12-14 19:14:26 -06:00
Robby Findler
5adaedae8e added oprintf 2010-12-14 19:14:22 -06:00
Matthew Flatt
3622a68449 fix dc<%> `clear' method to draw white on non-alpha context 2010-12-14 16:31:48 -07:00
Matthew Flatt
de271aa698 temporary workaround for missing(?) tool module 2010-12-14 14:53:47 -07:00
Matthew Flatt
fc9d1694f6 drop recorded dc drawing actions on `erase' 2010-12-14 14:53:30 -07:00