Commit Graph

4968 Commits

Author SHA1 Message Date
Jay McCarthy
774eace17f Record information about other key modifiers on X11/GTK
In particular, Mod4 is used for the Command button when you run Linux
on Mac hardware. I don't know how to get the others, but added them
for safety.

original commit: e7f0f3587a5fee9b3b4185948485bb7df1ac3bda
2014-01-28 07:37:22 -07:00
Matthew Flatt
4040e4881d racket/gui: correct undo array resize for Emacs-style undo
original commit: ce63c5b75f7e66ae5a26d9a21e1877fb3e4cb70e
2014-01-28 07:32:44 -07:00
Matthew Flatt
8c45433983 racket/gui cocoa: fix atomicity of refresh
Atomicity was accidentally turned off in ca0418d47d.

For whatever reason, this bug seems to cause lots of trouble with
32-bit Mac OS X and not as much for 64-bit Mac OS X.

original commit: 13b1d0733a8e686e7b17bf33cfff9f43bcfd5604
2014-01-26 18:38:40 -07:00
Matthew Flatt
dd997cb2dc racket/gui win32: fix handling of @2x bitmaps
Closes PR 14310

original commit: 8a9a592c3ccc508f8547db5db918d008a611d385
2014-01-22 20:19:29 -07:00
Eli Barzilay
c3c380f16d 2013 -> 2014
original commit: c61a549840ee0ba5f2e5da56523fd3b26efeb895
2014-01-21 15:02:21 -05:00
Asumu Takikawa
f0c6f3da78 Fix arity of write-to-file method in text%
Found via TR. The two last arguments are supposed to be
optional but the method only accepted 1 or 3 arguments.

original commit: fca126bf01f990d5600655a879046c95230edc64
2014-01-21 10:32:48 -05:00
Asumu Takikawa
d301ee732a Fix editor canvas admin bug found by TR
The `grab-caret` method's argument is supposed
to be optional according to the documentation.

original commit: 14b133296f39532f12b51fb4bb259cd947c24d1a
2014-01-20 22:21:13 -05:00
Asumu Takikawa
0d70594ff0 Fix "ill-typed" overriding of get-view method
The interface says the last argument of this method
is optional. The bug was found via TR.

original commit: 7eb1a4ba42c4b494fc1c24394f5b2b1e463ee90f
2014-01-20 22:21:13 -05:00
John Clements
4e35cbbab3 doc clarification on init-auto-scrollbars
original commit: 14458fdf4379136be342d851ec51656a3ce48c4c
2014-01-15 13:04:38 -08:00
Matthew Flatt
f787d05db3 racket/gui win32: fix for backing-scale
Closes PR 14278

original commit: 2d2cd2744cd9a2f7c6e5e238ffbe36203c7a04fb
2014-01-08 23:08:14 -06:00
Robby Findler
317c02acb5 strengthen shortcut-prefix contract
(technically, strengthen the way it is written in the docs; it
was already being enforced that way)

original commit: 370418ac2e9f00a981422bee0551d1603b246005
2014-01-08 13:42:54 -06:00
Matthew Flatt
016b64ff82 GC bitmap @2x
original commit: 685859b40868b5213492112ecaac2e7f30c5e9c2
2014-01-06 19:02:20 -07:00
Matthew Flatt
ea1f6ecc1b racket/gui cocoa: fix "&" in labels
As of Mac OS X 10.8, `setTitleWithMnemonic:` doesn't strip away "&".

original commit: 75dade281885f7b654ee49e93e1b6349b319c1c2
2014-01-06 19:02:19 -07:00
Matthew Flatt
9308ebd949 image-snip%: preserve bitmap backing scale on save & load
original commit: 20cec1d43f382f57f78187ca3a2eeeae2e068bef
2014-01-05 17:13:29 -07:00
Matthew Flatt
0e329922cd mrlib/close-icon: revise, especially for @2x
Modernize by using alpha instead of constructing masks, etc.

original commit: b1acdfba8655803f96a2e2567df150491c0a6ff3
2014-01-05 17:13:29 -07:00
Matthew Flatt
392291938f dc<%>: add alignment scale
Partly reverts d8a438231f by making the alignment scale always default
to 1, but allows the "fix" (for programs that was drawing to a bitmap
with backing scale 2 to be like drawing with scale 2 into a bitmap
with backing scale 1) by setting the alignment scale to 2 for a
drawing destination that has a backing scale of 2.

original commit: 582e992501c8e6833a82412235731a9d0416b3b9
2014-01-05 17:13:28 -07:00
Matthew Flatt
54f8bf10a5 correct backing scale on Retina canvas & derived contexts
One consequence is that drawing with a pen of width 0 into
a canvas% object on a Retina display draws a line that is
half as wide as a pen of width 1.

original commit: 7dc63162728b695b93a28b047dfafc841e4302e4
2014-01-05 17:13:28 -07:00
Matthew Flatt
147a4d67ee fix alignment for a drawing context with a backing scale
original commit: d8a438231f2cdc75a583f06fd68128fb43ba939c
2014-01-05 08:54:52 -07:00
Matthew Flatt
2870fd90d7 Racket splash/about logo @2x
original commit: aaea2e4fa164fe26bdb5b4248b4622f198ba1560
2014-01-03 17:57:56 -07:00
Matthew Flatt
de05ac2f1c DrRacket: enable @2x bitmaps for tool icons
original commit: 037a211f9a29d02a4e461dd561879790e4280a99
2014-01-03 09:00:41 -07:00
Matthew Flatt
9b2b38d74d racket/draw: add a backing-scale argument to bitmap constructors
Generalizes backing-scale support created for `make-platform-bitmap`
and Mac OS X in Retina mode so that any bitmap can be created with
a backing scale (except monochrome bitmaps or bitmaps with masks).

original commit: 5e903441a4ab76305d4768ae96b9fef827bac860
2014-01-02 19:04:22 -07:00
Matthew Flatt
7a256444f2 racket/gui cocoa: preserve resolution of bitmaps as control labels
This change is mainly for Retina display mode.

original commit: 4f86f1de6232250d7f5debbd5cae02674d2ac106
2014-01-02 19:04:22 -07:00
Matthew Flatt
3f0b09675e copy drdr:random command props to test configs
original commit: 48a85125dae2db557443daaa7893f84abbd15f93
2014-01-01 08:21:31 -07:00
Matthew Flatt
f38a629b01 copy gracket command props to lock-name as "gui" test config
original commit: 31f80b4ae20a4a410859ce132220c75298bd56de
2014-01-01 07:27:15 -07:00
Matthew Flatt
4351718394 copy responsible info to "info.rkt" files
It seems more ideal that `pkg-authors` would be specific enough
responsibility, but our existing allocations of responsibility are
more fine-grained, and we keep them for now.

original commit: 19f8f30f63ece380105f69796c046c7a00aa4f97
2014-01-01 07:27:15 -07:00
Matthew Flatt
7944363893 fix some test properties/submodules
Mostly, revert accidentally removed ".scm" and ".ss" entries.

original commit: d33638248ed67836ef8e0f79e855abfabbb4b3db
2013-12-30 16:22:30 -07:00
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