Commit Graph

49 Commits

Author SHA1 Message Date
Robby Findler
8281814528 drracket tracks the frame position and size on a
per-monitor-configuration basis and (possibly) moves/resizes
the frame when it changes

original commit: 2fced5d7d6f82fae93033099d448d01ea66dc93e
2012-12-21 19:22:59 -06:00
Robby Findler
8e341da412 update the delegate text when showing and hiding the 20,000 overview window
closes PR 13311

original commit: 63081b0671cc16d1159cd2e6285665b11b9d9658
2012-12-01 16:52:45 -06:00
Robby Findler
992b544ab7 Adjust DrRacket so the window can get narrower
For example, a new DrRacket window (with a file named tmp.rkt in the
and 356 afterwards.  This is under mac os x with, I believe, the
default system font sizes. (The file is important because different
languages can have different buttons in the toolbar and the filename's
length itself can affect the minimum size.)

Mostly this change is the addition of a new kind of panel that
lets its children have multiple fixed sizes (as opposed to
just a single minimum size and (optionally  arbitrarily large))
It also adjusts the various toolbar buttons to use this new code.

Also, there's a few tweaks to shrink other things that became the
limiting factor in shrinking the width of the DrRacket window.

Currently, at least for #lang racket programs, the toolbar buttons
along the top of the window are the limiting factor (including the
save button).  With a bogus language (ie, #lang rackeeet), the bottom
bar is the limiting factor, since that will have only the Save, Run,
and Stop buttons.

related to PR 13281

original commit: 993cd40208b040bfce9db649a59ff7bb9e95de2d
2012-11-29 09:43:05 -06:00
Robby Findler
d35f4ceebd adjust the anchor message, keyboard recording message, and overwrite
message so they don't take up space when they aren't being shown
(to reduce the minimum width of the window)

original commit: a45f94b58ba2aee49c830ecc6379b23ace0c9b16
2012-11-29 09:43:05 -06:00
Robby Findler
2559cc2800 improve the interactivity of DrRacket's search
Changes the implementation of highlight-range so that it
only recomputes all of the new locations from the positions
when on-reflow is called (otherwise only computing the
relevant ones) and make the on-reflow callback chop itself
up, in case there are lots of highlighted ranges to avoid
tying up the event loop.

Changes searching so that it doesn't neccessarily compute
the entire search results in a single event callback
(but also make it start the computation more aggressively)

Overall, this changes the strategy from one that, for any potentially
long-running callback, just tried to push it off into the future, into
a strategy that tries to avoid long-running callbacks by breaking the
work up into chunks, but starting the first chunk immediately (in a
low-priority callback).

Also, misc other changes to make this work better and generally clean
things up.

original commit: 5197649cb7556abd96282d3a838c4ba4f7c8de8c
2012-11-25 20:58:13 -06:00
Robby Findler
469e4203dc fix dynamic require for moved file
original commit: d5f605f58d4fc99ee2b17b0f44f20f0a8c9b72fe
2012-11-22 09:27:07 -06:00
Robby Findler
80950cd990 change the way that the delegate text is specified, using
getter/setters instead of overriding a method

this has the benefit that the delegate does not have to be
rebuilt when switching tabs in drracket; we just leave the
old delegate on the old definitions text, and the swap it
back into the editor-canvas when we swap the text% object
itself back in.

original commit: d0ce0de3988f02c5b260aa663fac95134b877761
2012-11-16 14:33:17 -06:00
Robby Findler
1a5c4047dc adjust the code that maintains the blue "where am I" background
coloring in the contour window to make only a single call to
invalidate-bitmap-cache

It was making two before, which could have pretty similar regions,
leading to two repaints instead of just one. When pushing the down
arrow near the bottom of the visible regions of the definitions text
was causing those two calls to take about 30 milliseconds and after
this change the one call seems to be about half that (but there is
lots of variance so I'm only sure that it helped some, not how much)

original commit: 6fc70a04d8b69f41d82c3bcbeeff26254017052d
2012-11-16 14:33:00 -06:00
Robby Findler
bdbce79374 make the log follower always available in DrRacket
original commit: 741be85f07f6d9fc66f3fa7ea9f679a2d9ad2c2a
2012-11-07 16:07:07 -06: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
Robby Findler
7f70f83094 Rackety
original commit: e65cbdecf0ca06b4e3911952bc8a58f7646f7f4b
2012-08-07 13:03:45 -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
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
Robby Findler
57f229d37d fix call to message box to remove incorrect style flag
merge to the release branch, please

original commit: e067a4415a03ec6572135ce584a17050690873ca
2012-01-11 13:16:46 -06:00
Robby Findler
ff6fa2736c some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:'
original commit: 458e2c2282adca43aabe3d1e62957389d2fbe798
2011-11-30 06:45:50 -06:00
Robby Findler
ff239b6f3d Make the 'Show Replace' menu item be always enabled. Also, make it
set the keyboard focus to the replace editor.

It used to be disabled when the searching bar is hidden. In that case, it now
makes the searching bar visible.

original commit: 3345415d71591f60285786cee19a63704effc2ad
2011-11-16 16:23:11 -06:00
Robby Findler
94cf73432e adjust the calls to paragraph-{start,end}-position to specify the default argument
original commit: 7aa6153da1ef77508de5d8405eba78c013b7f813
2011-10-07 14:02:27 -05:00
Robby Findler
ccaa37de24 add a 'find longest line' menu item to the edit menu
original commit: 93c1d1dd361f7cfe5613894e536223deaefc34e3
2011-10-07 11:48:39 -05:00
Robby Findler
eb943f394e Adjust DrRacket so that it saves files with CRLF
line terminators when:

  a) running under windows, and
  b) the file on the disk (when DrRacket first opens it)
     contains all CRLF line endings.

In all other situations, the file is saved with LF terminators.

Before this commit, DrRacket would always use the platform-specific
convention, regardless of the original content of the file.

closes PR 12242

original commit: 4a2757f2004fa84901cbae7ff9a257616ce7acaa
2011-09-30 17:08:07 -05:00
Eli Barzilay
7fb531ebc6 Improve code generation in the framework collection.
Instead of generating a file for code and one for documentation, do both
via a macro instead.  Most of the code is the same (modulo reformatting
in a more modern style), and instead of printing the result to a file,
it just returns it as the result of a macro.  (Since this is done in a
naive way, the macro is bad -- it is unhygienic since this is basically
what it did before only through a generated file; it should eventually
be improved to avoid these hacks.)

original commit: 093236fea448240740fe22c232a223950c693839
2011-09-30 10:51:28 -04:00
Eli Barzilay
63a464fc93 Don't create a page-setup menu item if `file-menu:create-print?' returns #f.
original commit: 656de6963692413b27b5e1682465f4cfd989a318
2011-09-30 10:45:43 -04:00
Eli Barzilay
4f3d062242 Rename "standard-menus.rkt" -> "standard-menus.rktl".
Since it's a file that gets included.  This is likely to be temporary,
if I get on with turning the whole thing into a macro.

original commit: 01c859072e7dc2a4b3296e06bf10ff5d82f80295
2011-09-30 10:45:43 -04:00
Robby Findler
28e11323fc adjust frame position preferences for the case when a monitor has gone away
original commit: bef4ed1fd412e1e7d2cabc6633808e816036d09f
2011-09-28 21:04:56 -05:00
Ryan Culpepper
7fb542cbf5 removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Robby Findler
dfb6f53f0e get rid of the "open here" functionality
This is a backwards incompatible change; there is a more complex change
that just stubs this stuff out that may be better that we may need
isntead of this commit.

original commit: 048fa1d7b8b5e17ac58181b068d779806bd5c59a
2011-09-21 22:53:03 -05:00
Robby Findler
1f69a824fa wrong super interface
original commit: 67d17645c425509f99d57da752c08f68fbcafe99
2011-09-05 12:33:53 -05:00
Robby Findler
b25c7cf3b1 add frame:focus-table-mixin & related things to be able to make drracket
test suites that don't depend on the OS giving any focus messages

original commit: a67f509f90359203463c943e4de90eb5e8a91656
2011-09-05 08:30:49 -05:00
Robby Findler
aa28c178f8 change some prints to fprintfs to make it easier to remove debugging printfs from this file when checking in
original commit: dc326c9501de192215a4c81f538a8614a024e632
2011-08-10 12:02:49 -05:00
Robby Findler
15e5457246 fix the initial frame position code for the multiple monitors case
original commit: 83e70af00661a4b42d220bccdfd5e30d6431e53d
2011-08-10 12:02:49 -05:00
Robby Findler
ce23305a06 when moving the insertion point due to a search, use call-as-primary-owner
to scroll the right editor
   closes PR 12080

original commit: fc50be1caaa47ee315269b7254a742b4717b8350
2011-08-05 23:33:51 -05:00
Robby Findler
3b8bdc5ec1 adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
(also fix various issues with that code and unify the framework and drracket way of doing this)

original commit: 3fa2cc0d6775f1793a5068295e0370cadb70cfaf
2011-07-19 16:16:50 -05:00
Eli Barzilay
950c968e77 ".ss" -> ".rkt" scan done.
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Robby Findler
2db01ab5e4 adjust various status controls so they don't take the focus
also added a separator menu item to the line/column number popup menu

original commit: 658bc59a92c82bdb22d0b654e8c47ef6b16258cc
2011-04-11 07:41:49 -05:00
Robby Findler
d8217c9402 made the line/column thingy's popup menu be able to show the line numbers in the definitions window
- added add-line-number-menu-items
  - some minor fixes to the docs
  related to discussion in PR 11837

original commit: c4e0559db4ca37bb086b94830b9e393989c57b61
2011-04-10 19:38:19 -05:00
Robby Findler
bdc30d7dac monitor the font size preference in order to redo the one-line size computation for the search bar
closes PR 11687

original commit: ce4bf97bde32032b0663c623d8ef1f2158a96fae
2011-01-31 17:46:31 -06:00
Robby Findler
b886a67766 clicking on the preference file indicator now gives stats about the preferences file
original commit: d8a3edfc88ebff4e4bca92187b14ccb9038aa07d
2011-01-07 12:33:14 -06:00
Robby Findler
e19ce1d98f use new syntax colorer hooks to provide feedback about syntax coloring in the definitions window in drracket
original commit: 33cb5a8b6fc06c560cd4cb9a41d2e7ab3c0e44c0
2011-01-05 20:39:35 -06:00
Robby Findler
0b4d7b371c framework: change status line so they never contribute to the minimum width of the frame
related to PR 10880

original commit: b2a297afafd3ff9e38c451e522cf54ed3c39e31e
2010-12-30 21:27:11 -06:00
Robby Findler
fdf79692b3 set the font for the flashing 'P' to be the small-control-font
original commit: 32851bddf94653f271a6ff912a9e32213c05824f
2010-12-10 11:47:08 -06:00
Robby Findler
0591eccbe6 changed the 'cancel' button to say something more accurate
closes PR 11473

original commit: 81de0c133765cd75235ba29b9601fa4a69999bde
2010-12-08 21:31:47 -06:00
Robby Findler
b73c80f3c2 added a tabs menu for windows (and linux)
original commit: dd081d9b4e50617580c6fc286a08aa7ebad38b7a
2010-12-07 16:33:51 -06:00
Casey Klein
a2910e89c5 Adds an indicator that shows when framework prefs are being written.
Performance grinds to a halt when the preference file is too large or
written too often. Hopefully the indicator will help us identify this
phenonmenon.

original commit: fbd7bdff5454465e2df0f99defdb64a304c1a135
2010-12-02 15:56:08 -06:00
Robby Findler
726e476ea0 avoid saving the preferences on each keystroke in the find/replace dialog
original commit: de0103129bb589fd59f618e117dde432ed1a6290
2010-12-01 14:09:33 -06:00
Robby Findler
dbed637bfe from commentary following up in PR 11054
original commit: 2309856e2a18e36c5bbedac346cd009ef798b3ad
2010-07-28 15:14:08 -05:00
Eli Barzilay
ade32a3e54 More svn -> git changes.
Some mentions of svn/subversion are replaced with git, and some patterns
for paths to ignore include ".git*".  (Note ".mailmap" not added, might
need to.)

original commit: 9c352f5704092f747dd765cb42c7d547ebbb8621
2010-05-17 05:41:04 -04:00
Eli Barzilay
49be64a3e3 repos-time-stamp -> repo-time-stamp
original commit: 3219d28e9de344378262288f10e92a6dafd97f09
2010-05-15 16:48:04 -04:00
Robby Findler
360aacddcd adjusted the way anchored search works so that swithing tabs in drscheme starts you with a new anchor
original commit: 073d947a4c511292fd6f9f4a23b58f16c1055e2f
2010-04-29 17:03:32 -05:00
Matthew Flatt
5adf804728 rename all files .ss -> .rkt
original commit: 28b404307793f041bb3363135a2968e283855318
2010-04-27 16:50:15 -06:00