Commit Graph

244 Commits

Author SHA1 Message Date
Matthew Flatt
e2a0fd02ef document limitations of on-subwindow-event' and on-subwindow-char'
Merge to 5.1
2011-02-05 16:48:40 -07:00
Matthew Flatt
5eeec97878 adjust racket/gui/base' to re-export file/resource'
Merge to 5.1 along with b4ce4bb, 3375005, 18eb7c8, 3c4807f
2011-02-05 14:05:08 -07:00
Robby Findler
0fce29f552 adjust the wxme reader so that it now creates image-snip%s when it finds image-snips in file
it used to create image% objects that were simple containers for the
  data in the file; the change _should_ be backwards compatibile;
  the only know incompatibility is that the get-filename method
  now returns a path instead of bytes (this is to match the
  image-snip% class)

   closes PR 1168

   please merge to the 5.1 release branch
2011-02-02 20:26:52 -06:00
Matthew Flatt
dc2bdfcea3 `frame%' style doc corrections
to sync with gr2 changes
2011-01-28 11:14:01 -07:00
Matthew Flatt
5467f89a23 remove non-working get-font' method of control<%>'
Closes PR 9938
2011-01-28 05:55:41 -07:00
Matthew Flatt
5e3dbbc3f8 change gracket -z' to just use read-eval-print-loop'
instead of `textual-read-eval-print-loop'
2011-01-24 19:47:21 -07:00
Matthew Flatt
069a7c2b48 add current-get-interaction-input-port' and adjust racket/gui'
so that GUI events are dispatched while a REPL is blocked on input
2011-01-24 19:47:20 -07:00
Matthew Flatt
cf548f197e add eventspace-event-evt' to racket/gui/base' 2011-01-24 19:47:20 -07:00
Matthew Flatt
69859850f3 finish implementing display of menu shortcuts
that involve non-chars shortcuts and alternate prefixes
2011-01-22 10:15:14 -07:00
Matthew Flatt
b112fd76df add reparent' to subwindow<%>' 2011-01-21 20:21:21 -07:00
Matthew Flatt
128fedaceb fix `message-box' to use eventspace of parent, if any 2011-01-20 15:47:03 -07:00
Robby Findler
0f579711ac fixed the result contract of message+check-box (it was missing the second value) and then did a bunch of other minor contract tweaks to get rid of false/c and one-of/c 2011-01-20 14:08:34 -06:00
Matthew Flatt
98822cf1f9 adjust `racket/gui' and dependencies to survive a locked preference file
- adds a `#:timeout-lock-there' argument to `get-preference'
 - fixes preference looup in `racket/gui'
 - make preference names consistently use `GRacket' and consistently
   fall back on `MrEd' names
 - fix Emacs-style undo mode while we're at it
2011-01-18 17:37:33 -07:00
Matthew Flatt
183323a2c5 fix `editor<%>' printing problems
- pagination for `pastebard%'
 - always put everything on a single page for EPS mode
 - add PDF support to mirror PS support
2011-01-18 14:16:25 -07:00
Matthew Flatt
3ff7ca2d31 change `text-field%' to treat numpad Enter like normal Enter/Return
Closes PR 7890
2011-01-18 11:02:46 -07:00
Matthew Flatt
36155e913e get rid of the old barriers around GUI event dispatch
since, on further reflection, it doesn't seem needed, and a simple
 prompt seems to make everything work right
2011-01-17 09:21:50 -07:00
Matthew Flatt
7545d7d18f document the fact that event callbacks are now delimited by a prompt
using the default continuation prompt tag
2011-01-17 09:03:05 -07:00
Matthew Flatt
f1e13a7921 modial dialog don't disable mouse motion, enter, and leave events
Closes PR 11599

 This is an API change relative to gr1, but it seems sensible,
 and it makes enter and leave events more reliable and easier
 to implement.
2011-01-10 07:53:03 -07:00
Matthew Flatt
9417beb7bd gtk: get-file' and put-file' replace "*.*" filter with "*"
Closes PR 11593
2011-01-08 10:29:31 -07:00
Matthew Flatt
d4e3d42d19 make `message-box' and variants work when called for a non-handler thread
This could be done to many other dialogs, but it seems especially
 worthwhile for `message-box'.
 Closes PR 11601.
2011-01-07 17:59:26 -07:00
Matthew Flatt
d6fc7da750 add refresh-now' to canvas%'
--- this method doesn't have to be built in, but it
     encapsulates a common and not-too-obvious pattern
2011-01-07 14:19:35 -07:00
Matthew Flatt
a5660f38eb document weak reference by `notify-on-change' 2011-01-07 13:02:11 -07:00
Matthew Flatt
be6ba896e0 repairs for line numbers in DrRacket 2011-01-07 11:57:50 -07:00
Matthew Flatt
4f56618c6d improve canvas-drawing docs 2011-01-06 07:43:26 -07:00
Matthew Flatt
81cbf1ae1f add get-client-handle' to window<%>' 2011-01-05 12:15:37 -07:00
Matthew Flatt
b0d95708bf fix docs on get-handle' from window<%>' 2011-01-05 08:50:21 -07:00
Matthew Flatt
b0095111d4 restore and document scrolling behavior
Closes PR 11583, and
 everts the previous fix for PR 10853 and fixes
  it in a different way
2011-01-05 07:02:00 -07:00
Asumu Takikawa
ed114c0750 Fix documentation to match editor<%>, text%, and pasteboard% changes. 2011-01-04 13:04:28 -05:00
Matthew Flatt
241bb79cb0 allow a button% to have both a string and a bitmap for its label 2011-01-01 13:54:45 -07:00
Matthew Flatt
eddae6749d clean up handling of not-ok?', bitmap-dc%'-selected, and mutated bitmaps 2010-12-30 08:35:56 -07:00
Matthew Flatt
d3fd1ba013 add `set-padding' to text% 2010-12-29 13:42:58 -07:00
Matthew Flatt
8ac21c745f add show-without-yield' to dialog%' 2010-12-28 10:52:17 -07:00
Robby Findler
7ac268e4da Rackety 2010-12-24 06:34:45 -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
43b96fe47c adjust racket/snip docs 2010-12-20 08:04:11 -07: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
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
de63b79300 Document new methods of `snip-admin%'. 2010-12-17 12:32:27 -05: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
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
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
8101c03d30 added a note about how label-string? is used. 2010-12-12 15:26:54 -06:00
Matthew Flatt
42dc83bbcd fix docs for `get-panel-background' 2010-12-01 15:57:54 -07:00
Matthew Flatt
dedb207a86 fix draw-bitmap result to match docs 2010-12-01 15:48:55 -07:00
Matthew Flatt
f88735ef20 fix typo 2010-11-28 08:01:06 -07:00
Matthew Flatt
68391fe2ea reorganize racket/gui docs and expand canvas-drawing overview 2010-11-27 20:05:20 -07:00
Matthew Flatt
8b3165d55b move racket/draw overview to the Guide and expand it
--- plus some minor collateral API improvements
2010-11-27 16:34:32 -07:00
Matthew Flatt
430d45b471 doc correction
Closes PR 11465
2010-11-27 08:28:57 -07:00
Matthew Flatt
820e832853 add 'close-button style to dialog%; fix cocoa default frame placement 2010-11-25 08:03:33 -07:00
Matthew Flatt
e402d68efc fix `find-graphical-system-path' 2010-11-07 07:08:33 -07:00