Commit Graph

4295 Commits

Author SHA1 Message Date
Robby Findler
eb3bb743f5 2htdp/image
normalize the internal representation of bitmaps so it always uses an alpha
bitmap instead of sometimes using a mask bitmap and sometimes using alpha.
This also fixes a bug where the library would get consfused when it saved
a bitmap to a file, since it didn't record if it was an alpha bitmap or not.

This improves the save files that contain images, cutting the size for bitmaps
in half (bringing the drracket save file down to a mere 25x larger than the
png file format for the example I was using...)

original commit: 1f02106318edba9c011afaf24d6ef34a3081c9ff
2011-08-22 19:09:52 -05:00
Robby Findler
400906e376 use the pre-multiplied alphas when comparing images for 2htdp/image
original commit: 8ccf50b84bf3b25b2c4ddbe4dbd6ef088c6a9cd7
2011-08-22 19:09:50 -05:00
Matthew Flatt
0fb6c62e45 fix same-scaled test
original commit: 32da8e2b1f60e9148e47df7813ae945bc70a7958
2011-08-19 13:15:36 -06:00
Matthew Flatt
93e964e2ff gtk: fix frame for text-field%' and other canvas%'es
original commit: 8264e7758539bc2e27385e77839dcfce2ef38948
2011-08-16 08:12:31 -06:00
Eli Barzilay
6c5aad0685 Lots of documentation formatting.
Started as fixing misindented definitions, then more indentations, then
a bunch of similar things (square brackets, huge spaces at end-of-lines,
etc).

original commit: d61eb53686f735b979a60dc6f9efd3d2aa9777d9
2011-08-15 07:50:04 -04:00
Matthew Flatt
556a322e3c implement 'border style for `panel%'
original commit: 461af202c5cfa17351ff3758ab29f9eda61cf38d
2011-08-13 07:00:51 -06:00
Matthew Flatt
ce6879c013 fix refresh' on window<%>'s other than `canvas%'s
original commit: 456e9befd3959cfab1e74943fb99eb4552c97313
2011-08-12 17:03:28 -06:00
Matthew Flatt
1ff4328f2b cocoa: fix sign on `get-display-left-top-inset' x result
Also fix frame placement on screens other than the main screen.

original commit: 3ab067bc338406848e937f388343fb1e2ffa3074
2011-08-10 11:13:58 -06:00
Robby Findler
aa28c178f8 change some prints to fprintfs to make it easier to remove debugging printfs from this file when checking in
original commit: dc326c9501de192215a4c81f538a8614a024e632
2011-08-10 12:02:49 -05:00
Robby Findler
15e5457246 fix the initial frame position code for the multiple monitors case
original commit: 83e70af00661a4b42d220bccdfd5e30d6431e53d
2011-08-10 12:02:49 -05:00
Robby Findler
19763add70 fix the auto-square-bracket thing for with-syntax
closes PR 12096

original commit: 40c68df514e54212113db57cdd7855ec7bd51098
2011-08-08 19:30:13 -05:00
Robby Findler
48e71d341a manage the state for delegates better (used by the drracket contour window)
closes PR 12094

original commit: 38596a9b581c06a7bdc8faba26c8e0cfb1b09492
2011-08-07 18:39:22 -05:00
Robby Findler
ce23305a06 when moving the insertion point due to a search, use call-as-primary-owner
to scroll the right editor
   closes PR 12080

original commit: fc50be1caaa47ee315269b7254a742b4717b8350
2011-08-05 23:33:51 -05:00
Robby Findler
59afeb677a adjust the tabify and tabify-selection methods so they do nothing when the colorer is frozen or stopped
closes PR 12087

original commit: a090a0e903eee77890d7355e0861bfdbec9e2750
2011-08-05 21:39:31 -05:00
Robby Findler
a99c233ce7 start a section for documenting the symbols that DrRacket passes to a language's get-info proc
add docs for a few of these, notably the syntax colorer

original commit: 0c6bc11ac3fba7b0c06841b6ae9a587286045a09
2011-08-04 21:40:29 -07:00
Matthew Flatt
81ebd9a26b gtk: set app name on startup
Closes PR 11896
Closes PR 11408

original commit: 941dacd966913ebbeca150e0b5cd193788b5bd90
2011-08-04 09:27:05 -06:00
Matthew Flatt
14aaa67a74 remove unsupported MDI styles and method
Closes PR 12042

original commit: 71621bfd72f6ac86b2952da64243b9c19ca5581a
2011-08-04 08:02:54 -06:00
Matthew Flatt
2b844e66dc cocoa: fix list-box scrolling
Closes PR 11948

original commit: 1bc8978ce84fe0af9ef0d1a889ecdee490dc7a2d
2011-08-04 07:38:10 -06:00
Matthew Flatt
ec385591fa gtk: fix frame position tracking
Closes PR 11931

original commit: cdf20857039ab5e235629e80c61bc7296f77e5d0
2011-08-04 06:45:18 -06:00
Robby Findler
b1c27e35c2 get rid of a broken attempt to optimize the 20,000-ft overview refreshing
closes PR 12083

original commit: 29a843ac379438a6b7540716c68537a09c62ac51
2011-08-03 09:58:23 -05:00
Matthew Flatt
7bb7496c79 gtk: fix refresh freeze/thaw and reparent interaction
Closes PR 11947

original commit: 37c43c23d62826f7d78fab46ccaa8e9f10bc851d
2011-08-02 20:00:56 -06:00
John Clements
bc8fb85de2 unimportant tabbing fixup
original commit: e178dbc4f245cbeed487e8a8efd62fbab13ec8e0
2011-07-28 22:51:00 -04:00
Robby Findler
cd48f8a314 adjust the control-s keybinding so that it behaves like the menu shortcut
keep the old keybinding on esc;% (only under linux)

original commit: eba9c56d8cd7ea14485d9ad0be4586586b4aa36f
2011-07-25 13:40:15 -04:00
Matthew Flatt
63501f5363 add 'no-focus style to `editor-canvas%'
original commit: f13a669d056358ac2b50e6a8a2907e40045593a6
2011-07-25 11:30:23 -04:00
Matthew Flatt
7556774742 cocoa: fix problems with sheets and focus
Avoids a problem with the file dialog when a sheet is the
current "main window" (Cocoa terminology); when the file
dialog is closed, both the sheet owner and the sheet
become the main window (in that order), so that when the
sheet goes away, the sheet owner doesn't become the main
window as it should. It seems like a Cocoa problem. The
workaround is to hook into the callback that says a
sheet went away.

Closes PR 12073

original commit: 69f7e912d2bffd638123475ce0041e6188ab5f02
2011-07-25 11:30:22 -04:00
Matthew Flatt
26d947d5eb work around win64 drawing problem
Merge to 5.1.2

original commit: 8711aa6c5d819899fce1ff06f5bf60fe01cc10cb
2011-07-22 07:51:01 -06:00
Robby Findler
ad8348a51d fix the png conversion code for 2htdp/image images
closes PR 12061
  please merge to the release branch

original commit: 56b82ba83c5d29afaafbed602c8e14873a14f953
2011-07-22 08:09:17 -05:00
Robby Findler
21ea7fb026 change autowrapping preference default
please merge to release branch

original commit: 2a78ea97237e93e980b8a4ef16563882d8f03822
2011-07-19 16:17:04 -05:00
Robby Findler
3b8bdc5ec1 adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
(also fix various issues with that code and unify the framework and drracket way of doing this)

original commit: 3fa2cc0d6775f1793a5068295e0370cadb70cfaf
2011-07-19 16:16:50 -05:00
Sam Tobin-Hochstadt
9a24ed8a3a Pass the correct number of arguments to `display-size'. Closes PR 12062.
original commit: f67d46cd2fee984927344c161f1a91301dbe4454
2011-07-19 17:04:51 -04:00
Matthew Flatt
eb2aca3480 win32: fix is-maximized' in frame%'
Merge to 5.1.2

original commit: 255549c8c8fb751a2128478179cb078a70218f3b
2011-07-19 08:55:33 -06:00
Matthew Flatt
e11437eb9e cocoa: fix image paste
Closes PR 12028

 Merge to 5.1.2

original commit: c8b37633599a3db93099daec94ce28d399c1b696
2011-07-19 08:12:39 -06:00
Matthew Flatt
15bfdb93aa add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow

original commit: 23a2a075eaa636b27ec0700a054d49989ae53a0e
2011-07-18 20:15:15 -06:00
Matthew Flatt
bd5f04dc44 gtk: `get-display-size' reports main monitor only
and the same for `get-display-left-top-inset'

original commit: b096fb7503501961f7f42df162750823ea772f3d
2011-07-18 19:59:05 -06:00
Matthew Flatt
d71e63c4b8 change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK
because HINT doesn't works as expected, and the problem it
 seemed to solve at one time (slow resize in DrRacket) seems
 to have been fixed some other way. GDK_MOUSE_MOTION_MASK
 isn't needed, since GDK_POINTER_MOTION_MASK covers it.

 Merge to 5.1.2

original commit: 5edc0c70afc1e2aeada096f0eb50c92c0f9d8b65
2011-07-16 14:30:08 -06:00
Matthew Flatt
8941903f41 fix void result to match contract
Merge to 5.1.2 if Robby agrees

original commit: 5e0d6e0deed790c8a5104475beb26a156704ec59
2011-07-16 14:30:08 -06:00
Asumu Takikawa
18301de691 Fix a few framework contracts to match code
original commit: 6c3284a828f58475a9a8cd6cda6665864b156d3b
2011-07-14 18:15:48 -04:00
Robby Findler
725d1f344a fix bad contract
original commit: 2fb03852b34e326a870f6647ac4b39829e31f53f
2011-07-13 06:47:20 -06:00
John Clements
61deb48a44 added automatic parens preference
original commit: b14ac37d99858854dfab1e6881c750c7534f8465
2011-07-12 12:23:08 -07:00
Matthew Flatt
21db4d7457 git: fix "&" and "_" handling in labels
original commit: ff49859c800cff72f662308475aafda098f20950
2011-07-06 09:54:57 -06:00
Matthew Flatt
139a564f07 cocoa: fix "&" handling in menu-item labels
Closes PR 12025

original commit: de54efc84e92e46f549dfdda82102ffc39df72b5
2011-07-06 09:54:41 -06:00
Guillaume Marceau
9990536bf8 The new error messages now pass the tests/language-test.rkt suite
(except for contract runtime error messages in levels higher than
 beginner.)

original commit: 6eea5b1793dea07589ba89fec596757aa1127784
2011-07-06 00:19:26 -04:00
Eli Barzilay
950c968e77 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Ryan Culpepper
856c27560b docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names

original commit: 1b702a2ae32aba835f7467ced6b203902db0ccd9
2011-07-01 17:16:53 -06:00
Matthew Flatt
371f2ca494 add ffi/winapi; use it in mzlib/os
Closes PR 12007

original commit: 59731368fc7d90c1177c60ade3ec1f8c4fb0a4ae
2011-07-01 10:42:17 -06:00
Eli Barzilay
f1b2ecf4aa Get rid of "defaultly"s.
original commit: 78dacef817e0349071fb0300cf46b800ef58bfa5
2011-06-28 02:11:24 -04:00
Eli Barzilay
ef528b7fc5 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)

original commit: 40124a0619da5e187d95aeb1dde237f05d6f9c6b
2011-06-28 02:01:41 -04:00
Eli Barzilay
b60716e547 Finish converting scheme' -> racket'.
Everything compiles fine now even if the compatibility bindings are
gone.

original commit: a38f384a002ccf6c3cbaab813fe080ca226e4a59
2011-06-28 00:45:38 -04:00
Robby Findler
73e0722fcd added get-pos/text-dc-location method to editor:basic in framework
original commit: f93ff4de26248f6d3b2fd96c4a9da0c470c1494e
2011-06-26 15:49:55 +08:00
Eli Barzilay
ec12cbefed A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.

original commit: ac26fe75546b5182d78f18c2cd882f0f440849e2
2011-06-25 04:08:47 -04:00