Commit Graph

334 Commits

Author SHA1 Message Date
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
Matthew Flatt
694745e998 first cut at splitting draw and gui docs 2010-11-05 21:57:13 -06:00
Matthew Flatt
39596efef5 cocoa and gtk: fix combo% `on-popup' method 2010-11-05 15:54:56 -06:00
Matthew Flatt
b9f3957a76 gtk and cocoa: add flush method to canvas% and fix periodic flush 2010-11-05 15:54:55 -06:00
Matthew Flatt
05cfffdf9e v5.4.99.1, executable-yield-handler', and make-bitmap' etc. 2010-11-05 15:54:50 -06:00
Matthew Flatt
d7f1d12ea1 clean up 2010-11-05 15:54:49 -06:00
Matthew Flatt
a7426c1c27 cocoa: fix startup -psn_ and file handling 2010-11-05 15:54:46 -06:00
Matthew Flatt
881c182956 editor insert-image uses alpha by default 2010-11-05 15:54:44 -06:00
Matthew Flatt
674d2e5248 fix save-file and get-argb-pixels for screen bitmaps 2010-11-05 15:54:43 -06:00
Matthew Flatt
16b34c236a gtk: misc fixes 2010-11-05 15:54:41 -06:00
Matthew Flatt
0a47a81aba `make-gl-bitmap' for cocoa and maybe gtk 2010-11-05 15:54:38 -06:00
Matthew Flatt
1bddb120f9 cocoa: opengl canvases 2010-11-05 15:54:37 -06:00
Matthew Flatt
1dd3c8accb gtk: try fullscreen 2010-11-05 15:54:32 -06:00
Matthew Flatt
6b606cb4e2 canvas scroll and gauge range limit to 1000000 2010-11-05 15:54:30 -06:00
Matthew Flatt
5ebfa781bd screen dc corrections and clarifications 2010-11-05 15:54:27 -06:00
Matthew Flatt
51aacfe949 add make-screen-bitmap and canvas% make-bitmap; specialize for X11 2010-11-05 15:54:26 -06:00
Matthew Flatt
bff39a1832 fix gtk collecting blit to revert immediately when gc ends 2010-11-05 15:54:26 -06:00
Matthew Flatt
4bd84adb3a add dc<%> copy method; speed text drawing a little and implement but disable editor scrolling with dc<%> copy 2010-11-05 15:54:25 -06:00
Matthew Flatt
79728fad59 update docs for `register-collecting-blit' 2010-11-05 15:54:24 -06:00
Matthew Flatt
8da4bbd52d fix key-event problem and implement mouse wheel for Cocoa 2010-11-05 15:54:23 -06:00
Matthew Flatt
ae05eddf14 generalize editor selection mechanism to support Windows style 2010-11-05 15:54:19 -06:00
Matthew Flatt
16f15b0cad postscript-dc% interactive and landscape 2010-11-05 15:54:10 -06:00
Matthew Flatt
c42d95216e auto-scroll canvases and frame status lines 2010-11-05 15:54:10 -06:00
Matthew Flatt
06a47a3c54 get-transformation, etc. methods on dc<%> 2010-11-05 15:54:09 -06:00
Matthew Flatt
2631853a28 notes and docs 2010-11-05 15:54:09 -06:00
Matthew Flatt
e0a2a66dc8 fix region bounding-box and hit-test; catch up docs 2010-11-05 15:54:08 -06:00
Matthew Flatt
af4ccd2de1 fix bitmap-related docs 2010-11-05 15:54:08 -06:00
Matthew Flatt
4134b06b4c bitmap and dc docs up to date 2010-11-05 15:54:05 -06:00
Robby Findler
a021403679 tightened the contract on read-snip 2010-10-28 11:32:14 -05:00
Robby Findler
3e9858b001 added an argument to open-input-text-editor so that it can lock (and unlock) the editor when editing would not be allowed. 2010-10-13 15:55:17 -05:00
John Clements
e94163f37a it's -> its 2010-10-05 21:09:17 -07:00
Matthew Flatt
aac7e0b58a extend invalidate-bitmap-cache' in editor<%>' with 'display-end option
which the framework's background-rectangle implementation can use
 to queue refreshes for changing rectangles, instead of requiring a
 full-canvas refresh
2010-09-19 19:22:22 -06:00
Matthew Flatt
fd285baeac fix documented canvas-scroll limits 2010-09-18 19:52:40 -06:00
Matthew Flatt
c8762ae877 add methods to text-field% to control the background color 2010-08-03 12:34:16 -06:00
Matthew Flatt
78751b982a fix doc typo 2010-07-29 06:56:30 -05:00
Matthew Flatt
fa68e23c37 add pen and cap support to pen-list% 2010-07-21 15:50:22 -06:00
Matthew Flatt
7a7f545046 doc corrections and clarifications 2010-06-30 10:40:02 -06:00
Matthew Flatt
dc98077ca4 add 'handles-all-mouse-events snip% flag 2010-06-26 13:53:31 -06:00
Matthew Flatt
1712dfb7f5 fix make-gui-namespace from scheme/gui/base and racket/gui/base
so that the namespace starts with scheme/base or racket/base
 respectively
2010-06-07 20:06:51 -04:00
Sam Tobin-Hochstadt
dfb4916f10 Fix more references to Scheme. 2010-06-04 16:40:00 -04:00
Sam Tobin-Hochstadt
43b9917484 Fix references to Scheme. 2010-06-04 15:40:08 -04:00
David Van Horn
22e2f3061f Various typo, spelling, and punctuation fixes in scribblings.
Signed-off-by: David Van Horn <dvanhorn@ccs.neu.edu>
2010-05-28 14:47:54 -06:00
Eli Barzilay
c4f67b3e74 Small typos, some reformatting.
Fixes PR10920
2010-05-21 16:30:16 -04:00
Eli Barzilay
7f6efdc8be A lot of "MrEd" -> "GRacket"s. 2010-05-16 23:46:05 -04:00
Eli Barzilay
2d9601089d A lot of "MzScheme" -> "Racket"s. 2010-05-16 18:26:26 -04:00
Matthew Flatt
c023c460bc misc racket renamings 2010-05-07 11:03:02 -06:00
Matthew Flatt
f643c7aa4b add section to Scheme compatibility manual on old executables 2010-05-05 10:06:56 -06:00
Matthew Flatt
26a92b1cfe rackety racket/gui doc 2010-05-02 11:29:45 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
c7e723eef7 somewhat rackety core docs 2010-04-22 15:10:25 -06:00
Stevie Strickland
664cfa2e31 Given the other uses of #:mode public-final in this file, I assume that the
quote was a mistake.

svn: r18717
2010-04-02 00:15:24 +00:00
Matthew Flatt
fb37601b55 bug fixes from random testing
svn: r18602
2010-03-23 01:49:08 +00:00
Casey Klein
854a902cbd Fixed bugs found with random testing
svn: r18581
2010-03-19 11:39:02 +00:00
Robby Findler
c1640d005f svn: r18506 2010-03-10 12:51:20 +00:00
Robby Findler
9c88dc49b2 minor cleanup to make parsing the docs easier
svn: r18483
2010-03-06 14:08:25 +00:00
Robby Findler
3bcea5bbe0 made another method final
svn: r18482
2010-03-06 12:54:30 +00:00
Robby Findler
7c3025ecde fixed some more bugs found by random testing
svn: r18478
2010-03-06 01:35:19 +00:00
Robby Findler
0d8fbe6d06 made the docs match the implementation
svn: r18468
2010-03-04 19:31:03 +00:00
Robby Findler
2cfd1f423c removed unimplemented stuff
svn: r18467
2010-03-04 17:19:34 +00:00
Robby Findler
6d4a546ca8 tightened up the contract in the docs for key-event%s methods so they limit the symbols to just the legal ones
svn: r18466
2010-03-04 17:14:59 +00:00
Casey Klein
ff0eb1757a Fixed bugs found with random testing.
svn: r18465
2010-03-04 16:37:12 +00:00
Robby Findler
6fc4add369 corrected a bug in the docs
svn: r18453
2010-03-03 21:15:13 +00:00
Robby Findler
16b60586a5 used exact-integer? instead of (and/c exact? integer?)
svn: r18449
2010-03-03 17:41:44 +00:00
Robby Findler
a02520d692 tightened up inserts contract
svn: r18446
2010-03-03 16:42:45 +00:00
Robby Findler
f39e8ebe0c exported and documented label-string?
svn: r18335
2010-02-25 13:03:38 +00:00
Robby Findler
71b4df4a29 removed some more one-of/c's in favor of or/c
svn: r18247
2010-02-21 02:29:12 +00:00
Robby Findler
5ad04e3b2c changed some defconstructor/make's into defconstructor's
svn: r18244
2010-02-21 02:06:28 +00:00
Robby Findler
94880b4733 changed some one-of/c's to or/c's
svn: r18185
2010-02-19 15:03:12 +00:00
Matthew Flatt
09ef762e3f add accept-tab-focus to editor-canvas%
svn: r17929
2010-02-01 19:30:59 +00:00
Matthew Flatt
a09e671f34 allow radio-box% to have no selected buttons
svn: r17865
2010-01-28 17:51:30 +00:00
Eli Barzilay
f8c78cb752 typo (PR10722)
svn: r17859
2010-01-28 01:30:55 +00:00
Matthew Flatt
331c6d2f5f fix bignum expt (PR 10690); also fixed a doc typo
svn: r17614
2010-01-12 02:16:12 +00:00
Matthew Flatt
6151119d5e JIT tweak for flonum comparisons; better bytecode-compiler transformations for expressions used as branch tests
svn: r17486
2010-01-05 20:24:59 +00:00
Robby Findler
d3e8978b55 fixed a bug found by randomized testing
svn: r17382
2009-12-21 20:59:18 +00:00
Robby Findler
466f56ed0d added a for-label require
svn: r17257
2009-12-10 15:05:35 +00:00
Eli Barzilay
ed805668cd typo
svn: r17175
2009-12-03 08:16:38 +00:00
Matthew Flatt
1b79472b78 fix doc typo
svn: r16764
2009-11-14 04:13:12 +00:00
Sam Tobin-Hochstadt
89f5ad32b4 fix docs typo
svn: r16645
2009-11-09 21:30:01 +00:00
Robby Findler
0bd8b828e9 clarified how to best read and write bytes
svn: r16372
2009-10-19 20:10:25 +00:00
Matthew Flatt
8da19de7b2 improve readable-snip<%> and related docs
svn: r15784
2009-08-19 20:51:23 +00:00
Robby Findler
287bbaf14c probably correct edit
svn: r15556
2009-07-25 01:04:10 +00:00
Eli Barzilay
4288c6c2c7 The Scribble reader was improved to make it pull out the syntax
punctuations outside of the form, as it does with quote punctuations.
So things like this

  #, @foo{...}

that required the space to make the @foo read as a scribble form are
now better written as

  @#,foo{...}

This changes all such occurrences.  (In case you see this change in
your files and are worried that there might be changes: I mechanically
verified that the result of `read'ing the modified files is identical
to the previous version.)

svn: r15111
2009-06-07 10:12:32 +00:00
Matthew Flatt
17a283a28d editor and documentation repairs (merge to 4.2)
svn: r14864
2009-05-19 01:02:41 +00:00
Robby Findler
ef9ee828bf svn: r14819 2009-05-14 19:25:27 +00:00
Eli Barzilay
6ce301f3c8 svn: r14607 2009-04-25 13:21:50 +00:00
Matthew Flatt
a542660087 raise canvas scroll limits to 1B instead of 10k
svn: r14605
2009-04-24 21:54:28 +00:00
Matthew Flatt
4b3626c156 fix inverted argument default for editor<%> read-from-file method; better Check Sytax results on packages; added syntax/flatten-begin library
svn: r14548
2009-04-17 22:50:19 +00:00
Matthew Flatt
a99c653997 doc scheme/gui editor-stream method updates
svn: r14538
2009-04-17 11:12:13 +00:00
Matthew Flatt
1d26e97a35 Scheme-implemented editor classes; on-demand instantiation of module phases
svn: r14445
2009-04-07 17:12:22 +00:00
Eli Barzilay
c0a8a01222 Changed @itemize{...} to @itemize[...] (done after comparing the doc
tree and verifying that there are no changes).
(Also fixed a few bugs that were in the code)

svn: r14427
2009-04-05 17:46:20 +00:00
Matthew Flatt
34c14d27f5 typo
svn: r14288
2009-03-26 12:00:13 +00:00
Matthew Flatt
f9190e5c1c fix doc typos
svn: r14280
2009-03-25 20:28:33 +00:00
Matthew Flatt
d8d25debcd fix defclass and some scheme/gui argument schemevarfont binding
svn: r14042
2009-03-10 23:14:53 +00:00
Matthew Flatt
a8c8f9e8a1 gui doc corrections
svn: r13502
2009-02-09 14:01:38 +00:00
Matthew Flatt
ab5a01da76 doc typo
svn: r13330
2009-01-30 23:42:51 +00:00
Matthew Flatt
6c77acf6f1 fix Scribble output of multi-line error messages, especially when they contain a blank line; minor doc repairs
svn: r13325
2009-01-30 16:41:42 +00:00
Matthew Flatt
20fad3e2b8 scheme/gui doc fixes (ok to merge to 4.1.4)
svn: r13222
2009-01-19 15:48:04 +00:00
Matthew Flatt
7f4c069ab6 document style collapsing of find-or-create-style
svn: r13151
2009-01-15 13:49:41 +00:00
Matthew Flatt
cf2e98eb92 size-cache-invalid for editor<%>
svn: r13120
2009-01-14 20:29:37 +00:00
Matthew Flatt
e2751633f0 fix set-max-width, etc. docs
svn: r13113
2009-01-14 15:39:24 +00:00
Matthew Flatt
9a177b251e use 'system-position-ok-before-cancel?' in GUI overview example
svn: r13067
2009-01-11 15:39:54 +00:00
Matthew Flatt
72b272ebd0 fix typo in example (PR 10018)
svn: r13066
2009-01-11 15:23:13 +00:00
Matthew Flatt
4180d67e34 make scheme/path fuctions work on paths for any playform
svn: r13064
2009-01-11 13:52:26 +00:00
Matthew Flatt
1642a84e69 add equal?/recur; implement equal? for image-snip% via properties
svn: r12950
2008-12-29 22:36:53 +00:00
Matthew Flatt
224462a3f5 doc put-file behavior for 10.4 vs 10.5
svn: r12653
2008-11-30 18:36:27 +00:00
Matthew Flatt
7f4ddbe5fa better file-extension support for Mac OS X put-file dialog
svn: r12638
2008-11-29 18:52:25 +00:00
Matthew Flatt
01354149ee add missing info on set-delta-background (related to PR 9886)
svn: r12239
2008-11-05 00:40:19 +00:00
Matthew Flatt
0b79aaa1ae doc repairs
svn: r12216
2008-11-02 12:28:59 +00:00
Matthew Flatt
51f5d193dd adjust editor-cavas% refresh to clear border before calling on-paint
svn: r12198
2008-10-31 15:08:21 +00:00
Eli Barzilay
61aa266525 typo (PR9836)
svn: r12045
2008-10-15 19:34:22 +00:00
Carl Eastlund
cbe1b2dce4 Fixed scribble typesetting error in GUI docs.
svn: r12020
2008-10-13 16:43:24 +00:00