Commit Graph

5042 Commits

Author SHA1 Message Date
Matthew Flatt
1caa7fb9aa move "props" test configs to test submodules or "info.rkt" files
The "props" file still has

 * ".rkt" `drdr:timeout` entries, needed until DrDr uses submodules and
   "info.rkt" files; although timeout information has been put in
   submodules for `raco test`, DrDr uses `raco test` in a way that does not
   enable timeouts, so that DrDr can implement timeouts itself (and record
   when a test times out)

 * ".rkt" `drdr:random #t` entries; not sure what to do with these, yet

 * ".rkt" `responsible` entries; not sure what to do with these, yet

 * ".rktl" `drdr:command-line #f` entries, needed until all ".rktl" files
   are disabled in DrDr

The following files were previously disabled for DrDr testing, but were
intentionally left as enabled with these changes:

pkgs/racket-pkgs/racket-test/tests/pkg/shelly.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/util.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/info.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/basic-index.rkt
pkgs/racket-pkgs/racket-test/tests/racket/link.rkt
pkgs/racket-pkgs/racket-test/tests/racket/embed-in-c.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/use-c-printf.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/c-printf.rkt
pkgs/parser-tools-pkgs/parser-tools-lib/parser-tools/private-lex/error-tests.rkt
pkgs/mysterx/mysterx.rkt
pkgs/mysterx/main.rkt
pkgs/games/gobblet/test-model.rkt
pkgs/games/gobblet/test-explore.rkt
pkgs/games/gobblet/robot.rkt
pkgs/games/gobblet/check.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/main.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/ffi.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/dbsystem.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/connection.rkt
pkgs/distributed-places-pkgs/distributed-places-lib/racket/place/distributed/examples/hello-world.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/htdp-pkgs/htdp-test/2htdp/utest/balls.rkt
pkgs/gui-pkgs/gui-test/framework/tests/test-suite-utils.rkt
pkgs/games/paint-by-numbers/raw-problems/size-calculation.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
pkgs/compatibility-pkgs/compatibility-lib/mzlib/traceld.rkt
pkgs/cext-lib/dynext/private/stdio.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
racket/collects/ffi/unsafe/objc.rkt
racket/collects/ffi/objc.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/tests-db.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-docs.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-catalogs-api.rkt
pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/redextomatrix.rkt
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-special-env.rkt
pkgs/planet-pkgs/planet-test/tests/planet/version.rkt
pkgs/planet-pkgs/planet-test/tests/planet/test-docs-complete.rkt
pkgs/planet-pkgs/planet-test/tests/planet/lang.rkt
pkgs/planet-pkgs/planet-test/tests/planet/docs-build.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/follow-log.rkt
pkgs/drracket-pkgs/drracket/drracket/private/dock-icon.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/tool-lib-and-sig.rkt

original commit: e226ad66c5fb6095d5702e5c47f5c7cf73e914f5
2013-12-30 12:15:18 -07:00
Matthew Flatt
398034cefa convert ".rktl" test entry points to ".rkt"
original commit: f6b8f734f3922c4cd6f353ab3d625f84d56a01f5
2013-12-28 19:55:31 -06:00
Robby Findler
fd02a72886 tighten contracts in a way that appears
consistent with their behavior and their
documentation

original commit: b59172989186bdce4d71069305adf19af8f530b9
2013-12-27 21:28:42 -06:00
Robby Findler
6a8a6e2f51 update HISTORY based on some of Jay's changes
please include in 6.0

original commit: 438942c0590841b030795d5df8db4c8409594cb4
2013-12-20 15:44:37 -06:00
Matthew Flatt
834968a294 fill in some missing history notes
Merge to v6.0

original commit: dc526f95f30d72c2a854f9e1c7520f04cbdaf0d0
2013-12-20 06:23:13 -07:00
Robby Findler
5dbe2aa0a0 add missing HISTORY entries based on my changes leading up to 6.0
Please merge to 6.0 (some of the history files already have
post-6.0 notes in them, but hopefully this patch still applies
cleanly)

original commit: 4408cdcfe4566fe3f0b7970f0dec7435076a5f70
2013-12-19 22:35:57 -06:00
Matthew Flatt
6d1824019f fixes for keyboard navigation and tab panels
The geometry used for keyboard navigation and tab-panel% instances
was wrong. That problem, in turn, exposed a potential infinite
loop in the function that computes the next tab position (when
geometries overlap). Fix both.

Closes PR 14255

Merge to v6.0

original commit: 37dd4fc2b0023d710e7e4d8c4fe35af67de326d3
2013-12-16 07:16:42 -07:00
Robby Findler
58301e4271 followup fix that should probably have been in a7c6dfa05
original commit: 65334e6931ae6bd0d38f0f6b9b2d724aa02b1353
2013-12-03 09:45:06 -06:00
Matthew Flatt
0957baea77 move setup/xref from "scribble-lib" to "racket-index"
The `setup/xref` library conceptually belongs in "racket-index",
and moving the library avoids a cross-package use of a private
module.

Merge to v6.0

original commit: d37e910169622364a10cdd34f00ade99ee216a77
2013-12-01 08:38:31 -07:00
Matthew Flatt
a2e217a846 racket/gui win32: reset canvas backing size when scroll bars change
Avoids a gray box at the bottom of the GRacket REPL window on
startup, or in DrRacket when a horizontal scroll is automatically
removed due to, say, hiding a interactions window positioned to
the right of the definitions window (where the definitions content
is narrower than the whole window but wider than half).

Merge to v6.0

original commit: 836f4cab20c9ac4e8084a0c9f97e10e82533809f
2013-11-30 21:00:37 -07:00
Robby Findler
5776659512 fix active keybindings computation
it was attempting to throwing out cⓂ️ keybindings under
windows but doing it incorrectly and so
also throwing out ~cⓂ️ keybindings

also, refactor so that this code is more
testable now (and add some tests)

original commit: a7c6dfa0584ed26952e11e4018763004f3962eb3
2013-11-30 21:33:14 -06:00
Robby Findler
1676025070 unbreak unix framework
original commit: 35055c3b00fd3aeddc685f0fdb6692adb6d528e2
2013-11-29 07:15:19 -06:00
Robby Findler
197a66e685 add support for alt-as-meta to the mac os x drracket
original commit: d95a6b02b04b764d7009a2712424c64d8f54f8ee
2013-11-28 21:20:50 -06:00
Robby Findler
156b23762f add is-function-added? is keymap%
original commit: fbb16de87131d6a1705288de55c529baa32b8eaa
2013-11-28 21:20:50 -06:00
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