Commit Graph

334 Commits

Author SHA1 Message Date
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
Robby Findler
b52086ecae clarify the use-file-text-mode method. 2011-09-30 17:08:18 -05:00
Robby Findler
a4336c3997 docs for new read-snip-from-port function in the wxme library 2011-09-13 20:46:04 -05:00
Robby Findler
1ec5aee4a4 add a better link from the snip class docs to the relevant section of the
wxme library
2011-09-12 10:49:13 -05:00
Matthew Flatt
735ca7f3c3 racket/gui: add `application-start-empty-handler' 2011-09-09 17:03:18 -06:00
Matthew Flatt
ce4705cedc get-diplay-size' and get-display-left-top-inset' use #f for failure
Since the number of monitors can change at any time, reliable
use of these functions requires handling failure in some way.
Handling #f results is easier (and less likely to mask other
problems) than catching exceptions.
2011-09-09 17:03:17 -06:00
Robby Findler
57c59d2ed7 add yet another dialog-mixin argument to a standard dialog, this time
get-text-from-user

also, some minor rackety to that function/file
2011-09-05 20:19:16 -05:00
Robby Findler
9253707621 added a #:dialog-mixin argument to message-box and related functions
Also minor rackety (just enough to get keyword arguments)
2011-09-05 08:30:45 -05:00
Robby Findler
415868f914 added a #:dialog-mixin argument to get-file, put-file, get-file-list, and get-directory
Also, Rackety
2011-09-05 08:30:44 -05:00
Matthew Flatt
3f09b2ea64 doc fixes
Closes PR 12157
2011-09-03 13:31:52 -06:00
Eli Barzilay
d61eb53686 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).
2011-08-15 07:50:04 -04:00
Matthew Flatt
71621bfd72 remove unsupported MDI styles and method
Closes PR 12042
2011-08-04 08:02:54 -06:00
Matthew Flatt
f13a669d05 add 'no-focus style to `editor-canvas%' 2011-07-25 11:30:23 -04:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Eli Barzilay
a38f384a00 Finish converting scheme' -> racket'.
Everything compiles fine now even if the compatibility bindings are
gone.
2011-06-28 00:45:38 -04:00
Eli Barzilay
ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Asumu Takikawa
cbd0f31800 Fix another GUI typo 2011-06-22 16:04:19 -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
f34a31cac9 "under <platform>" -> "on <platform>"; "X" -> "Unix"
I originally picked "under" as the preposition to go before
 a platform name, but obviously you should build "on" a
 platform, and "under" suddenly annoys me. The choice of "on"
 is now codified in the documentation style guide. Meanwhile,
 "Unix" insted of "X" seems more clear and consistent in the
 `racket/gui' docs.

 More usefully, this patch also fixes a few out-of-date
 platform-specific claims.
2011-06-17 18:54:43 -06:00
Asumu Takikawa
ed590b8ec5 Fix GUI and Reference doc typos 2011-06-13 17:57:21 -04:00
Eli Barzilay
3ecdd3bc59 Specify what happens on OS X with ;-separated globs.
Also, update the `path-dialog%' intro -- it is no longer similar to the
dialog under X.
2011-06-06 02:01:26 -04:00
Asumu Takikawa
78689098eb Fix docs on editor-snip% init arg 2011-05-25 23:39:38 -04:00
Matthew Flatt
e7d2cb73d9 doc formatting fixes 2011-05-25 07:32:47 -06:00
Matthew Flatt
f46edbe1ff fix doc typo 2011-05-24 12:58:53 -06:00
Matthew Flatt
e78a60016f fix cross-reference 2011-04-24 07:55:32 -06:00
Asumu Takikawa
14ef89c37d Fix documentation for gui, draw, and framework.
- General cleanup/consistency (e.g. void -> void?)
  - Fix misdocumented methods (found violations via contracts)
2011-04-22 11:27:08 -04:00
Jay McCarthy
b80728f4b9 Add another useful method re: Robby 2011-04-06 11:14:25 -06:00
Matthew Flatt
b0115ee360 add 'wheel-left and 'wheel-right events 2011-04-03 09:49:56 -06:00
Matthew Flatt
68f7e9f33b doc clarifications 2011-03-29 19:53:06 -06:00
Matthew Flatt
ad922d545c document Unix lib dependencies for racket/draw' and racket/gui/base' 2011-03-28 06:23:14 -06: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
Robby Findler
bd3a43db98 changed some nonnegative-real?'s into (and/c real? (not/c negative?))'s 2011-03-14 19:38:24 -05:00
Robby Findler
466abb9896 typo 2011-03-14 19:38:18 -05:00
Matthew Flatt
5f797b8f0b cocoa: fix put-file with extension as "" 2011-03-08 08:37:16 -06:00
Matthew Flatt
fdef90e482 fix get-column-width' method of list-box%'
by changing the name to match the docs, plus some other
  bug fixes triggered by better testing
 Closes PR 11780
2011-02-28 19:12:34 -07:00
Matthew Flatt
93e1467b8b racket/gui: scrollbar support panels 2011-02-24 13:23:51 -07:00
Matthew Flatt
137d96c089 multi-column support in list-box% 2011-02-21 13:58:57 -07:00
Robby Findler
7cc3465486 clarify the style<%>'s get-delta's docs 2011-02-17 12:26:52 -06:00
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
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