Commit Graph

112 Commits

Author SHA1 Message Date
Matthew Flatt
f1ea63c87d racket/gui/dynamic: make gui-dynamic-require' pull from racket/gui/base'
It was pulling from `scheme/gui/base', instead. The one from `scheme/gui/base'
is now different and still pulls from `scheme/gui/base'.

This could break some programs that accidentally depended on `scheme/gui/base'
exports from `gui-dynamic-require', but it's more likely to fix problems.

original commit: 702df4b07add593618713500e7236b5bd75067b3
2012-11-19 08:13:48 -07:00
Matthew Flatt
a4e38f71d5 scheme/gui/base: fix module-attach problem in `make-gui-base-namespace'
The `scheme/base' module had become unreachable from the `mred' module.
While that normally would be a good thing, it lead to troublesome
multiple instantiations of `scheme/base' that caused problems for
attaching further modules to the namespace.

original commit: d90fbaeff469b7accd3cc408e1bbda664a25670b
2012-11-19 07:56:48 -07:00
Matthew Flatt
60d67d2552 racket/gui: add `get-current-mouse-state'
original commit: 7b04571facdafe778bfb05f9c54d7da6d467b05d
2012-11-07 14:37:39 -07:00
Eli Barzilay
5b1e17cc7c 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>".

original commit: 672910f27b856549ad08d38832b6714edf226c8e
2012-11-07 11:22:20 -05:00
Matthew Flatt
94dea09048 racket/gui: add delete' to choice%' and `list-control<%>'
Closes PR 13230

original commit: 0c82f54912a2a2d3e087ab8c8a533b42008d6080
2012-11-04 08:25:43 -07:00
Robby Findler
16d9b00f05 lift the restriction that the port passed to open-input-text-editor
cannot change its revision number during reading

This restriction was enforced only for editors that have non
string-snip% snips. The restriction was in place because the
implementation strategy was to chain thru the snips in the editor
using (send snip next) and that isn't safe if the revision number
changes.

The lifting of the restriction is implemented by tracking the position
in the editor where the last snip ended and, if the revision number
changes, starting over trying to get a snip from that position. This
has the effect that, if the revision number never changes, the code
should behave the same as it was doing before (so hopefully any new
bugs I've introduced in this commit will only show up if the old
implementation would have raised an error)

Also, exploit the lifting of this restriction in the colorer so it
doesn't to restart the port during to coloring that happens along with
the parsing

original commit: 95841b9303a753c5b85a929dbfe6167b12407343
2012-11-02 10:24:34 -05:00
Matthew Flatt
06e7b26962 racket/draw: fix problems with monochrome PNGs
Merge to v5.3.1

original commit: 274d0045464b80116fa83faef4cc21e87f651a7c
2012-10-18 10:01:20 -06:00
Matthew Flatt
4bf6588d14 racket/draw: fix return value of load-file' from bitmap%'
original commit: 64bac4e573c9677b69958e331ee170881bb201a2
2012-10-01 18:14:19 -06:00
Matthew Flatt
ab6afa4e96 racket/draw: fix set-clipping-rect' in record-dc%'
original commit: edd2035f88b571afc9ed85ba0f7c6167332fb5b3
2012-08-23 09:42:34 -06:00
Matthew Flatt
0e2b88e51a racket/gui: fix access of scrollbar values for canvas without a scrollbar
original commit: 1800680c6ba0dec0f8b2f7d0495c615906b27b47
2012-08-12 20:17:29 -06:00
Matthew Flatt
ca4c89c03f test case to finish repair for `racket/gui/init' load handler
Test case for b111241afe.

original commit: d44aa13c150fa9ee43c09780c5aa5061e6e855a7
2012-07-19 07:46:50 -05:00
Matthew Flatt
b451377d1e allow test to run if GL is unavailable
original commit: 55a8445b0b8be38b9fd11ead6037aee6a6d17a7d
2012-07-15 10:36:36 -06:00
Matthew Flatt
cdadc33430 racket/draw: fix gl-context<%> locking
The optional arguments for `call-as-current' for `gl-context<%>'
were not implemented, and the locking implementation didn't match
the documentation in other ways.

original commit: f729c6441c5a4ef46e2df6fd1bd29fd6f26aaa94
2012-07-13 07:45:21 -06:00
Matthew Flatt
529b9bb046 fix support code for some tests
original commit: ffe39c597411d49ce3d24560c221efc7699c3e8b
2012-07-10 11:42:42 -06:00
Eli Barzilay
713f91d0e4 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.

original commit: 2c19677358f2e36134927655a6f2df8a90ab4432
2012-06-19 03:18:23 -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
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
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
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
253d308313 fix `record-dc%' test
Merge to 5.3

original commit: 7b322c151d553ec80919f08e99743e2272575364
2012-04-11 11:49:01 -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
Matthew Flatt
d4643b300a fix `record-dc%' problem with regions
Closes PR 12655

original commit: 4b36e708a352f92eda50b2dd108d569e2e391620
2012-03-28 06:26:58 -06: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
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
286e0527e7 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.

original commit: f79e2b4ee0bbe6a7302f658e78155b11d9dd7db8
2012-02-26 22:13:01 -05:00
Matthew Flatt
9f45143c24 racket/draw: add `record-dc%'
original commit: 645ca02e927e2ef0bc9857bc3fa6cb3725bcdca8
2012-02-25 20:57:56 +00:00
Matthew Flatt
6e8c3e072b 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".

original commit: 530b35379830819f7de46c80dc9f9691a17fcc7b
2012-02-17 11:25:15 -07:00
Matthew Flatt
669232d35a fix test to not write to stderr
original commit: 08303d9db827a037db98df57833766cd073116db
2012-02-14 14:27:40 -07:00
Matthew Flatt
bc8232d8c2 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

original commit: 967372c23d9b68d011993435cc91e99e26616c20
2012-02-13 16:28:10 -07:00
Matthew Flatt
05101401af add test for bad missing-glyph handling
original commit: 573ce9492a254c67280168bc341ec733ccb1c1b4
2012-02-13 16:27:51 -07:00
Matthew Flatt
b7b8aff107 make draw-mem test more reliable
original commit: 7b4fd9b2758ab623ce278a62a62c4f7ab8107eb8
2012-01-09 16:08:28 -07:00
Matthew Flatt
d80906a5c7 add on-subwindow-focus' to window<%>'
relevant to PR 12474

original commit: fd019a34787805021f9924bb7c9253966bf58f8e
2012-01-07 21:17:12 -07:00
Matthew Flatt
72bbc5bc82 fix `text-outline' test to include a curve
original commit: 3a1df23be6c5da4f12a285a5358c4e732e8349b5
2011-12-26 06:27:22 -06:00
Matthew Flatt
9b42ce66e6 for record-dc%', record initial configuration after each erase'
Closes PR 12460

original commit: 1c6378451798d2e230d841d0f8d3afc9b4c078d3
2011-12-25 19:26:39 -06:00
Matthew Flatt
521f398b64 racket/draw: add text-outline' to dc-path%'
original commit: 6c5c17056517da0b85506872299500e600a39cea
2011-12-25 18:20:39 -06:00
Matthew Flatt
0c98aca4c3 fix draw-polygon' on pairs instead of point%'s
Closes PR 12455

original commit: 5bfaea25febcc8d50a75861c692aecfc3cb49876
2011-12-23 07:25:59 -06:00
Matthew Flatt
bf91136639 avoid `racket/gui' tests that can't work on X
original commit: 4fed17704a823fd5a66f8c2b5fe405631d2d452f
2011-12-18 07:27:32 -07:00
Matthew Flatt
3d08118a1d fix another way that `racket/gui' instances can leak
original commit: 745c4b64703cf5fb47e44781b1aac6af41e04fd8
2011-12-02 15:48:29 -07:00
Matthew Flatt
db9ae63828 fix leak in `racket/draw' instantiation
original commit: 75dd61ebc36ecca41d591c81c290b0e776cef36b
2011-11-11 16:32:16 -07:00
Matthew Flatt
64f8ae1bb4 add missing test for text% tab fix
Merge to 5.2

original commit: 6d608e392c301cfcff4529445a74788745ad79cc
2011-10-13 06:03:10 -06:00
Matthew Flatt
aa1ced42cc fix text% `get-paragraph-{start,end}-position' bug and doc bugs
Merge to 5.2

original commit: 379991c5bbd170085d1abfb7d766efa4f63e7a3c
2011-10-08 09:12:30 -06:00
Matthew Flatt
71f4c0632c speed up mult/unmult in `{get,set}-argb-pixels'
Also add test cases to check consistency of the results.

original commit: 71b500b49f2948b7c6902afe2a03938e55eb9423
2011-08-26 09:13:28 -06:00
Matthew Flatt
0b5a860bff add a test for undo-clickback repair
original commit: b0245395b760d73666ad65b25d146a73cb20bba4
2011-08-26 06:07:57 -06:00
Matthew Flatt
0fb6c62e45 fix same-scaled test
original commit: 32da8e2b1f60e9148e47df7813ae945bc70a7958
2011-08-19 13:15:36 -06:00
Matthew Flatt
21db4d7457 git: fix "&" and "_" handling in labels
original commit: ff49859c800cff72f662308475aafda098f20950
2011-07-06 09:54:57 -06:00
Matthew Flatt
139a564f07 cocoa: fix "&" handling in menu-item labels
Closes PR 12025

original commit: de54efc84e92e46f549dfdda82102ffc39df72b5
2011-07-06 09:54:41 -06:00
Guillaume Marceau
9990536bf8 The new error messages now pass the tests/language-test.rkt suite
(except for contract runtime error messages in levels higher than
 beginner.)

original commit: 6eea5b1793dea07589ba89fec596757aa1127784
2011-07-06 00:19:26 -04:00
Eli Barzilay
950c968e77 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Matthew Flatt
525988208b add pre-multiplied mode for `{get,set}-argb-pixels'
original commit: b6445880e26df5aef4005cb4adcde50d80e2199a
2011-05-18 16:01:33 -07:00