Asumu Takikawa
0e4f9fcd97
racket/gui: fixed by-position widget initialization
...
This was broken in the class100 port. The init arguments
previously handled by the class100*/kw macro need to be
explicitly passed down.
Also, an (init-rest) is needed at the leaves of the class
hierarchy to ensure that internal super init args don't
leak via error messages. (the class100 macro always
inserts these)
Added a test file so similar breakage is detectable in the
future.
2012-06-19 12:37:35 -04:00
Eli Barzilay
2c19677358
Make some .rktl tests run with "racket".
...
With this commit, all of the leftover mentions of gracket in
`drdr:command-line' are things that pop up windows.
2012-06-19 03:18:23 -04:00
Asumu Takikawa
cfe1711494
Convert all uses of mzlib/class100 to racket/class
2012-05-26 11:12:55 -04:00
Asumu Takikawa
6341fe7e01
Remove gracket test that does not run.
...
The file is written in mzscheme or pre-mzscheme and
tries to load files that no longer exist.
2012-05-26 11:12:55 -04: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
Matthew Flatt
5e4b9e3aca
racket/draw: pens and brushes from lists should be immutable
...
Closes PR 12732
2012-04-26 08:45:17 -06:00
Matthew Flatt
7b322c151d
fix `record-dc%' test
...
Merge to 5.3
2012-04-11 11:49:01 -06:00
Matthew Flatt
6afc9d5e8c
racket/gui: fix reparent' with a
pane%' target
2012-04-03 18:36:28 -06:00
Matthew Flatt
3bf5389237
racket/gui: fix `slider%' range checking
...
Closes PR 12669
2012-04-02 15:25:47 -06:00
Matthew Flatt
4b36e708a3
fix `record-dc%' problem with regions
...
Closes PR 12655
2012-03-28 06:26:58 -06:00
Matthew Flatt
4f197f4ba9
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.
2012-03-27 18:14:26 -06:00
Matthew Flatt
415b1eabc4
more load[/use-compiled] handler fixes for submodules
...
Closes PR 12630
2012-03-13 14:31:40 -06:00
Eli Barzilay
43ef402274
Don't compile test files.
...
(Didn't touch the tiny "test-docs-complete" tests.)
2012-03-13 10:29:13 -04:00
Matthew Flatt
f79e2b4ee0
fix problems with `record-dc%' and composition
...
Recorded clipping, transformations, and alpha didn't compose with
the target DC's existing clipping, transformations, and alpha.
2012-02-26 22:13:01 -05:00
Matthew Flatt
645ca02e92
racket/draw: add `record-dc%'
2012-02-25 20:57:56 +00:00
Matthew Flatt
530b353798
racket/draw: change font face name interpretation again
...
Treat a "face" as a font description only if it has a comma,
otherwise go back to treating it as a family name.
This change fixes the problem of parsing "Times New Roman"
as "Times New, Roman".
2012-02-17 11:25:15 -07:00
Matthew Flatt
08303d9db8
fix test to not write to stderr
2012-02-14 14:27:40 -07:00
Matthew Flatt
967372c23d
make an eventspace thread survive a break exception
...
When an eventspace is created, its thread implicitly calls
`yield'. It now effectively loops with `yield' and while
catching continuation aborts.
Closes PR 12566
2012-02-13 16:28:10 -07:00
Matthew Flatt
573ce9492a
add test for bad missing-glyph handling
2012-02-13 16:27:51 -07:00
Matthew Flatt
7b4fd9b275
make draw-mem test more reliable
2012-01-09 16:08:28 -07:00
Matthew Flatt
fd019a3478
add on-subwindow-focus' to
window<%>'
...
relevant to PR 12474
2012-01-07 21:17:12 -07:00
Matthew Flatt
3a1df23be6
fix `text-outline' test to include a curve
2011-12-26 06:27:22 -06:00
Matthew Flatt
1c63784517
for record-dc%', record initial configuration after each
erase'
...
Closes PR 12460
2011-12-25 19:26:39 -06:00
Matthew Flatt
6c5c170565
racket/draw: add text-outline' to
dc-path%'
2011-12-25 18:20:39 -06:00
Matthew Flatt
5bfaea25fe
fix draw-polygon' on pairs instead of
point%'s
...
Closes PR 12455
2011-12-23 07:25:59 -06:00
Matthew Flatt
4fed17704a
avoid `racket/gui' tests that can't work on X
2011-12-18 07:27:32 -07:00
Matthew Flatt
745c4b6470
fix another way that `racket/gui' instances can leak
2011-12-02 15:48:29 -07:00
Matthew Flatt
75dd61ebc3
fix leak in `racket/draw' instantiation
2011-11-11 16:32:16 -07:00
Matthew Flatt
6d608e392c
add missing test for text% tab fix
...
Merge to 5.2
2011-10-13 06:03:10 -06:00
Matthew Flatt
379991c5bb
fix text% `get-paragraph-{start,end}-position' bug and doc bugs
...
Merge to 5.2
2011-10-08 09:12:30 -06:00
Eli Barzilay
e788903d0e
Remove a bunch of no-longer-needed `compile-omit-paths', and move the
...
few ones into the subcollections.
2011-08-29 16:33:12 -04:00
Matthew Flatt
71b500b49f
speed up mult/unmult in `{get,set}-argb-pixels'
...
Also add test cases to check consistency of the results.
2011-08-26 09:13:28 -06:00
Matthew Flatt
b0245395b7
add a test for undo-clickback repair
2011-08-26 06:07:57 -06:00
Matthew Flatt
32da8e2b1f
fix same-scaled test
2011-08-19 13:15:36 -06:00
Matthew Flatt
ff49859c80
git: fix "&" and "_" handling in labels
2011-07-06 09:54:57 -06:00
Matthew Flatt
de54efc84e
cocoa: fix "&" handling in menu-item labels
...
Closes PR 12025
2011-07-06 09:54:41 -06:00
Guillaume Marceau
6eea5b1793
The new error messages now pass the tests/language-test.rkt suite
...
(except for contract runtime error messages in levels higher than
beginner.)
2011-07-06 00:19:26 -04:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -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
b6445880e2
add pre-multiplied mode for `{get,set}-argb-pixels'
2011-05-18 16:01:33 -07:00
Matthew Flatt
905eb11651
fix alpha-only mode of `get-argb-pixels'
...
Closes PR 11927
2011-05-17 16:00:36 -07:00
Matthew Flatt
5386206667
fix 'solid vs. 'opaque for mono on mono Closes PR 11839
2011-04-14 15:38:38 -06:00
Matthew Flatt
0fda70b7ca
fix region% problems
...
- fail gracefully with pre 1.4 Cairo
- clip all drawing for an empty clipping region
- disallow `is-empty?' on a region without a DC
(since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
6e1f35a319
fix WXME stream write-bytes' and
write' method results
2011-03-27 16:30:44 -06:00
Robby Findler
4021f55c61
fixed up broken tests
2011-03-27 16:13:44 -05:00
Robby Findler
288caacdfd
added get-extend-start-position and get-extend-end-position
...
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
Matthew Flatt
6a79ebdc97
adjust racket/gui test to cover no-border tab-panel%
2011-03-15 12:44:11 -06:00
Matthew Flatt
a2d968a5d2
fix `init-manual-scrollbars'
...
Closes PR 11781
2011-03-15 12:41:59 -06:00
Matthew Flatt
2b3827504b
make test suite hit tab panels more
2011-03-11 02:50:05 -06:00