mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
(-mouseDown:): Handle empty text views. (-drawRect:): Always draw glyphs' backgrounds.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15740 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c45245dba5
commit
4be2ec2f0e
2 changed files with 22 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2003-01-27 16:13 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/NSLayoutManager.m (-setHyphenationFactor:): Fix format
|
||||||
|
string.
|
||||||
|
|
||||||
|
* Source/NSTextView.m (-mouseDown:): Handle empty text views.
|
||||||
|
(-drawRect:): Always draw glyphs' backgrounds (even when not drawing
|
||||||
|
the text view's background).
|
||||||
|
|
||||||
Mon Jan 27 04:01:32 2003 Nicola Pero <n.pero@mi.flashnet.it>
|
Mon Jan 27 04:01:32 2003 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Source/NSScroller.m ([-mouseDown:]): When the knob slot if
|
* Source/NSScroller.m ([-mouseDown:]): When the knob slot if
|
||||||
|
|
|
@ -100,6 +100,10 @@ with attributes to make sure this holds.
|
||||||
How should resizing work? If the text view is set to track the used part
|
How should resizing work? If the text view is set to track the used part
|
||||||
of the text container, when does it actually update its size? Might need
|
of the text container, when does it actually update its size? Might need
|
||||||
a new internal method called from NSLayoutManager when text has changed.
|
a new internal method called from NSLayoutManager when text has changed.
|
||||||
|
(Currently NSLayoutManager calls -sizeToFit when text has changed.)
|
||||||
|
|
||||||
|
|
||||||
|
Selecting with the keyboard behaves weirdly. Need to check if it's correct.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -2767,12 +2771,12 @@ Figure out how the additional layout stuff is supposed to work.
|
||||||
[_backgroundColor set];
|
[_backgroundColor set];
|
||||||
NSRectFill (rect);
|
NSRectFill (rect);
|
||||||
|
|
||||||
/* Then draw the special background of the new glyphs. */
|
|
||||||
[_layoutManager drawBackgroundForGlyphRange: drawnRange
|
|
||||||
atPoint: _textContainerOrigin];
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Then draw the special background of the new glyphs. */
|
||||||
|
[_layoutManager drawBackgroundForGlyphRange: drawnRange
|
||||||
|
atPoint: _textContainerOrigin];
|
||||||
|
|
||||||
/*printf("%@ drawRect: (%g %g)+(%g %g)\n",
|
/*printf("%@ drawRect: (%g %g)+(%g %g)\n",
|
||||||
self,rect.origin.x,rect.origin.y,
|
self,rect.origin.x,rect.origin.y,
|
||||||
rect.size.width,rect.size.height);*/
|
rect.size.width,rect.size.height);*/
|
||||||
|
@ -3811,6 +3815,11 @@ other than copy/paste or dragging. */
|
||||||
|
|
||||||
startPoint = [self convertPoint: [theEvent locationInWindow] fromView: nil];
|
startPoint = [self convertPoint: [theEvent locationInWindow] fromView: nil];
|
||||||
startIndex = [self characterIndexForPoint: startPoint];
|
startIndex = [self characterIndexForPoint: startPoint];
|
||||||
|
|
||||||
|
if (startIndex == (unsigned int)-1)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ([theEvent modifierFlags] & NSShiftKeyMask)
|
if ([theEvent modifierFlags] & NSShiftKeyMask)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue