Commit Graph

5207 Commits

Author SHA1 Message Date
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
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