Commit Graph

49 Commits

Author SHA1 Message Date
Robby Findler
2fced5d7d6 drracket tracks the frame position and size on a
per-monitor-configuration basis and (possibly) moves/resizes
the frame when it changes
2012-12-21 19:22:59 -06:00
Robby Findler
63081b0671 update the delegate text when showing and hiding the 20,000 overview window
closes PR 13311
2012-12-01 16:52:45 -06:00
Robby Findler
993cd40208 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
2012-11-29 09:43:05 -06:00
Robby Findler
a45f94b58b 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)
2012-11-29 09:43:05 -06:00
Robby Findler
5197649cb7 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.
2012-11-25 20:58:13 -06:00
Robby Findler
d5f605f58d fix dynamic require for moved file 2012-11-22 09:27:07 -06:00
Robby Findler
d0ce0de398 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.
2012-11-16 14:33:17 -06:00
Robby Findler
6fc70a04d8 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)
2012-11-16 14:33:00 -06:00
Robby Findler
741be85f07 make the log follower always available in DrRacket 2012-11-07 16:07:07 -06:00
Robby Findler
49eb4ab11c 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.
2012-08-16 19:16:57 -05:00
Robby Findler
e65cbdecf0 Rackety 2012-08-07 13:03:45 -05:00
Robby Findler
b16843a908 add a find-from-selection menu item that grabs the selection and puts
it directly into the find window

related to PR 12978
2012-08-06 18:00:57 -05:00
Robby Findler
9b39fc37f8 adjust the filename filter for the insert-images menu item
closes PR 12963
2012-08-02 07:17:09 -05:00
Robby Findler
8f892a2d3a when moving the focus to the replace window, also select the text
closes PR 12855
2012-06-20 09:27:16 -05:00
Robby Findler
e067a4415a fix call to message box to remove incorrect style flag
merge to the release branch, please
2012-01-11 13:16:46 -06:00
Robby Findler
458e2c2282 some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
Robby Findler
3345415d71 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.
2011-11-16 16:23:11 -06:00
Robby Findler
7aa6153da1 adjust the calls to paragraph-{start,end}-position to specify the default argument 2011-10-07 14:02:27 -05:00
Robby Findler
93c1d1dd36 add a 'find longest line' menu item to the edit menu 2011-10-07 11:48:39 -05:00
Robby Findler
4a2757f200 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
2011-09-30 17:08:07 -05:00
Eli Barzilay
093236fea4 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.)
2011-09-30 10:51:28 -04:00
Eli Barzilay
656de69636 Don't create a page-setup menu item if `file-menu:create-print?' returns #f. 2011-09-30 10:45:43 -04:00
Eli Barzilay
01c859072e 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.
2011-09-30 10:45:43 -04:00
Robby Findler
bef4ed1fd4 adjust frame position preferences for the case when a monitor has gone away 2011-09-28 21:04:56 -05:00
Ryan Culpepper
c7f86d276c removed useless requires 2011-09-27 19:28:44 -06:00
Robby Findler
048fa1d7b8 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.
2011-09-21 22:53:03 -05:00
Robby Findler
67d17645c4 wrong super interface 2011-09-05 12:33:53 -05:00
Robby Findler
a67f509f90 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
2011-09-05 08:30:49 -05:00
Robby Findler
dc326c9501 change some prints to fprintfs to make it easier to remove debugging printfs from this file when checking in 2011-08-10 12:02:49 -05:00
Robby Findler
83e70af006 fix the initial frame position code for the multiple monitors case 2011-08-10 12:02:49 -05:00
Robby Findler
fc50be1caa when moving the insertion point due to a search, use call-as-primary-owner
to scroll the right editor
   closes PR 12080
2011-08-05 23:33:51 -05:00
Robby Findler
3fa2cc0d67 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)
2011-07-19 16:16:50 -05:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Robby Findler
658bc59a92 adjust various status controls so they don't take the focus
also added a separator menu item to the line/column number popup menu
2011-04-11 07:41:49 -05:00
Robby Findler
c4e0559db4 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
2011-04-10 19:38:19 -05:00
Robby Findler
ce4bf97bde monitor the font size preference in order to redo the one-line size computation for the search bar
closes PR 11687
2011-01-31 17:46:31 -06:00
Robby Findler
d8a3edfc88 clicking on the preference file indicator now gives stats about the preferences file 2011-01-07 12:33:14 -06:00
Robby Findler
33cb5a8b6f use new syntax colorer hooks to provide feedback about syntax coloring in the definitions window in drracket 2011-01-05 20:39:35 -06:00
Robby Findler
b2a297afaf framework: change status line so they never contribute to the minimum width of the frame
related to PR 10880
2010-12-30 21:27:11 -06:00
Robby Findler
32851bddf9 set the font for the flashing 'P' to be the small-control-font 2010-12-10 11:47:08 -06:00
Robby Findler
81de0c1337 changed the 'cancel' button to say something more accurate
closes PR 11473
2010-12-08 21:31:47 -06:00
Robby Findler
dd081d9b4e added a tabs menu for windows (and linux) 2010-12-07 16:33:51 -06:00
Casey Klein
fbd7bdff54 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.
2010-12-02 15:56:08 -06:00
Robby Findler
de0103129b avoid saving the preferences on each keystroke in the find/replace dialog 2010-12-01 14:09:33 -06:00
Robby Findler
2309856e2a from commentary following up in PR 11054 2010-07-28 15:14:08 -05:00
Eli Barzilay
9c352f5704 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.)
2010-05-17 05:41:04 -04:00
Eli Barzilay
3219d28e9d repos-time-stamp -> repo-time-stamp 2010-05-15 16:48:04 -04:00
Robby Findler
073d947a4c adjusted the way anchored search works so that swithing tabs in drscheme starts you with a new anchor 2010-04-29 17:03:32 -05:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00