Commit Graph

4808 Commits

Author SHA1 Message Date
Robby Findler
1d775e0b57 adjust log following to make it work for the middle of a drracket
editing session

original commit: ef3eb3154aa21d83c100d7664121c92eba174959
2012-11-04 14:39:55 -06:00
Matthew Flatt
0dff615872 racket/gui: fix problems with control labels and client/global positions
Closes PR 13232

original commit: 068240e9fefd7bfe7dbbbc9b3cad98bc191ee78a
2012-11-04 08:47:50 -07:00
Matthew Flatt
94dea09048 racket/gui: add delete' to choice%' and `list-control<%>'
Closes PR 13230

original commit: 0c82f54912a2a2d3e087ab8c8a533b42008d6080
2012-11-04 08:25:43 -07:00
Matthew Flatt
c08ebddadb error message repair
original commit: ad703025c5d2c0d254f708bad9e854ce4894907b
2012-11-04 06:09:21 -07:00
Robby Findler
49889e566b add find-labelled-windows
original commit: e1760fa7c0690697a97343faf3d4991990c19c91
2012-11-03 13:54:48 -05:00
Robby Findler
6706264ae8 fix test so that labels can be regexps (as was already
documented) and tidy up framework/test docs

original commit: c375042f10fc1440fb56a2ef867f42e24f16bb39
2012-11-03 13:54:48 -05:00
Robby Findler
274cce0439 make popup menus respond to mouse-up events, not mouse-down ones
original commit: 0377bda9474f8848a97509ace898174c83361006
2012-11-02 20:32:55 -05:00
Asumu Takikawa
d4ac5ab683 Fix typo
Closes PR 13158

original commit: 4948ca0863a26f9b1ab68ad2a5e606a8c7f538b2
2012-11-02 18:17:38 -04:00
Robby Findler
4d5c904778 It appears that the colorer was always creating a new port to read
from, each time it starts on a new event boundary (this means that in
the old (5.3) version of the colorer, it also created a new co-routine
on each event boundary! (in other words, most of the reason one would
want co-routines here was bogus))

So, refactor the code to just always do this and eliminate a bunch of
set!'s and private fields in favor of just passing arguments like sane
code does. (We can't eliminate all of that, because we still do need
to be able to abort and thus all calls must be tail calls.)

original commit: 4ead534227fcbf8e90d0cc5e890f0a67fe6b05cb
2012-11-02 10:24:34 -05:00
Robby Findler
16d9b00f05 lift the restriction that the port passed to open-input-text-editor
cannot change its revision number during reading

This restriction was enforced only for editors that have non
string-snip% snips. The restriction was in place because the
implementation strategy was to chain thru the snips in the editor
using (send snip next) and that isn't safe if the revision number
changes.

The lifting of the restriction is implemented by tracking the position
in the editor where the last snip ended and, if the revision number
changes, starting over trying to get a snip from that position. This
has the effect that, if the revision number never changes, the code
should behave the same as it was doing before (so hopefully any new
bugs I've introduced in this commit will only show up if the old
implementation would have raised an error)

Also, exploit the lifting of this restriction in the colorer so it
doesn't to restart the port during to coloring that happens along with
the parsing

original commit: 95841b9303a753c5b85a929dbfe6167b12407343
2012-11-02 10:24:34 -05:00
Robby Findler
b801edee42 reindent the implementation of open-input-text-editor
Apologies for the gratuitious reindent, but I was having
a lot of trouble reading this file; it appears to have
last been worked on in an Emacs that used tabs for indentation
and doesn't use the same tab width as drracket.

original commit: 6c760b086fc87163bf3c7086c16efbe845a9b08b
2012-11-02 10:24:34 -05:00
Robby Findler
6cce05a331 added a script that collects log messages for use in performance debugging drracket
original commit: 6f5e43b851b613ec9237e565d69fcb8b17e81870
2012-11-01 21:13:39 -05:00
Robby Findler
7581b3e228 add logging to the colorer
original commit: 9582fe830ae4d0db3b71a02b78d3546521b63bc2
2012-10-31 10:16:16 -05:00
Robby Findler
72533d7a64 add docs for get-spell-check-strings and set-spell-check-strings
original commit: fdfa5bf134ce215e9b4aac01defe62680acba78a
2012-10-31 10:16:16 -05:00
Robby Findler
f0a85b7be2 fix a bug in the colorer refactoring
As it turns out, changing the color (via change-style) can somtimes
split snips, which can change the revision number, which means that
the open port into the editor is no longer valid.

Since this doesn't seem to happen very much when editing in DrRacket,
we just detect this situation and give up on this colorer's port, and
hopefully it actually doesn't happen much (the place it happened that
let me notice this was when inserting an image via a menu in the
drracket test suites)

original commit: 226a7140b5784531103e10338785249a37aac677
2012-10-31 10:16:16 -05:00
Robby Findler
cd33065663 changed the colorer so that it doesn't use a co-routine; instead,
refactor it so it doesn't add anything to the continuation ever, and
just check if it has been a while since we started (giving other
events a chance to run, if so). Also, interleave the calls to
change-style with the parsing of the buffer to get a more accurate
count of the time the colorer is taking

original commit: f07c8cf4907e283ab590b3528534b9784cd12c7f
2012-10-30 22:11:52 -05:00
Robby Findler
0cea8f0684 adjust the fields of the gui-event struct
original commit: 33eba697a0d1fe354768dd8d7c77bacbe9b7ab14
2012-10-29 06:45:13 -05:00
Matthew Flatt
894d5a5fb6 racket/gui gtk: fix on-subwindow-... handling
Handling was broken by changes to fix enter and
leave events (in commit a5d7812732)

Merge to v5.3.1

original commit: ba6e383963de1c5e64058d99efceb799171827a9
2012-10-27 21:34:08 -06:00
Robby Findler
f5207bb320 add missing docs for color:misspelled-text-color-style-name
original commit: 789ab0d9f00734c1c866cf4ace093f758bee0773
2012-10-27 14:42:09 -05:00
Robby Findler
7295fab9de clean up rectangle computations, fixing some bugs along the way
original commit: 8bc3b70a3c1d521ce8be3844b6efe9829d55fb39
2012-10-26 21:49:45 -05:00
Robby Findler
75ea19d0f4 add some first-cut logging information to drracket
to track how long events take to be handled

original commit: e89a121ae5e42366702a4674cd79b339151175a3
2012-10-26 21:49:44 -05:00
Robby Findler
c2da5ef711 add logging to mred's event callback mechanism to record
how long event processing takes

original commit: 7e8ac872fec52fecf84e4ec6d62989e2b9304605
2012-10-26 21:49:44 -05:00
Robby Findler
9767fde76d improve the performance for dragging around items in mrlib/graph
(used by Redex's traces window and the module browser)

original commit: 9d4a3a6e07545cfad5ad38072ddaf2862eb9475a
2012-10-24 23:56:30 -05:00
Matthew Flatt
06e7b26962 racket/draw: fix problems with monochrome PNGs
Merge to v5.3.1

original commit: 274d0045464b80116fa83faef4cc21e87f651a7c
2012-10-18 10:01:20 -06:00
Robby Findler
22535c00df fix group-test
merge to release branch, please

original commit: 975426f00c2886c8bd1d933d2f84706744027942
2012-10-17 20:19:15 -05:00
Robby Findler
59e40964d8 add get-token-range to color:text<%> (it was already documented
as if it was there)

original commit: 5b3ac50fb94ae28bf975c70e2eac633d07fdea00
2012-10-16 10:51:45 -05:00
Robby Findler
39a8843206 show a dialog box saying that aspell/ispell cannot be
found instead of just silently not checking the spelling

also, fix a bug in that case that used to cause drracket
to just crash

original commit: 4787361d7f0598751f962b28739a0cc79b3d0194
2012-10-15 07:41:42 -05:00
Robby Findler
fc583a9210 add preference settings so that the misspelled words color
can be configured

original commit: a59df8c7ee19f2c91d41f823d2981854408c50a6
2012-10-14 22:27:50 -05:00
Robby Findler
96d3c88778 adjust spelling code so that it runs in the abortable part
of the syntax colorer; adjust the spelling code so that it
uses nack events to communicate, in case things get aborted

original commit: 44a0c8a6c1bd744e139ea9b3a719807bee5708e1
2012-10-14 21:20:36 -05:00
Robby Findler
9bc24e9d44 fix spell checker encoding
original commit: c75cc48f5cfba3059fe7f245424a4c00f3eb2366
2012-10-14 18:45:10 -05:00
Robby Findler
c010d0aca7 add capability to spell-check string constants
(calls out to ispell or aspell)

original commit: 72fa1d45a18e2e38444db4c11300a1d9f344035c
2012-10-14 17:40:56 -05:00
Matthew Flatt
1332686335 racket/gui win32: fix drag-and-drop onto frame
Closes PR 13109

Merge to v5.3.1

original commit: ebe0b64d47be80a78b99635dd8e947807a767d6c
2012-10-09 21:13:34 -06:00
Matthew Flatt
5332e9c927 win32: fix combo-field% click handling
Closes PR 13173

Merge to v5.3.1

original commit: 75008f14d7a46d28262e76de2b9603a54e20c896
2012-10-09 20:05:47 -06:00
Matthew Flatt
2eb1a30a2e racket/gui win32: fix duplicate pre- events for controls
original commit: 7ddd99cf52c5476abead64a23bf441a21dd15507
2012-10-02 07:26:25 -06:00
Matthew Flatt
ed25173112 racket/gui: skip some redundant 'enter & 'leave events
original commit: a5d78127323ec8959c66426f88459ecf582fc613
2012-10-02 07:26:25 -06:00
Matthew Flatt
4bf6588d14 racket/draw: fix return value of load-file' from bitmap%'
original commit: 64bac4e573c9677b69958e331ee170881bb201a2
2012-10-01 18:14:19 -06:00
Matthew Flatt
7ed282f2a5 win32: fix coordinates of non-client mouse events
Closes PR 13141

original commit: efcad101d1ad75e95e261138a2a4145958ce9363
2012-10-01 13:08:24 -06:00
Robby Findler
fa6aa8e1a6 clean up indentation and move arrows to the front, while I'm here
original commit: fa891703a8317415cef1408156783012b597ec75
2012-09-27 11:13:26 -05:00
Matthew Flatt
0f37e9e790 fix doc bug for `gauge%'
original commit: afeeb56fe8495e043d1b6485eadcde88b1a637b0
2012-09-27 08:12:56 -06:00
Matthew Flatt
3c7fb4808d win32: fix for clipboard bitmap decoding
Closes PR 13119

original commit: c16b696272763194f2fb3731c7bf8309e5d2542e
2012-09-19 09:12:57 -06:00
Matthew Flatt
26e6d12ef9 win32: fix(?) printing page-size calculation when in 100*mm
Windows provide page metrics in either 1000ths of inches or
100ths of millimeters. I think Racket's calculation was wrong
in the mm case.

original commit: 4f75350bf3b8e45ebe8c92388ffa83855e56c5aa
2012-09-19 08:40:24 -06:00
Vincent St-Amour
7927d529d4 Move screenshot scripts to the meta collect.
original commit: f1f1826bfffe603048709b782bd52af711642300
2012-09-18 14:17:36 -04:00
Vincent St-Amour
157eea0dda Rackety and minor edits.
original commit: a2157b86dc051d46ac438faf198593bfd4bf0cb3
2012-09-18 14:17:36 -04:00
Diogo F. S. Ramos
a5b021f6b0 Add a Widget Gallery to Racket GUI documentation
It's very helpful to have a visual aid when dealing with a graphical
interface toolkit.

This patch adds an overview of the widgets available in the library
consisting of screen shots of the main ones and the snippets used to
produce them.

Each widget image link back to the full documentation.

original commit: 54ab1bfbfabb5e5fd8a8fe758a57da87b7bdb994
2012-09-18 14:17:36 -04:00
Robby Findler
1f3c357621 adjust the print-to-ps preference in DrRacket so that you can also
choose to print to pdf as well. Also, enable the preference
under linux (ie, make it available to be chosen-- all platforms
still default to printing via the platform-specific mechanism)

original commit: c675cf47f03cd50ff305bc7947c95628da151da5
2012-09-17 10:47:22 -05:00
Matthew Flatt
8542992aeb racket/gui: fix docs on reparenting (which is now possible)
Closes PR 13108

original commit: ff35e7c95b333aa1c3c8e19f21831f2820261f29
2012-09-13 14:17:14 -06:00
Matthew Flatt
2031225b69 improve editor-canvas resizing
A recent bug fix involved moving part of an `editor-canvas%' resize
out of atomic mode by queueing a callback (because the resize involves
quesrying the editor for its size, etc.), but then the callback
happens after a canvas is shown, which can cause it to appear with
bogus initial scrollbars. Queue the callback instead as a "refresh"
level callback, which gets a chance to run before a frame is made
visible.

original commit: 11045a0384b2b6f185cd98aec59e27b96b68c5f7
2012-09-13 14:17:14 -06:00
Robby Findler
bab432628c export and document enabled-shown-button?
label-of-enabled/shown-button-in-top-level-window?
       and button-in-top-level-focusd-window?

original commit: 9b15450b081d140fe7cd88ac3fbb86bcc66d6586
2012-09-08 15:58:25 -05:00
Matthew Flatt
d296dbde10 racket/gui: new-style error messages
original commit: 69d2adce4d7561b3ba4b1c06c3fccba17e11ad05
2012-09-02 16:38:43 -06:00
Matthew Flatt
e098fa417b racket/gui: make `editor-canvas%' fail more gracefully on too-large content
Closes PR 13087

original commit: 64eb4f9389412f544671858c38be15223d3dddd8
2012-09-02 10:08:23 -06:00