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
Matthew Flatt
de54efc84e
cocoa: fix "&" handling in menu-item labels
...
Closes PR 12025
2011-07-06 09:54:41 -06:00
Eli Barzilay
40124a0619
A long overdue scan to eliminate files without terminating newlines.
...
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Matthew Flatt
5a5800d513
place-specific low-level "sleep" function
...
to make racket/gui work right with places (running
in just one of them) on Mac OS X
2011-06-17 17:03:21 -06:00
Eli Barzilay
045369e3b9
cocoa: fix `get-file' when any extension is allowed
2011-06-03 01:38:40 -04:00
Eli Barzilay
e9487fb0c7
Make the cocoa file dialogs deal better with ";"-separated globs.
...
* Note the ugly hack of adding "foo~" for every "foo" suffix.
* Note also that when "*.*" is in the glob list all files should be
available but it looks like this isn't working yet for some reason.
2011-06-03 00:56:21 -04:00
Matthew Flatt
c0811dc220
cocoa: fix get-y' in
frame%'
2011-05-26 07:29:09 -06:00
Matthew Flatt
515a4f7991
cocoa: fix problems using menu-bar height
2011-05-10 20:17:47 -06:00
Matthew Flatt
2e93e0ec14
cocoa: fix frame coordinate system by using initial menu-bar height
2011-05-10 09:53:48 -06:00
Matthew Flatt
71df6ddc05
gtk, cocoa: fix auto-sizing of text `message%'s
2011-04-08 14:22:17 -06:00
Matthew Flatt
b0115ee360
add 'wheel-left and 'wheel-right events
2011-04-03 09:49:56 -06:00
Matthew Flatt
d77c92d087
fix support for a string result from get-data' of
clipboard-client%'
...
and properly report an error when the result from `get-data' is not
allowed
Closes PR 11821
2011-03-27 10:51:46 -06:00
Matthew Flatt
deab2ddede
cocoa: fix line height in `list-box%'
...
Closes PR 11822
2011-03-27 10:23:34 -06:00
Matthew Flatt
7ecf8e6c0b
cocoa: fix crashing bug related to canvas sizing
2011-03-15 12:42:04 -06:00
Matthew Flatt
e8cb27c08c
add `get-device-scale' to dc<%>
2011-03-15 07:37:42 -06:00
Matthew Flatt
2f907afde6
code clarification
2011-03-15 06:46:36 -06:00
Matthew Flatt
2ba8927ba5
cocoa: flip vertical slider direction
2011-03-11 02:50:06 -06:00
Matthew Flatt
0ec4c3ae8f
cocoa: fix initialization of screen bitmaps
2011-03-11 02:50:05 -06:00
Matthew Flatt
ca8c6a8133
cocoa: fix `play-sound'
...
by expanding paths properly and checking whether playing
succeeds
2011-03-10 07:35:50 -07:00
Matthew Flatt
a1b79387b9
cocoa: restore "New Folder" button in put-file' and
get-directory'
...
Closes PR 11784
2011-03-08 08:42:03 -06:00
Matthew Flatt
5f797b8f0b
cocoa: fix put-file with extension as ""
2011-03-08 08:37:16 -06:00
Matthew Flatt
107b349da0
cocoa: fix `play-sound' handling of async flag
2011-03-03 05:48:43 -07: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
Matthew Flatt
85951bf665
gtk: smoother editor-canvas resize
...
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
which mainly shows/hides auto-shown scrollbars more on time
(e.g., DrRacket doesn't start with horizontal scrollbars that
immediately disappear)
- switch mouse tracking to "hint" mode, instead of catching every
single mouse position
- when queueing `on-size' methos in response to client-size changes,
cancel and queued but undelivered calls; in the case of editor
canvases, this doesn't really have an effect, due to the other
`on-size' call
Closes PR 11369, hopefully
2011-02-19 16:10:00 -07:00
Matthew Flatt
aea79be7a4
cocoa: FFI type corrections
2011-02-14 06:10:56 -07:00
Matthew Flatt
f4a881f0e3
fix `set-icon' in frame% to make mask argument optional
...
Merge to 5.1
2011-02-09 09:01:34 -07:00
David Van Horn
760a58b65d
Fixes more spelling errors.
2011-02-04 19:44:13 -07:00
Matthew Flatt
845ca2d586
cocoa: yet another hack around weird cocoa behavior
...
Closes PR 11712
Merge to 5.1
2011-02-04 19:43:59 -07:00
Matthew Flatt
e1303dc400
cocoa: change `radio-box%' implementation of no selected buttons
...
(not sure how I missed the `setAllowsEmptySelection' method before,
but maybe there was some reason to avoid it that I've forgotten
--- so *don't* merge to 5.1)
2011-02-04 09:20:47 -07:00
Matthew Flatt
5d1b78384d
cocoa: fix problems with `radio-box%' in no-selection mode
...
Closes PR 11708
Merge to 5.1
2011-02-04 07:26:45 -07:00
David Van Horn
c9519fd113
Fixed various spelling errors.
2011-02-03 17:42:33 -05:00
Matthew Flatt
152c636e1c
cocoa: fix problem with dispatching key-up events
...
Closes PR 11635
Merge to 5.1
2011-01-31 12:40:37 -07:00
Matthew Flatt
bbb12848d1
cocoa: create window to show composition via an input method
...
Merge to 5.1
2011-01-30 17:33:12 -06:00
Matthew Flatt
b485d375b0
cocoa: event-dispatch repairs, especially when no frame is shown
...
Relevant to PR 11672
2011-01-28 12:43:51 -06:00
Matthew Flatt
2ab0d36738
cocoa: fix first-responder tracking when a frame is hidden
2011-01-27 19:20:13 -07:00
Matthew Flatt
8cbc701671
cocoa: fix problems with live-resize
...
that were created by the queue-sync change
2011-01-26 12:57:01 -07:00
Matthew Flatt
630dee7227
cocoa: better sync between Cocoa and Racket event queues
...
to reduce inversion where a low-priority callback runs
when a GUI event is available
2011-01-26 12:19:48 -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
0bc987e66b
fix default dialog% position (centered)
...
Closes PR 11637
2011-01-20 16:42:45 -07:00
Matthew Flatt
4fc8797df2
cocoa: fix printing bounds
2011-01-18 18:42:39 -07:00
Matthew Flatt
c12d52f21b
cocoa: fix problems with some input methods (such as Kotoeri)
...
but the problem remains that the input state is invisible while
characters are being composed
2011-01-17 20:27:55 -07:00
Matthew Flatt
a9dd80110a
restore doc & page checking for `post-script-dc%' et al.
...
and also fix up wiring of `printer-dc%' in `editor<%>' so
that `is-a?' tests works as expected
2011-01-14 20:30:51 -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
f59e8e0eb9
cocoa: fix problems with floating windows
2011-01-08 11:41:11 -07:00
Matthew Flatt
5f4ee4f9f8
cocoa: erasing a non-transparent canvas uses white
2011-01-07 14:15:35 -07:00
Matthew Flatt
81cbf1ae1f
add get-client-handle' to
window<%>'
2011-01-05 12:15:37 -07:00
Matthew Flatt
ae5093a134
more consistent on-size' and
on-move'
2011-01-05 10:00:07 -07: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
ffd4193e32
fix frame registration on show' when
current-eventspace' is weird
...
(i.e., not the frame's eventspace)
Closes PR 11573
2010-12-29 07:45:49 -07:00
Matthew Flatt
80e5c6cec3
clean up
2010-12-28 20:15:30 -07:00
Matthew Flatt
68e477fd52
implement get-focus-window' and
get-edit-target-window' in back end to avoid relying on `on-focus' callback handling
2010-12-28 05:25:26 -07:00
Matthew Flatt
a3adf07fd2
clean up pre-drawing of canvases for a frame to show
2010-12-24 20:09:16 -06:00
Matthew Flatt
bb96973c4a
cocoa: don't disable flushes on a window that isn't shown
...
because that doesn't seem to work
Closes PR 11565
2010-12-24 18:22:59 -06:00
Matthew Flatt
21ca120c8c
cocoa: fix problems with no-frame root menu
...
on-demand callback and original installation
2010-12-24 17:48:13 -06:00
Matthew Flatt
975c2400a1
cocoa: fix interaction of combo-field% popup and canvas refresh
...
and also reduce work on redundant show/hide of canvas
Closes PR 11557
2010-12-19 18:58:27 -07:00
Matthew Flatt
0c4d2e332c
fix transparent-canvas detection
2010-12-17 10:46:06 -07: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
c9e778c541
cocoa and gtk: make combo-field% `on-popup' work better
2010-12-16 10:48:28 -07:00
Matthew Flatt
d518084f88
cocoa: fix message% 'app icon
2010-12-16 10:48:26 -07:00
Matthew Flatt
790a91e520
fix minor potential GC bugs and add some debugging support
2010-12-13 16:31:13 -07:00
Matthew Flatt
953dd78d76
cocoa: add app badge to caution & stop icons
2010-12-12 08:24:19 -07:00
Matthew Flatt
355cf25b5f
cocoa: allow default handling of Cmd-` for cycling windows
...
Closes PR 11499
but it's not clear that this is the right fix for all users
2010-12-08 19:56:02 -07:00
Matthew Flatt
3479f5fb92
cocoa: hack around NSApplication's handling of command-line arguments
2010-12-02 11:53:18 -07:00
Matthew Flatt
e627ccb5ed
cocoa: avoid infinite loop on re-dispatch of command keys
2010-11-30 20:17:47 -07:00
Matthew Flatt
72d57d8db8
cocoa: explicitly re-dispatch Cmd- key combinations
2010-11-30 15:39:02 -07:00
Matthew Flatt
37d16cf8f8
cocoa: fix race condition on window enabling
2010-11-30 09:32:58 -07:00
Matthew Flatt
2282cae59a
cocoa: fix removal of menu shortcut
...
Closes PR 11463
2010-11-28 10:44:01 -07:00
Matthew Flatt
d37cc7b3ec
cocoa: fix problem with tab panel
2010-11-28 10:41:59 -07:00
Matthew Flatt
f090e732fd
cocoa: fix relabel of image checkbox
2010-11-28 08:01:07 -07:00
Matthew Flatt
262531e231
cocoa: fix enable & disable of windows
2010-11-28 08:01:06 -07:00
Matthew Flatt
04a4ad269f
cocoa & gtk: fix set-label with bitmap on message%
...
Closes PR 11462
2010-11-26 11:59:31 -07:00
Matthew Flatt
7da127227a
gtk & cocoa: frame iconize repairs
...
In the "windowing.rktl" tests, for Gtk there are still race conditions
between the program and the window manager. But for the first
time ever, all platforms can pass the "windowing.rktl" test.
2010-11-26 08:33:59 -07:00
Matthew Flatt
e0bcec0825
cocoa: handle multi-key character input
2010-11-25 10:38:44 -07:00
Matthew Flatt
df9c4c8c69
cocoa: don't treat dead-key events as normal character events
...
but more work is still needed for multi-key input
2010-11-25 08:41:50 -07:00
Matthew Flatt
347869fc9e
fix some racket/gui tests and fix cocoa frame centering
2010-11-25 08:03:33 -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
ab070b205e
cocoa: finally found the documented API to enable GUI mode
2010-11-25 08:03:32 -07:00
Matthew Flatt
370c97165a
cocoa: fix problem with frame focus
2010-11-24 12:03:17 -07:00
Matthew Flatt
e2072d5afb
cocoa: repair location fixup on screen change
2010-11-24 10:38:41 -07:00
Matthew Flatt
14a72b5a08
cocoa: fix problems with frame-list management
2010-11-24 07:12:02 -07:00
Matthew Flatt
510c3f8a33
cocoa: try to fix problem with drifting gc-blit window
2010-11-23 10:02:45 -07:00
Matthew Flatt
c94df207a4
cocoa: one more 10.6-only method
2010-11-20 15:45:28 -07:00
Matthew Flatt
bf9b913f33
cocoa: avoid another 10.6-only method
...
Closes PR 11442
2010-11-20 15:38:17 -07:00
Matthew Flatt
584287483b
cocoa: avoid another 10.6-only method
...
Closes PR 11440
2010-11-16 17:08:41 -07:00
Matthew Flatt
f050f28d2b
cocoa: fix put-file extension handling when no extensions are supplied
2010-11-15 19:46:41 -07:00
Matthew Flatt
6c844ec415
cocoa: adjust button shape for large fonts
2010-11-15 12:16:42 -07:00
Matthew Flatt
16b75b1f00
cocoa: avoid explicit NSTabViewDelegate
...
--- not in pre-10.6, seems to crash in 64-bit mode, and not
necessary to declare
Closes PR 11418
2010-11-14 15:54:18 -07:00
Matthew Flatt
279315b582
cocoa: fix ffi-use bug
2010-11-14 15:54:17 -07:00
Matthew Flatt
1c6f745ac1
adjust canvas refresh strategy yet again
...
- there seems to be no need to auto-resume flushes on a canvas,
which can create flicker if the auto-resume timeout turns out
to be too short
2010-11-12 20:39:58 -07:00
Matthew Flatt
d7369f819c
cocoa: set button control size when font is small
...
Closes PR 11404
2010-11-10 17:54:07 -07:00
Matthew Flatt
b6b3298567
cocoa: avoid 10.6-specific method for menu popup
2010-11-10 17:54:07 -07:00
Matthew Flatt
c9b7c98525
cocoa: use alternate key if ctl-combination has no mapping
...
--- fixes ctl-space, and maybe other combinations
Closes PR 11403
2010-11-09 06:55:37 -07:00
Matthew Flatt
83bcdbbd81
cocoa: fix save-file dialog when other extensions should be allowed
2010-11-08 07:12:03 -07:00
Matthew Flatt
3747978c1e
cocoa: fix ctl-\ key event
2010-11-08 07:03:51 -07:00
Matthew Flatt
e402d68efc
fix `find-graphical-system-path'
2010-11-07 07:08:33 -07:00
Matthew Flatt
53febbeb6c
cocoa: fix a double vs. float mismatch in getting scroll positions
2010-11-06 21:22:52 -06:00