Commit Graph

4786 Commits

Author SHA1 Message Date
Robby Findler
a4045a2c49 avoid ugly nested conds
Thanks, Laurent!

original commit: a8111ce91b5a8a1343310152c2b56323efe3d2fa
2013-06-12 05:18:46 -05:00
Robby Findler
60a84276cf add docs for text:column-guide-mixin and text:column-guide<%>
original commit: b0fd5016a50b0f9dee218eb5b1f0373ebc77526f
2013-06-12 05:18:46 -05:00
Robby Findler
3a989db884 add a column-width guide; defaults to 102 characters, but disabled
original commit: 09d636c54573522449a6591c805b38f72b6f7da8
2013-06-10 22:51:26 -05:00
Robby Findler
cc18191061 adjust DrRacket to still start up if all of the splash-related images
are broken

I don't know if this really closes PR 13794 but DrRacket does now
pass the error given in that PR.

original commit: 571bb5fb1ac7fdc16e851720c88e81efbb8456fb
2013-06-02 21:46:21 -05:00
Nadeem Abdul Hamid
f4e1cabfbb Improve auto-parens mode implementation and behavior
including behavior of double quote typed in a string
so that it results in the string split into two strings or,
in case part of the string is already selected, three strings,
where the selection is retained in the latter situation.
Also redid implementation of insertion of open+close characters
so that it doesn't require adding in tokens to the editor,
testing the resulting state, and then undoing that to decide
whether to insert the pair or just the opening symbol.

original commit: f79dfb4cafa335ea378928ad1abe2b9bf9500b34
2013-05-25 08:40:35 -05:00
Nadeem Abdul Hamid
6ffc687144 Tweak auto-parens behavior of double quote typed in a string
so that it results in the string split into two strings or,
in case part of the string is already selected, three strings,
where the selection is retained in the latter situation.

original commit: b71e44ea9a5902f2293ba0ec89167ed37b1880d7
2013-05-25 08:40:35 -05:00
Asumu Takikawa
d544ca03c0 Fix framework doc typo
original commit: a3d4305ddaa1c48fd15aa43c281e93a9143cf9d8
2013-05-15 21:03:42 -04:00
Robby Findler
1d013f05ee move the slideshow/pict library to its own collection
also, adjust all of the requires in the tree to point to the pict
collection

original commit: 9932ef33f77ab8bd9751568b4ef2d1b1e3cf4254
2013-05-12 22:07:58 -05:00
Robby Findler
bacdd3c312 add #:close-button?, #:canvas-min-width, and #:canvas-min-height
arguments to in-terminal

original commit: 19c1c02823fd376cb76f043a5e44ab84ebd42e27
2013-05-11 19:47:45 -05:00
Robby Findler
913484f039 allow #f as the min-width / min-height init arg to area-containers
original commit: 15408f0c7b7734506dca32700ca70e4ec1ff20a0
2013-05-11 19:47:44 -05:00
Matthew Flatt
3c894e99d7 racket/gui gtk: catch key events at frame level
In case no subwindow within a frame can accept the keyboard
focus, now the frame itself can accept them (for consumption
by `on-subwindow-char').

original commit: a80e04136be1c0e84c40692870977dc4cd13bf05
2013-05-11 09:11:45 -06:00
Robby Findler
61acd2eb5d DrRacket now saves the font size preference on a per-monitor-configuration basis
original commit: 9a7af8c84033f3bd276a2717c3dc37f6076b6e83
2013-05-10 08:21:00 -05:00
Robby Findler
66ccb3cf19 tighten up the contract for get-display-size and get-display-left-top-inset
original commit: 0c96d2ca9559e77c694670dff84ff7e235346a58
2013-05-08 15:15:32 -05:00
Asumu Takikawa
ee6f7c89a7 Scheme -> Racket in docs
original commit: db1141b564e03b7e158426f85f21e245f87ae64b
2013-04-29 17:05:55 -04:00
Matthew Flatt
1c15f267cd racket/draw: fix in-region?' method of region%'
Merge to v5.3.4

original commit: 917ec51eeebcfe2e2a0057787cd3768b96df1fdb
2013-04-26 16:28:29 -06:00
Matthew Flatt
7e405bffea racket/gui gtk: preserve button font on label change
original commit: 306194e9fa987ad80a4aeb5f1312ffa72e9b5e11
2013-04-25 06:05:22 -06:00
Matthew Flatt
421ce99a49 ffi/unsafe/objc: remove -A'/+A', add `#:async-apply'
Another run at the problem 57516164de was meant to solve. The
new solution just gives up when a `drawRect:' method is called
in the wrong thread, which might create refresh glitches but
avoids a deadlock in the case that the Racket thread is blocked
on the update happening in the foreign thread.

original commit: ca0418d47d62426a4321ddfe7001466f7d87739e
2013-04-23 13:48:15 -06:00
Matthew Flatt
d4afe33b87 racket/gui cocoa: fix `enable' on window whose ancestor is disabled
original commit: 07fd3676d029ab7f4a815eb14d4f0d744c186ad9
2013-04-23 13:48:15 -06:00
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