Commit Graph

34 Commits

Author SHA1 Message Date
Bjorn Winckler 52d0bf3706 - Added processInputAndData to process multiple input in bulk\ - By default request timeout is 0 (MM_NO_REQUEST_TIMEOUT); this is to try to combat the 'beachball'. This has the side-effect that deliveries of messages to Vim are not guaranteed. - All backendProxy communication is inside @try/@catch
git-svn-id: http://macvim.googlecode.com/svn/trunk@168 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-21 18:55:53 +00:00
Bjorn Winckler 3c50385282 - Request/reply timeout set on root connection object - Check for unresponsive Vim processes in applicationShouldTerminate: and present alert if any are detectd - Send SIGINT to all Vim processes in applicationWillTerminate: - Started adding support for 'enc' (set MM_ENABLE_CONV in MacVim.h) - Cmd-. sends SIGINT to Vim - Use @try/@catch for starRegisterToPasteboard: calls - Removed starRegisterFromPasteboard: message
git-svn-id: http://macvim.googlecode.com/svn/trunk@163 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-19 14:47:17 +00:00
Bjorn Winckler eda16bf9f6 Code cleanup
git-svn-id: http://macvim.googlecode.com/svn/trunk@161 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-18 17:36:08 +00:00
Bjorn Winckler 2e2ee9fa7e Scroll wheel message sent to scrollers are passed on to text view.
git-svn-id: http://macvim.googlecode.com/svn/trunk@160 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-18 16:54:01 +00:00
Bjorn Winckler 7c1e81dc5d Don't wait on focus change messages (also added hack to make sure gui.in_focus is set whenever input is received).
git-svn-id: http://macvim.googlecode.com/svn/trunk@155 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-17 20:50:21 +00:00
Bjorn Winckler 90e76984a4 - MacVim sends focus change messages to Vim - Partial implementation of GUI dialogs
git-svn-id: http://macvim.googlecode.com/svn/trunk@154 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-17 20:30:35 +00:00
Bjorn Winckler 980078e79c Add tab button on tabline is back
git-svn-id: http://macvim.googlecode.com/svn/trunk@148 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-17 07:22:04 +00:00
Bjorn Winckler 9973a221fa - Fixed bug where tab bar controller never removed itself as an observer - Shutdown changed; when connection dies, cleanup is called where all delegates, notifications etc. are reset. - Views are now initialized in the designated initializer of MMWindowController instead of in the nib. For some reason some object in the nib got deallocated more than once and this caused EXC_BAD_ACCESS errors. Hopefully this bug is now fixed. - Put @try/@catch clause around processInput:data: DO call since this can throw an exception if the underlying port is dead. - GUI status line is no longer used. - Added description methods to MMWindowController and MMVimController.
git-svn-id: http://macvim.googlecode.com/svn/trunk@144 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-16 08:56:10 +00:00
Bjorn Winckler 830ba6f4e2 - Toolbar pill button redirected to toggleToolbar: action, which passes the click on to Vim (fixes several toolbar bugs reported by Nico) - Tabline separator hide/show code has been fixed
git-svn-id: http://macvim.googlecode.com/svn/trunk@138 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-14 18:41:51 +00:00
Bjorn Winckler a2fa2f99ed - Moved user default keys to MacVim.[h|m] - Renamed user defaults to the same name as their keys (minus "Key" at the end) - Window top left point autosave is now a string instead of a dictionary
git-svn-id: http://macvim.googlecode.com/svn/trunk@121 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-11 11:48:08 +00:00
Bjorn Winckler 4834afb74a Added support for ':popup' command.
git-svn-id: http://macvim.googlecode.com/svn/trunk@120 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-11 11:20:16 +00:00
Bjorn Winckler 4e599646f1 - MMTextStorage ensures that all glyphs have the same width (or twice that, for wide chars) - MMTypesetter only has to make all line fragments the same height, no glyph placement is necessary anymore - MMTextStorage cleaned up now that cell size is fixed across fonts
git-svn-id: http://macvim.googlecode.com/svn/trunk@119 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-10 20:13:57 +00:00
Bjorn Winckler ddc4ed0b35 - First window autosaves its position - Safari-like window cascading support (cascade from key window)
git-svn-id: http://macvim.googlecode.com/svn/trunk@110 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-09 17:48:17 +00:00
Bjorn Winckler ba058d45a9 - All user default key variables end with 'key' - Added user default keys: typesetter, cellwidthmultiplier, baselineoffset - Cell width calculations based on widht of 'm' (so that 'cellwidthmultiplier' is the width of a cell in em-units)
git-svn-id: http://macvim.googlecode.com/svn/trunk@108 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-09 10:22:52 +00:00
Bjorn Winckler a15c9110c0 Added custom typesetter (better wide-font support, can typeset proportional fonts)
git-svn-id: http://macvim.googlecode.com/svn/trunk@105 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-08 19:18:16 +00:00
Bjorn Winckler e12a38b992 - Added processCommandQueueDidFinish notification to MMWindowController - Window resizing is delayed until processCommandQueueDidFinish (no more need for performSelectionOnMainThread:::)
git-svn-id: http://macvim.googlecode.com/svn/trunk@102 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-08 12:00:17 +00:00
Bjorn Winckler 6c59edb93e Code cleanup.
git-svn-id: http://macvim.googlecode.com/svn/trunk@101 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-08 09:58:41 +00:00
Bjorn Winckler 84494a00bd - Added services menu support with some simple provider messages - MMVimController observer registration moved from MMVimController init to MMWindowController windowDidLoad - Text system initialized in MMWindowController init instead of awakeFromNib
git-svn-id: http://macvim.googlecode.com/svn/trunk@96 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-07 19:23:05 +00:00
Bjorn Winckler 0351dd2f05 Fixed tab selection bug where the wrong tab would get opened if multiple files were dragged onto the Vim dock icon.
git-svn-id: http://macvim.googlecode.com/svn/trunk@88 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-06 13:21:43 +00:00
Bjorn Winckler 5e3b3d9a7a - Tabline is automatically sized (set up in Interface Builder) - When tabline hidden a baseline is shown
git-svn-id: http://macvim.googlecode.com/svn/trunk@80 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-04 20:19:22 +00:00
Bjorn Winckler def350e3c8 Moved activateIgnoringOtherApps: hack from [MMWindowController openWindow] to [MMAppController applicationDidFinishLaunching:].
git-svn-id: http://macvim.googlecode.com/svn/trunk@77 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-04 17:39:45 +00:00
Bjorn Winckler 4d95ec0ab8 Zoom to max only if mouse clicked with Cmd held.
git-svn-id: http://macvim.googlecode.com/svn/trunk@75 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-04 17:30:41 +00:00
Bjorn Winckler 0dfd3cad43 Ensure that vertical scrollbars do not cover the resize corner (Cocoa never lets them do it anyway, but there were drawing artifacts, so now there is an explicit check).
git-svn-id: http://macvim.googlecode.com/svn/trunk@63 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-02 06:35:51 +00:00
Bjorn Winckler 2fb4387bdc - Text view now drawn with inset - Added user defaults to control text view inset -inset[left|right|top|bottom]
git-svn-id: http://macvim.googlecode.com/svn/trunk@61 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-02 06:19:18 +00:00
Bjorn Winckler 5a32d86fba - Text system set up in awakeFromNib instead of open window (fixing bug where the background color wouldn't get set properly since textView was nil) - Open window no longer has rows&columns as parameters
git-svn-id: http://macvim.googlecode.com/svn/trunk@50 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-01 07:43:31 +00:00
Bjorn Winckler aedb944c55 - Handles setFont: and setDefaultColorsBackground::. - Text storage dimensions now set in setTextDimensionsWithRows::. - No longer responds to NSLayoutManager delegate messages. - Zooming now defaults to height-only zoom. - Fixed bug in window resizing code, where views were not placed properly if the window didn't change size (but views still needed placing) - Text storage no longer resized in placeViews; if text storage dimensions need to change Vim is notified and dimensions change as soon as setTextDimensionsWithRows:: is called.
git-svn-id: http://macvim.googlecode.com/svn/trunk@46 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-08-01 07:09:46 +00:00
Bjorn Winckler a02a149dc2 - Added registering of user defaults, supported defaults: nowindow, tabminwidth, tabmaxwidth, taboptimumwidth, statuslineoff - Implemented hiding of status line via user default 'statuslineoff'
git-svn-id: http://macvim.googlecode.com/svn/trunk@37 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-29 18:01:14 +00:00
Bjorn Winckler 37a8aa2661 - The leftmost horizontal scrollbar is stretced to cover the tab view - Scrollbars are clipped to fit the tab view
git-svn-id: http://macvim.googlecode.com/svn/trunk@36 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-29 17:11:01 +00:00
Bjorn Winckler 44c6ee46ee Don't wait on ScrollbarEventMsgID.
git-svn-id: http://macvim.googlecode.com/svn/trunk@32 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-29 15:20:26 +00:00
Bjorn Winckler 26a06f581f - Status line shows 'title' text on :browse - Status line shows dimensions when user drags/zooms the window
git-svn-id: http://macvim.googlecode.com/svn/trunk@30 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-29 14:55:37 +00:00
Bjorn Winckler c10ae3882e - Tabs no longer uses 'size to fit'. - Added some cautionary comments to certain sendMessage:data:wait: calls.
git-svn-id: http://macvim.googlecode.com/svn/trunk@26 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-29 10:27:18 +00:00
Bjorn Winckler 2bb270f60c - Added support for Distributed Objects, as an alternative to NSPortMessage for communicating between processes (MM_USE_DO=0 to disable in MacVim.h) - MMWindowController, MMTextView does not communicate directly with backend anymore, instead they have to go through MMVimController sendMessage:data:wait:. - If window is closed by clicking the red button, Vim now displays a message if a buffer has been modified.
git-svn-id: http://macvim.googlecode.com/svn/trunk@20 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-28 20:19:20 +00:00
Bjorn Winckler 5bd7a8c04b Don't wait on SetTextDimensionsMsgID while in live resize.
git-svn-id: http://macvim.googlecode.com/svn/trunk@16 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-26 07:17:17 +00:00
Bjorn Winckler 9ed9a9f105 Initial import
git-svn-id: http://macvim.googlecode.com/svn/trunk@5 96c4425d-ca35-0410-94e5-3396d5c13a8f
2007-07-25 07:09:26 +00:00