Commit Graph

4968 Commits

Author SHA1 Message Date
Matthew Flatt
59fc6cc987 racket/gui cocoa: fix swapping of buttons with the 'border style
Register a button as a default button every time that it is shown,
so that multiple buttons in a frame can have the 'border style
(as long as only one is shown at a time).

original commit: a9cc79c89b438cf8eda9b66541f1cfaf6b3c1e4c
2013-04-20 09:38:56 -06:00
Matthew Flatt
41201422ee mrlib/terminal: create embedded terminal in a container sequence
original commit: 82457258e2f555cd6bc77cd3bc3e61b9e40df7f5
2013-04-20 09:38:56 -06:00
Matthew Flatt
b9fc735602 racket/gui cocoa: avoid focus-setting loop
original commit: fd8bde94da1efb2195bbeeb55ad3c9936a5962d7
2013-04-20 09:38:55 -06:00
Matthew Flatt
cc4aee8e82 mrlib/terminal: generalize to allow an embedded terminal
That is, instead of always creating a new frame, allow the terminal
GUI to work as a panel.

original commit: b7f17b389a9b963defc1befc199a7f38f8d34014
2013-04-19 15:30:36 -06:00
Matthew Flatt
47297a882e fix problem with switchable-button tool tip
Closes PR 12562

Merge to v5.3.4

original commit: ff580c212c150e91822c2cdeb8be0f86caa366bf
2013-04-19 08:19:47 -06:00
Tony Garnock-Jones
4c02357562 Complain visibly when cannot load GL shared libs, instead of swallowing error.
original commit: 38fffd35825b7d7e1fad5a430fc905240d2596e5
2013-04-19 07:54:30 -06:00
Matthew Flatt
475b2cd1a7 ffi/unsafe/obj: add +A' and -A' method modes
On Cocoa, a view's `drawRect:' method can be called from a
heartbeat thread that animates controls. Such a call happens
rarely for a `canvas%' or other class where `drawRect:'
is overridden, but since it can happen, ensure that the
callback runs on the Racket thread.

original commit: 57516164de983a9245bfee88cbf87b9ea5c13a25
2013-04-19 07:54:30 -06:00
Matthew Flatt
fff7d03713 racket/gui cocoa: fix `list-box%' visble-cell calculations
There were especially problems with header columns, but
also intercell spacing was not taken into account.

Merge to v5.3.4

original commit: 44d59702c0b22624f8e0043ccf1c5e4f90ed9c4b
2013-04-16 08:58:19 -06:00
Matthew Flatt
8f9d776a90 racket/gui: gl-config fixes
original commit: 69707c9255f9f05f4184784de34abec4662ae0c4
2013-04-12 18:29:01 -06:00
Matthew Flatt
188f87460b racket/gui cocoa: delay `on-paint' if a GL context isn't ready
The relevant `on-paint' call is one that is forced for a GL
canvas to try to draw a frame's content before the frame is
shown. Sometimes, thread scheduling would let the frame get
sufficiently initialized at the Cocoa level before the `on-paint'
call happened, but sometimes not.

original commit: 94208558793118ed2bc30b2c6f9926204eabf6f8
2013-04-12 14:58:53 -06:00
Jay Kominek
04c0da4c30 OpenGL context sharing
original commit: 0562755be9714940d0e88fe7f1bc53dc3e7e9aa8
2013-04-12 14:58:53 -06:00
Matthew Flatt
8a7dcf0638 racket/gui: make list-box% columns more consistent across platforms
Cocoa: use ellipses instead of line wrapping
Gtk: allow column sizing below title width

Merge to v5.3.4

original commit: 33700427f26b14704dc4e4f315e36b6cc597e219
2013-04-12 06:36:51 -06:00
Robby Findler
981047ae24 fix improper fraction display
closes PR 13558

please include in the release

original commit: d9adb4e6e987124571f043a28be682b465435aa7
2013-04-08 13:40:55 -05:00
Robby Findler
7f9d693dc3 add edit|copy and edit|select all menu items to mrlib/terminal frames
original commit: eb7c5ad84cdd2aafa252b99d5af42b469629c7ec
2013-04-05 10:22:33 -05:00
Robby Findler
6096b0de67 adjust the package installation menu item in drracket to use mrlib/terminal
original commit: 8246d073c01e1eef73d2621f3993b22fa9ed24c3
2013-04-04 11:10:30 -05:00
Robby Findler
be27fb8108 refactor the plt installation code in drracket to pull out
the GUI wrapper around command-line like utilities

original commit: ecf2b16bf062f638d5a5c07d415503e0b7ca0ee6
2013-04-03 22:23:26 -05:00
Robby Findler
83ccfa6793 hide the testing of the close parens with an edit-sequence
original commit: 77a1b55c32a08484b55cec7796c6e93fc9825af8
2013-04-02 21:26:43 -05:00
Matthew Flatt
88c755baf5 racket/gui: double-check size on attmpt to set editor scroll
A scroll request could fail if a resize notification is still
in flight (i.e., queued but not yet executed), so double-check
the size on a scroll request.

Closes PR 13582

original commit: bfc9c41358face5c6d79bad591b842e7f5dc38e8
2013-03-31 06:39:49 -06:00
Matthew Flatt
551293044c racket/gui: fix auto-scrollbars for editor GUI
It's possible to go from a state where one scroll bar is needed
(vertical or horizontal) to a state where each scrollbar is
needed iff the other scrollbar is needed. In that case, the
auto-scrollbar algorithm couldn't find either fixpoint and
would loop forever.

original commit: b041a151e61727124b8d1c50f72fcd6d73319f13
2013-03-25 05:15:24 -06:00
Matthew Flatt
0b80cd4253 racket/gui: add warp-pointer' to window<%>'
Removed the method from `canvas<%>', where it was never implemented
with the `racket/gui' reimplementation.

original commit: e0486a7cf0e0b24bc4d8cb6f3fe32ec6c68b1859
2013-03-19 15:53:13 -07:00
Robby Findler
8e5b3727db tweaks to option contract usage
original commit: 551150e805048fcad43217e9e265b433c037a2a0
2013-03-15 15:38:13 -05:00
Eli Barzilay
61d0fac8f4 Fix lots of indentation mistakes.
(Found by my ayatollah script...)

original commit: af6be85ff576e475753a46bd3f1690eb8bf88a28
2013-03-14 10:55:47 -04:00
Robby Findler
79501a56b0 trim the list of new dots down to those that our latex
setup seems to handle

(and actually add them to latex-render.rkt ...)

original commit: 11969cdfa6188b254383882d73a1c1fe7997ac65
2013-03-13 10:13:34 -05:00
Robby Findler
16565da8e0 add various dots to tex-table and thus drracket keyboard shortcuts
original commit: a00bcfd16e0459eba60d8af9d404337fd54cb875
2013-03-12 14:53:15 -05:00
Robby Findler
7582df87b6 improve the way the font size callbacks work, wrt to interactivity
original commit: 443f99853191ca45de44a201a92af53a7f7034b5
2013-03-11 18:53:40 -05:00
Robby Findler
f7c935436d added a keybinding to center a line within its cell in a table
original commit: 635efe78a0f3bc4b72d1030e2af6d816968bf253
2013-03-11 18:53:40 -05:00
Robby Findler
5b59b913f0 extend the lexer <-> framework's color:text api
to let lexers say "call me again before you change the buffer"

also, use this in the 2d lexer

original commit: 761054890d8207d7689cce825d0fc777d15b1091
2013-03-10 20:17:20 -05:00
Robby Findler
3bdf5e116d fix a with-handlers to avoid catching break exns
original commit: c7810ba2aeb5588707c1dfc39962a89b529b0e80
2013-03-05 22:39:34 -06:00
Robby Findler
2c493915e4 remove a use of normal-case-path
closes PR 6086

original commit: be0e32b2243495e512a75b32e7c31ac0d7b97785
2013-03-02 20:41:51 -06:00
Robby Findler
ce58e57eeb add macports default path as a place to look for aspell
original commit: 3d0af847b6dfb1d51e28d34c1d3fc85a585cb77a
2013-02-28 20:45:23 -06:00
Robby Findler
7cba5db017 adjust syntax browser to work better for literal hashes and vectors
closes PR 13537

original commit: 4b8813bb0e5ff5934c0ab1443fee7c245a757bb5
2013-02-23 20:26:57 -06:00
Robby Findler
2d510cb940 add a keystroke to widen a rectangle
original commit: 814b9e490cfea51713c5556f1540737069bd02e5
2013-02-23 20:12:56 -06:00
Robby Findler
7c6bc93742 add a contract on the interaction between the module-lexer and the
lexers it defers to

also, remove the checks in color.rkt in the framework (they are not
all covered by the added contract, but they mostly are and when they
aren't, most of those times are using the heavily tested racket-lexer)

original commit: b0343aa9f02f0024cba7a61db3bcf4165696dd85
2013-02-23 14:35:25 -06:00
Robby Findler
ac33354f66 fix the use of impersonator-ephemerons in the framework preferences library
original commit: 5eddac7482af5fdad8c9d5f7ffdd7996a861dbc0
2013-02-20 21:13:02 -06:00
Asumu Takikawa
d72bcd0a42 Minor doc fixes
original commit: db4a1632e530de47505a6a0858666637c1dc0f6a
2013-02-19 16:36:16 -05:00
Asumu Takikawa
643ab7d2f1 Rackety
original commit: ea0c14dac2966400f5cf26b3ca24367404059f22
2013-02-19 16:36:16 -05:00
Robby Findler
9de9c66763 use impersonator-ephemeron to allow a
real contract on preferences:add-callback

original commit: 164a5831b8c00afafc0aa73a8865cd48bee6dfb5
2013-02-19 13:52:42 -06:00
Matthew Flatt
38f9f7540b racket/snip: fix style-list%' notify-on-change' and contracts
The method uses the new `impersonator-ephemeron' function to
retain a callback as long any value that it impersonates
is reachable.

original commit: dbdfd4236f1f759a2c6706901dad25bd46998509
2013-02-18 17:01:11 -07:00
Robby Findler
5c22470224 add parameterize* to tabing and smart opening square bracket pref defaults
original commit: e720d1df923080518d5a58a71b04d9cd0014aa96
2013-02-18 13:38:34 -06:00
Robby Findler
42bcf271f0 add gc log following info to the drr performance monitor
original commit: fbeecdc1aac536d7f480d92c36eb127aab3e5ab6
2013-02-16 07:39:33 -06:00
Matthew Flatt
da137d9b9f racket/gui: fix contract of set-value' in gauge%'
original commit: 0c37849f81e6a75b38b119b16aa3b09db57bae37
2013-02-15 16:02:53 -07:00
Matthew Flatt
5a56af0033 racket/gui cocoa: fix over-eager refresh for 'gl canvas%
original commit: d5c1a75e38fb9536f7d9edeee1693e4e7aff1419
2013-02-14 19:47:40 -07:00
Robby Findler
3fd96440ad try to be slightly smarter about invalidating the green region
in the line numbers when it moves around

specifically, if the before and after green line are right
next to each other, then put it into a single edit sequence
(which unions the invalidated regions); if not, then we
may be jumping far away, so invalidate the two regions
and redraw them separately

original commit: ca8ad3b88b38034e4dac6715511a749581d0c059
2013-02-14 19:51:08 -06:00
Danny Yoo
a57a867cf9 Include zero-width-space in string-normalize.
Closes PR 12683.

original commit: 9ed78f275240694e4c1c9b876be70993e0b7c84e
2013-02-14 13:24:31 -07:00
Robby Findler
9ecd2eb171 add for/set and it's varieties to the default prefs
original commit: 7dff18c385ac960bd6d794ccb9b58f42d510cdfd
2013-02-13 10:50:06 -06:00
Matthew Flatt
e9293fc3a8 racket/gui: fix some contracts in docs
original commit: 5c896395cd83d51d34d154f981063971f3851559
2013-02-12 14:17:57 -07:00
Robby Findler
73787f6170 clarify colorer docs
Also, some cleanups of the code and
make the syntax-color/ library docs
point to color:text<%> instead of
color:text% (as the interesting information
is attached to the interface, not the class)

original commit: 1420ce4ed2667a5f8562eefe86479dae150c90eb
2013-02-10 10:30:28 -06:00
Robby Findler
0bce7bb082 tighten up the checks in the place where the framework receives
values from the lexer (for syntax coloring)

original commit: 246939f781cdfb1aed8f86b25be9ca9717e0945a
2013-02-09 20:42:34 -06:00
Robby Findler
33aa1d05b3 Adjust keybinding code to fall back from
get-active-canvas to get-canvas

Unclear if this is a bug in get-active-canvas or not

closes PR 13507

original commit: 2c35a98ad89b6f59c5f7c87b7f441528da77ad11
2013-02-09 14:58:21 -06:00
Robby Findler
8e02345d3e move dir-chars.rkt to unstable/2d to unbreak dependencies
original commit: 6c93cfea56b6406f77f5a4e267132cdbcbd6e468
2013-02-07 10:16:10 -06:00