Commit Graph

4645 Commits

Author SHA1 Message Date
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
Matthew Flatt
8ca7802724 racket/gui: get get-scroll-pos', etc., arguments for canvas%'
original commit: 19b2ee5e90181b7169fa4e5f531beea734adbe2a
2012-09-02 10:08:18 -06:00
Matthew Flatt
83819a23e0 racket/gui win32: atomicity repair
original commit: 7291e1a24d832cd93923263938a40c5a2bb9daa9
2012-08-29 17:45:59 -06:00
Robby Findler
5e895a0725 adjust contract for test:button-push so it isn't so ugly
original commit: 977fd37913e04d9ae6f7127f037c428c6b86a630
2012-08-29 14:52:56 -05:00
Matthew Flatt
c1dd757d5e fix editor-canvas%' internal on-size' handling
The `on-size' method is called in atomic mode,
and we can't call into the editor's sizing functions
in atomic mode.

Watch out for refresh and/or window-sizing problems.

original commit: dba3c14746b5c97d4a04e85e352b4161408e6655
2012-08-28 17:21:45 -06:00
Matthew Flatt
19f73d1c74 add ffi/unsafe/nsalloc' and ffi/unsafe/nsstring'
original commit: 088d1dadb407132ad3b2398fc50e480e86a2fab5
2012-08-24 15:48:58 -06:00
Matthew Flatt
ab6afa4e96 racket/draw: fix set-clipping-rect' in record-dc%'
original commit: edd2035f88b571afc9ed85ba0f7c6167332fb5b3
2012-08-23 09:42:34 -06:00
Matthew Flatt
a2aae67945 win32 racket/gui: fix decoding of system font name
Closes PR 12997

original commit: d9784aa7eba13626d6397ebc2f8d2d1374dceb94
2012-08-23 08:16:23 -06:00
Matthew Flatt
332daee364 fix internal position adjustment for `pane%'
Closes PR 13038

original commit: 30da0f4bf49cfee4e2a107acdbbc8e819f9825ef
2012-08-22 09:07:05 -06:00
Robby Findler
844fe17da2 control-alt for menu selections probably shouldn't be
used under windows, so just give a menu shortcut under
macosx and under windows rely on the underscore thingy

original commit: f1a4aeedba431f8ed54767dc045e4d2a5282b5a4
2012-08-21 08:16:39 -05:00
Robby Findler
2473e9094f change the new 'find from selection' menu item so that it uses
cmd-alt-f on the mac (and control-alt-f on windows/unix, I believe)

original commit: e38e959145f800c830a77c3e684f7126b8f40311
2012-08-19 18:04:14 -05:00
Asumu Takikawa
33839b1cc8 Fix docs for radio-box%
Closes PR 13005

original commit: 7d20e0cbe260abe26129962ca60c7047b73d78ba
2012-08-18 00:23:16 -04:00
Robby Findler
767564c15a adjust the windows menu so that it doesn't rely on
various callbacks to keep its menu items straight, but
instead uses the on-demand callback to just get them
all right.

original commit: 49eb4ab11cb28ba543b4f5ee9738cd240bec6b8a
2012-08-16 19:16:57 -05:00
Matthew Flatt
a1721aa111 racket/gui: internal cleanup
As suggested by Robby.

original commit: 0648556bea202e7f541699d4b6e64a0dfa6be557
2012-08-13 17:11:20 -06:00