Commit Graph

38 Commits

Author SHA1 Message Date
Matthew Flatt
230463fa3d racket/gui: fix problem with recent edit-sequence change
Restores undo support in DrRacket, for example.
2012-05-05 22:09:13 -06:00
Matthew Flatt
48f7ddafe4 racket/gui: fix some concurrency problems `text%'
Changed `open-output-text-editor' to put its additions into
an edit sequence to better work with threads.

Fixed problems in editor-canvas refresh and resize events, where
the editor's refresh synchronization wasn't used properly.

Fixed race conditions in the the protocol that is used to separate
refreshes and edit sequences.

Related to PR 12749
2012-05-05 10:32:05 -06:00
Eli Barzilay
2b76d9e5b0 A bunch of scheme' -> racket' conversions.
I think that there are no user-visible changes from these changes.
2012-04-19 16:02:03 -04:00
Asumu Takikawa
d7fefc848b Fix requires to avoid circular dependencies. 2012-03-30 23:34:34 -04:00
Matthew Flatt
6e01d1586a racket/gui: fix refresh for right-aligned or centered paragraphs in text% 2012-01-30 11:01:18 -07:00
Matthew Flatt
379991c5bb fix text% `get-paragraph-{start,end}-position' bug and doc bugs
Merge to 5.2
2011-10-08 09:12:30 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Vincent St-Amour
5c77b19416 Fix remove-clickback. 2011-06-24 15:18:31 -04:00
Robby Findler
288caacdfd added get-extend-start-position and get-extend-end-position
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
David Van Horn
760a58b65d Fixes more spelling errors. 2011-02-04 19:44:13 -07:00
Matthew Flatt
98822cf1f9 adjust `racket/gui' and dependencies to survive a locked preference file
- adds a `#:timeout-lock-there' argument to `get-preference'
 - fixes preference looup in `racket/gui'
 - make preference names consistently use `GRacket' and consistently
   fall back on `MrEd' names
 - fix Emacs-style undo mode while we're at it
2011-01-18 17:37:33 -07:00
Matthew Flatt
183323a2c5 fix `editor<%>' printing problems
- pagination for `pastebard%'
 - always put everything on a single page for EPS mode
 - add PDF support to mirror PS support
2011-01-18 14:16:25 -07:00
Matthew Flatt
a9dd80110a restore doc & page checking for `post-script-dc%' et al.
and also fix up wiring of `printer-dc%' in `editor<%>' so
 that `is-a?' tests works as expected
2011-01-14 20:30:51 -07:00
Matthew Flatt
be6ba896e0 repairs for line numbers in DrRacket 2011-01-07 11:57:50 -07:00
Asumu Takikawa
24050a5bc6 Remove do-copy, do-paste, and do-paste-x-selection from editor<%>.
text% and pasteboard% now do not override the methods.
2011-01-04 13:04:28 -05:00
Matthew Flatt
b0ed2f5bc2 fix result of editor<%> `load-file' when the editor is locked
relevant to PR 11590
2011-01-04 06:11:46 -07:00
Matthew Flatt
5809860dd3 fix problem with text% padding 2010-12-31 14:40:27 -07:00
Matthew Flatt
d3fd1ba013 add `set-padding' to text% 2010-12-29 13:42:58 -07:00
Sam Tobin-Hochstadt
491eeaa759 Move mred/private/wxme/style to racket/snip/private/style.
`racket/snip' now exports the style classes and the add,mult-color interfaces.
2010-12-19 22:56:15 -05:00
Matthew Flatt
c259d0839a make editor caret adapt to background color 2010-12-18 07:22:40 -07:00
Sam Tobin-Hochstadt
70955d5540 Split mred/private/wxme/private into two files. 2010-12-18 00:10:26 -05:00
Sam Tobin-Hochstadt
cf3aec6b95 Move load-one to racket/snip.
Create private directory for racket/snip.
Remove snip dependence on events.
2010-12-18 00:10:26 -05:00
Sam Tobin-Hochstadt
fb76a887d8 Refactor to create `racket/snip' collection. 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
8a8a8dbe4b Separate snip% from the gui 2010-12-17 12:32:26 -05:00
Matthew Flatt
82ab45b11d gtk: fix clipboard; implement ye olde X selection 2010-12-01 20:48:23 -07:00
Matthew Flatt
e9710d08f5 fix autowrap bitmap drawing so it isn't covered up by a selection 2010-12-01 15:48:54 -07:00
Matthew Flatt
3a17b284a7 fix flash highlight 2010-11-05 15:54:25 -06:00
Matthew Flatt
f51345b512 selection and cocoa clipboard fixes 2010-11-05 15:54:25 -06:00
Matthew Flatt
e72cf85175 toward better refresh for gtk & other bug fixes 2010-11-05 15:54:23 -06:00
Matthew Flatt
ae05eddf14 generalize editor selection mechanism to support Windows style 2010-11-05 15:54:19 -06:00
Matthew Flatt
3a99e9e82c concurrency repairs 2010-11-05 15:54:18 -06:00
Matthew Flatt
7a7658e86d new cocoa canvas-refresh strategy 2010-11-05 15:54:12 -06:00
Robby Findler
822895fd68 fix minor bug in 'display-end functionality in invalidate-bitmap-cache 2010-10-29 15:06:48 -05:00
Matthew Flatt
f67bb10c19 fix bug introduced with 'display-end change 2010-09-20 12:29:52 -06:00
Matthew Flatt
aac7e0b58a extend invalidate-bitmap-cache' in editor<%>' with 'display-end option
which the framework's background-rectangle implementation can use
 to queue refreshes for changing rectangles, instead of requiring a
 full-canvas refresh
2010-09-19 19:22:22 -06:00
Matthew Flatt
dc98077ca4 add 'handles-all-mouse-events snip% flag 2010-06-26 13:53:31 -06:00
Matthew Flatt
92a4106877 text% printer recognizes a line containing only a form-feed character and uses it as a page break; a form-feed character displays as ^L 2010-05-11 09:37:08 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00