Commit Graph

4915 Commits

Author SHA1 Message Date
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
Matthew Flatt
0e2b88e51a racket/gui: fix access of scrollbar values for canvas without a scrollbar
original commit: 1800680c6ba0dec0f8b2f7d0495c615906b27b47
2012-08-12 20:17:29 -06:00
Matthew Flatt
7dde3f4f90 win64 racket/gui: another work around for Cairo clipping issues
Cairo doesn't seem to deal correctly with an HDC produced
by BeginPaint() that has a clipping region. The problem affects
only Win64. Work around the problem by drawing to a separate
HDC and copying to/from the screen. (To see the problem before
this patch, draw the DrRacket window to the edge of the screen
and back, and observe tha the toolbar doesn't update correctly.)

This change could affect performance, but it should mostly
be limited to refresh when a window moves.

original commit: d5024f0f20e077621e7ecf34a4d498c6bcd59698
2012-08-08 09:56:44 -06:00
Robby Findler
7f70f83094 Rackety
original commit: e65cbdecf0ca06b4e3911952bc8a58f7646f7f4b
2012-08-07 13:03:45 -05:00
Robby Findler
22fee824e5 add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976

original commit: 94a448413ee9b371bc7822f27ac422776cf1ca3a
2012-08-07 12:12:45 -05:00
Robby Findler
6d8cf91696 add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976

original commit: b5f97513699690a76e54fdea7d884b39032b9e00
2012-08-06 22:24:59 -05:00
Robby Findler
88e9787226 add a find-from-selection menu item that grabs the selection and puts
it directly into the find window

related to PR 12978

original commit: b16843a908a740ebfa843c2455921b76e761a063
2012-08-06 18:00:57 -05:00
Robby Findler
6b3b6b77f8 adjust the filename filter for the insert-images menu item
closes PR 12963

original commit: 9b39fc37f8559ab2e1f760af754f1b15620e0542
2012-08-02 07:17:09 -05:00
Matthew Flatt
4fa52a1a4b racket/gui: clarify graphical min size in docs for `text-field%'
Closes PR 12959

original commit: 7df91a6148c87c17771a6d7c8ecdecb7266ce240
2012-08-01 09:34:12 -06:00
Robby Findler
1b1a85c730 typos
original commit: b520696d6f466ab90212fcb53763cb18b26705c2
2012-07-30 21:46:22 -05:00
Asumu Takikawa
bedded9e66 Fix GUI doc typo reported by Kieron Hardy
Closes PR 12830

Merge to v5.3

original commit: e0e5f7dd285731098e56ba31a12ff08bf372615d
2012-07-23 12:53:33 -04:00
Eli Barzilay
1758287144 Convert all uses of (integer-in 0 255) to `byte?'.
original commit: 18883681a29b49af5f6f63af4c8d20bb00f8117e
2012-07-22 13:00:05 -04:00
Matthew Flatt
ca4c89c03f test case to finish repair for `racket/gui/init' load handler
Test case for b111241afe.

original commit: d44aa13c150fa9ee43c09780c5aa5061e6e855a7
2012-07-19 07:46:50 -05:00
Matthew Flatt
a84628fb7b racket/gui/init: fix load handler
original commit: b111241afebefe801280c6633474d96e88a6cf68
2012-07-18 03:52:20 -06:00
Matthew Flatt
2121d1e838 racket/gui/init: make load handler chain to original
For a non-WXME file, fall back to the original load handler,
instead of re-implementing it. This makes module caching work
the right way. Falling back to the original means closing
the port and then re-opening the file to load, but that seems
ok.

original commit: cc2c701a7dc618882ac0464e4e3c6bcd2e3c34a0
2012-07-17 06:19:15 -06:00
Matthew Flatt
8ff87e7dfe Revert "racket/gui/init: module caching in the load handler"
This reverts commit 5c02b1c95accdb17a13c5269e17976b6785441bd.

The caching table doesn't hold entries weakly, which means that
it can be a space leak.

original commit: 5f1c8d3ec99180169640a713fd504bb8f6d00602
2012-07-17 06:11:35 -06:00
Matthew Flatt
e509de2c6c racket/gui/init: module caching in the load handler
original commit: 5c02b1c95accdb17a13c5269e17976b6785441bd
2012-07-16 19:22:30 -06:00
Matthew Flatt
b451377d1e allow test to run if GL is unavailable
original commit: 55a8445b0b8be38b9fd11ead6037aee6a6d17a7d
2012-07-15 10:36:36 -06:00
Matthew Flatt
cdadc33430 racket/draw: fix gl-context<%> locking
The optional arguments for `call-as-current' for `gl-context<%>'
were not implemented, and the locking implementation didn't match
the documentation in other ways.

original commit: f729c6441c5a4ef46e2df6fd1bd29fd6f26aaa94
2012-07-13 07:45:21 -06:00
Jay McCarthy
4ae35ba921 Making key-code-symbol consistent with docs
original commit: 1685952b9b4cec4f3223e68f136ac4017d56aa2b
2012-07-10 19:21:24 -04:00
Matthew Flatt
529b9bb046 fix support code for some tests
original commit: ffe39c597411d49ce3d24560c221efc7699c3e8b
2012-07-10 11:42:42 -06:00
Asumu Takikawa
91fcda9865 Fix doc typos
original commit: a1aedaff1e1510d4e805500973fab60fb229614c
2012-07-06 18:59:10 -04:00
Eli Barzilay
92dfc2b100 Redo text sculpturing.
original commit: 2ebab9b93f0ee680104f64df317b3b66f7df7fe1
2012-07-06 16:07:30 -04:00
Robby Findler
325efe1cf3 fix the append-editor-font-menu-items and
append-editor-operation-menu-items docs

closes PR 12878

original commit: 119d1ff9d3efacd9983bbee8aa48649bd643e382
2012-07-02 18:59:38 -05:00
Matthew Flatt
d45ccdbf04 fix doc typo
original commit: a8a0835fc1d19ff123d9208ebc4da21c73dd2cd1
2012-06-25 23:29:25 -06:00
Matthew Flatt
06c051ba0d racket/gui, win32: fix problem with mimize for fixed-size window
original commit: c7d181c2a9937945c53460479b4f72ea721d2a73
2012-06-23 04:15:28 -06:00
Eli Barzilay
67b89ffbb2 Random pickiness.
Spaces at EOFs, indentation, etc.

original commit: 7d6e79023cf9872e6f6af2f89961b742c6296f1d
2012-06-22 12:00:48 -04:00
Robby Findler
d0ee91fc1d when moving the focus to the replace window, also select the text
closes PR 12855

original commit: 8f892a2d3af2216311afa055bc312cd61efc5f71
2012-06-20 09:27:16 -05:00
Asumu Takikawa
fc5b2ac209 racket/gui: fixed by-position widget initialization
This was broken in the class100 port. The init arguments
previously handled by the class100*/kw macro need to be
explicitly passed down.

Also, an (init-rest) is needed at the leaves of the class
hierarchy to ensure that internal super init args don't
leak via error messages. (the class100 macro always
inserts these)

Added a test file so similar breakage is detectable in the
future.

original commit: 0e4f9fcd9771986b5e960686d35f5fbf32eeb634
2012-06-19 12:37:35 -04:00
Eli Barzilay
713f91d0e4 Make some .rktl tests run with "racket".
With this commit, all of the leftover mentions of gracket in
`drdr:command-line' are things that pop up windows.

original commit: 2c19677358f2e36134927655a6f2df8a90ab4432
2012-06-19 03:18:23 -04:00
Eli Barzilay
008aa7dd7c Sort the mess with aligned-pasteboard tests.
1. Lots of #lang-ization, other racketizations, code improvements, etc.

2. Some files that were not working now do.

3. "collects/tests/aligned-pasteboard" had some files that were near
   duplicates of "collects/mrlib/private/aligned-pasteboard/tests".
   I've removed the former since in a few places it looked like an older
   version (eg, there were bogus references to a non-existent
   "utils.rkt").  The former has more files that are in runnable
   condition now.

4. There are plenty of tests that look like they're failing, but it
   wasn't shown since they just return #f, and when they were running
   with a "-f" these results weren't displayed.

5. I have no idea about the code, this is all just reshuffling and minor
   editing.

original commit: b8034828d0d3cbdc02216266ef7ea94e46d5e7a6
2012-06-19 01:42:20 -04:00