Commit Graph

5378 Commits

Author SHA1 Message Date
Robby Findler
cb0e0e7fd1 fix canonicalize-keybinding-string for ?: and l: modifiers
also fix test suite to actually run the tests

original commit: 84f98f62119e712d0b73f3480fd02a2208462dcc
2013-11-28 21:20:49 -06:00
Asumu Takikawa
fadd00e610 GUI doc fixes
Two of the contracts were inaccurate and, if true, would
have violated subtyping between editor<%> and text%.

Please merge to v6.0

original commit: 287a59ce124a7747e5316854ad7a727287923a55
2013-11-26 17:11:32 -05:00
Robby Findler
0543d1a577 add a shortcut to file|revert
original commit: 6bac145851f4261335c93dddc4b1597dc937310e
2013-11-26 14:27:18 -06:00
Matthew Flatt
194748b6e1 racket/gui cocoa: fix flipped drawing for combo-field% content
This was another bug in 9cb646bbd2.

original commit: 991659a9e3ccc2594a6e72df372b741998df7a88
2013-11-25 10:04:48 -07:00
Robby Findler
3cd3d931c2 adjust the normalize-paste mixin to, by default,
replace non-breaking minus characters with hyphens

closes PR 14197

original commit: 35316fd72d637209c8c75068498055d6362a2e0c
2013-11-24 22:19:58 -06:00
Matthew Flatt
595631d266 racket/gui cocoa: repair for canvas creation in hidden top-level window
Fixes 9cb646bbd2 for the case that a frame or dialog is shown,
then hidden, then a new canvas is created or a new compatible
bitmap is requested via the `make-bitmap` method.

The test for this change is just the "windowing.rktl" test, which I
forgot to run before (as opposed to the drawing test suite).

original commit: d234c0c2e30e7ed0c649f8bcf2577e23865304c3
2013-11-24 19:49:21 -07:00
Matthew Flatt
c7134a00af racket/gui cocoa: use CGLayer for canvas bitmaps
The backing bitmap for a canvas is created as a CGLayer, which can
make screen refresh much faster. Also, calling the `make-bitmap` method
of `canvas%` produces a CGLayer-based bitmap, so drawing those bitmaps
to a fast context can be fast.

The improvement particularly helps with Retina displays, making
DrRacket more responsive and increasing the potential frame rate
of Slideshow.

original commit: 9cb646bbd23221161ac7e0002b95937e4064e926
2013-11-23 11:38:47 -07:00
Robby Findler
243b3a1ed5 fix grammar and spelling
please include in the release branch

original commit: ba6a8eb5ddf81d6490ac2babb81fcce7720ee80b
2013-11-23 11:01:53 -06:00
Matthew Flatt
2bb36b9ff9 racket/gui cocoa: fix border of combo-field% for recent Mac OS X
Merge to v6.0

original commit: e0026f5de44b32690565c17a3e077c8e45cdeb7a
2013-11-22 13:37:37 -07:00
Matthew Flatt
1f2f7593f8 racket/gui cocoa: fix crashing bug with combo-field%
Merge to v6.0

original commit: 9a120f6acc12f3c3221d0630e7e51fd4d4177239
2013-11-22 13:37:37 -07:00
Matthew Flatt
5fcd0fa984 racket/gui cocoa: fix for Mac OS X before 10.7
I forgot to guard a NSScreen method called for Retina support
with a version check.

original commit: b64f74bbed04e166859ced2929d5d73e07808a63
2013-11-19 07:19:25 -07:00
Robby Findler
44bd3f9930 reflow the splash screen before showing it so as to try to
not call the paint callback with a strange size

original commit: 52da06ee85c4cacc8bdb17eee453aa391ad9f6a0
2013-11-17 22:08:02 -06:00
Matthew Flatt
014448c316 racket/gui cocoa: fix 'resize-border style for dialog%
Also, fix documentation to reflect windo styles of different Mac OS X
versions.

original commit: e18f87918e7c7dfeb4f5bdda2ba7b427afc8a592
2013-11-12 20:17:03 -07:00
Matthew Flatt
7b7e11a299 "racket-test" clean-up
Move a few tests, and clear out a lot of junk.

original commit: 29a0c44c98d5c8d3660e4bd10eb566c7ec6e46e2
2013-11-09 08:30:37 -07:00
Robby Findler
d983b9b7b0 add preferences:default-set?
original commit: 3cfe5c0c57a2682d5ae7f7805b8d87cfff0212bb
2013-11-09 00:21:10 -06:00
Robby Findler
c7410f766b adjust default autosave delay to 30 seconds (down from 5 minutes)
original commit: 8eafcaac4e253cea37c5edd9abc4c39aca561990
2013-11-08 10:20:14 -06:00
Matthew Flatt
12bb67f92a racket/gui cocoa: remove warp-pointer delay
Change suggested by Philipp Dikmann.

original commit: 73d6f4f8072c9b5e20a29d16b26f51a9cdd67533
2013-11-07 14:59:23 -07:00
Matthew Flatt
48384395f6 racket/gui gtk: make keyboard focus work in floating frames
original commit: f697f5530bed890c9c511910515d283c7cd187b7
2013-11-07 13:38:34 -07:00
Matthew Flatt
4cb523e858 racket/gui cocoa: make 'border handling more flexible
When buttons are hidden and/or disabled so that there's a change to
the only button that is visible, enabled, and has the 'border style,
then make it the default.

original commit: 4dd405d9c93148b55c530d7babe79f57608e9310
2013-11-05 14:57:57 -07:00
Matthew Flatt
c599205405 racket/gui gtk: log error when -singleInstance fails
Specifically, log an error when "libunique-1.0" is unavailable.

original commit: 89b89f91a313b5b43f47cc25ba710ed5a81b8c75
2013-11-02 20:37:36 -06:00
Asumu Takikawa
9b68d20d9b Fix doc contracts
original commit: 23a0823dec5f4c929d9ddbccb631979a9914e235
2013-10-31 14:29:13 -04:00
Matthew Flatt
45b1b8419c Mac OS X: support Retina mode
Seems to work for Mac OS X 10.9 (Mavericks), at least.

In Retina mode, a drawing unit corresponds to two pixels on
the screen or in a bitmap created by `make-screen-bitmap'.
In particular, a bitmap created by `make-screen-bitmap' is
actually twice as big in each dimension as requested, and the
bitmap is scaled when transferring to other drawing contexts.
When transferring onto the screen, scalings cancel so that the
result looks right.

Adds `get-display-backing-scale` to `racket/gui/base`, and
also `get-backing-scale` to `bitmap%`.

To do: add a way to set the backing scale of a bitmap. That
option will provide a way to give controls higher-resolution
bitmaps as labels.

original commit: fac247d340455328ab7e18db10546939bb067f4a
2013-10-31 08:50:22 -06:00
Robby Findler
28a22d2290 separate out state for spell checking string constants
from that for spell checking scribble {} content

original commit: ae623ed82d361acac88f3d69220bee7d15707220
2013-10-25 22:55:07 -05:00
Robby Findler
2fa00c8972 allow 'text' as a possible category for colorizer results
original commit: a940a47aafe0b67b9a01aefaf578d02aa7d443ba
2013-10-25 22:55:06 -05:00
Matthew Flatt
5dc1631bda racket/gui: default application-file handler requeues on active-frame change
When files passed to the default application-file handler cannot be delivered
because no frame is active or the frame does not accept files, then retry
when the active frame changes in the future (in addition to when the
application-file handler itself is changed).

This adjustment should fix a long-standing problem where files are
not delivered to DrRacket on Mac OS X.

original commit: 973e650fc707deb689d4dd233c10be0d3667a3e3
2013-10-25 14:29:10 -06:00
Sam Tobin-Hochstadt
9b32497f41 Split out redex-gui-lib and redex-pict-lib packages.
original commit: 0f0920bd5c927b38c3c61bcab3a1e15e461f71b2
2013-10-19 19:05:57 -04:00
Matthew Flatt
cf59648e4e remove some unneeded dependencies
original commit: d5f6b72e6976a36d6777709711765af1117c959b
2013-10-15 17:50:32 -06:00
Robby Findler
037087bdd7 support svg-bytes for 2htdp/image images
original commit: 6e062466a0828d9689db53f3f7782e571cc90ded
2013-10-15 11:30:33 -05:00
Robby Findler
aeb68d32ab Fix collapse-newline in the case that the insertion point
is at the first position of the text.

closes PR 14043

Also, Rackety.

original commit: 88d61e096c37344747d3ead6dcbe3f36e2aa27e8
2013-10-12 18:46:57 -05:00
Robby Findler
3b456234fd contracts & units are not getting along; unbreak the build for now
original commit: 154d940a677ba8869d961b132b7fc57e65ba0bed
2013-10-02 10:34:37 -05:00
Robby Findler
ea85845cb3 tweaks to try to get more information on a new error in case it happens again
original commit: 7037120be7fca22a322f7c4fd48cce1546f4a618
2013-10-02 10:03:00 -05:00
Robby Findler
4d32cd43cc improve line number redrawing
it now checks to avoid drawing the line numbers when
the invalid region is not lined up in the X direction

original commit: f03bc18f685377d9254c5a0a2837134e5f24aac9
2013-09-30 17:01:11 -05:00
Matthew Flatt
b805bfc4ae racket/draw: faster draw-bitmap when alpha < 1.0
In common cases, use Cairo's alpha support instead of cloning the
bitmap to apply an alpha.

original commit: c3eae40f4c3dcda84096a544885751205783c1cd
2013-09-27 14:43:25 -04:00
Matthew Flatt
c10054b96a racket/gui docs: use 'compact style for some itemizations
original commit: 3b669c3c826ed06aaffc36c7828c96153118f79d
2013-09-26 14:21:39 -04:00
Robby Findler
2935b5c48b Fix a bug in color scheme setup
original commit: 9f465c4eef0f855bdb7be79968de275f65428604
2013-09-21 13:15:23 -05:00
Robby Findler
a7f437686b add 'require' to the begin keywords
and tweak the example for the color schemes

original commit: bece398a63bb8ef9d3cc07dbf10495017d0c684a
2013-09-20 16:29:13 -05:00
Ryan Culpepper
c8f58db2e9 extracted rackunit-gui package
original commit: 8512c365128064f3c1d3bdee768ce387cb358303
2013-09-15 13:49:35 -04:00
Matthew Flatt
f637542456 rackt/gui gtk: fix focus handing of group-panel%
Closes PR 14019

original commit: 61e5633a8c1ab86e0335c56c2d3f5821f2e347af
2013-09-15 08:29:44 -06:00
Robby Findler
3fae6207cf audit framework begin-edit-sequence calls
original commit: 2b30be326505b7073d71292de8edc20259af152c
2013-09-14 19:27:08 -05:00
Robby Findler
d9ee4d600f adjust esc;w so that it clears the anchor
original commit: c0462d0fed6d37c1f038dde141021f63505902b5
2013-09-13 21:44:31 -05:00
Robby Findler
dd39016e04 color scheme improvements
- shorten the example text
- fix a bug that would prevent info-based color schemes
  to be set properly when drracket first starts up
- make the preferences dialog examples use the user's
  preferred font, not the default font
- move the documentation and info buttons to the top
  of color scheme section of the prefs dialog
- added a checkbox to go back to the default version
  of the color scheme

original commit: a37d5399ae5f2e0cd6ea165612b282f5978b27c8
2013-09-13 21:18:01 -05:00
Robby Findler
1a2ab9f02d tweaks to fix multi-line labels (via newlines) in button%
original commit: 54f283bf86c99b6c3ee9ba30d144468b9e97c0cf
2013-09-13 16:03:38 -05:00
Matthew Flatt
9133d9cbc3 racket/gui gtk: drop initial selection of list-box item
Make behavior on Gtk more consistent with other platforms.

original commit: 2ea55efeec603d6b0a0c74a745ed39791f46c43a
2013-09-12 18:37:25 -06:00
Robby Findler
efff874295 fix test:set-list-box! contract
0 should be allowed

original commit: 7384af40b660c632f2ebb8a73ffdfa64e2090e4b
2013-09-12 19:00:20 -05:00
Robby Findler
f86e16a744 some improvements to color schemes
- better overview docs (now in the drracket manual)
- something inside the drracket gui to get the list of the
  available style names and to send you to the new docs

original commit: da4bb5991f760fff53cd5e1792e6ee1d1fb2a961
2013-09-10 12:42:37 -05:00
Robby Findler
745d56c49a clean up get-current-color-scheme{-name}
original commit: 78fbe54da018738634248745f5de24bc1d1de86f
2013-09-08 11:23:33 -05:00
Robby Findler
19a6ddbf32 make the example in the prefs dialog pick up the background color
more accurately

original commit: 49bd79ddb88c56359b48203bf95a71ef8e46b713
2013-09-08 11:23:33 -05:00
Robby Findler
47922f0da3 make the 'name field of color scheme be more forgiving
and improve the example in the docs to be more fool-proof
for copy/paste

original commit: 8311b620b4aa2ce7ce566174efb258e704ee8463
2013-09-08 11:23:33 -05:00
Robby Findler
b6500eee00 add string-constants? and rearrange string-constants pkgs
the rearrangement moves the string constants documentation
into a package over by the string-constants implementation
and adds the string-constants (meta) pkg.

original commit: 8cdd106b87b028522ad01a5304709d010db3cb9d
2013-09-08 11:23:32 -05:00
Robby Findler
3dcb304a79 add support for color schemes to the framework and use it in DrRacket
original commit: 1186f23543ccb017e35b40ffc012aa971f21f764
2013-09-07 13:12:04 -05:00