mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Small improvements to allow changing of the text container for a text
view. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29648 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4f02b08fb2
commit
c9d1292563
4 changed files with 21 additions and 6 deletions
|
@ -1,3 +1,12 @@
|
|||
2010-02-15 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTextView.m (-replaceTextContainer:): Implement this
|
||||
missing method.
|
||||
* Source/NSTextContainer.m (-setTextView:): Adjust the container
|
||||
size to the new view.
|
||||
* Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:):
|
||||
Better break condition for loop.
|
||||
|
||||
2010-02-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSSpellChecker.m (_findNext:, _ignore:, _correct:): Send
|
||||
|
|
|
@ -647,7 +647,7 @@ restart: ;
|
|||
sweepDirection: NSLineSweepRight
|
||||
movementDirection: line_frags_num?NSLineDoesntMove:NSLineMoveDown
|
||||
remainingRect: &remain];
|
||||
if (NSEqualRects(rect, NSZeroRect))
|
||||
if (NSIsEmptyRect(rect))
|
||||
break;
|
||||
|
||||
line_frags_num++;
|
||||
|
|
|
@ -217,6 +217,9 @@ framework intact.
|
|||
selector: @selector(_textViewFrameChanged:)
|
||||
name: NSViewFrameDidChangeNotification
|
||||
object: _textView];
|
||||
[self _textViewFrameChanged:
|
||||
[NSNotification notificationWithName: NSViewFrameDidChangeNotification
|
||||
object: _textView]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1142,13 +1142,16 @@ to this method from the text container or layout manager.
|
|||
[self _updateMultipleTextViews];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- (void) replaceTextContainer: (NSTextContainer *)newContainer
|
||||
{
|
||||
NSLog(@"TODO! [NSTextView -replaceTextContainer:] isn't implemented");
|
||||
NSLayoutManager *lm = RETAIN(_layoutManager);
|
||||
unsigned int index = [[lm textContainers] indexOfObject: _textContainer];
|
||||
|
||||
[_textContainer setTextView: nil];
|
||||
[lm removeTextContainerAtIndex: index];
|
||||
[lm insertTextContainer: newContainer atIndex: index];
|
||||
[newContainer setTextView: self];
|
||||
RELEASE(lm);
|
||||
}
|
||||
|
||||
- (NSTextContainer *) textContainer
|
||||
|
|
Loading…
Reference in a new issue