Window and view refactoring
commit307767baf4982d530a58208f52a2bbc6d58cad0d
authorBjorn Winckler <bjorn.winckler@gmail.com>
Mon, 21 Jan 2008 21:10:04 +0000 (21 22:10 +0100)
committerBjorn Winckler <bjorn.winckler@gmail.com>
Mon, 21 Jan 2008 21:10:04 +0000 (21 22:10 +0100)
tree8e342aa8c5bf7c48aa2405b5026181ff56c361a5
parentaef843cdd5739f53956e965b1d5e7d51b519586d
Window and view refactoring

Window and view code was refactored to better accomodate the transition
to the ATSUI text rendering code.  View specific code has been
completely moved into MMVimView and window code is now all in
MMWindowController; the window controller is also 'full-screen aware'.
Finally, the text storage is no longer referenced outside MMTextView --
the idea is that the text view is the public class for handling the
work that MMTextStorage used to be the public interface for.

This refactoring also brings some improvements:
- window resizing is more responsive
- full-screen window memory leak fixed
- proper fix for erroneous 'buffer modified' warning
- full-screen no longer tried to set 'nil-title' (this caused backend
  connection problems)
- changing lines/columns in full-screen works properly
- open dialog now works in full-screen on Tiger
20 files changed:
src/MacVim/MMAppController.m
src/MacVim/MMAtsuiTextView.h
src/MacVim/MMAtsuiTextView.m
src/MacVim/MMBackend.m
src/MacVim/MMFullscreenWindow.h
src/MacVim/MMFullscreenWindow.m
src/MacVim/MMTextStorage.m
src/MacVim/MMTextView.h
src/MacVim/MMTextView.m
src/MacVim/MMVimController.m
src/MacVim/MMVimView.h
src/MacVim/MMVimView.m
src/MacVim/MMWindow.h [new file with mode: 0644]
src/MacVim/MMWindow.m [new file with mode: 0644]
src/MacVim/MMWindowController.h
src/MacVim/MMWindowController.m
src/MacVim/MacVim.h
src/MacVim/MacVim.m
src/MacVim/MacVim.xcodeproj/project.pbxproj
src/MacVim/gui_macvim.m