mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:40:36 +00:00
* Source/NSTextView.m: Use IBeam cursor if selectable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d84b435d98
commit
7e17fa5ca5
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2011-05-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSTextView.m: Use IBeam cursor if selectable
|
||||||
|
|
||||||
2011-05-14 Eric Wasylishen <ewasylishen@gmail.com>
|
2011-05-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSSplitView.m: Use resize cursors
|
* Source/NSSplitView.m: Use resize cursors
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
#import "AppKit/NSColor.h"
|
#import "AppKit/NSColor.h"
|
||||||
#import "AppKit/NSColorPanel.h"
|
#import "AppKit/NSColorPanel.h"
|
||||||
#import "AppKit/NSControl.h"
|
#import "AppKit/NSControl.h"
|
||||||
|
#import "AppKit/NSCursor.h"
|
||||||
#import "AppKit/NSDragging.h"
|
#import "AppKit/NSDragging.h"
|
||||||
#import "AppKit/NSEvent.h"
|
#import "AppKit/NSEvent.h"
|
||||||
#import "AppKit/NSFileWrapper.h"
|
#import "AppKit/NSFileWrapper.h"
|
||||||
|
@ -3890,6 +3891,19 @@ Figure out how the additional layout stuff is supposed to work.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) resetCursorRects
|
||||||
|
{
|
||||||
|
if ([self isSelectable])
|
||||||
|
{
|
||||||
|
const NSRect visibleRect = [self visibleRect];
|
||||||
|
|
||||||
|
if (!NSEqualRects(NSZeroRect, visibleRect))
|
||||||
|
{
|
||||||
|
[self addCursorRect: visibleRect cursor: [NSCursor IBeamCursor]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (NSString*)view: (NSView *)view
|
- (NSString*)view: (NSView *)view
|
||||||
stringForToolTip: (NSToolTipTag)tag
|
stringForToolTip: (NSToolTipTag)tag
|
||||||
point: (NSPoint)point
|
point: (NSPoint)point
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue