mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:20:37 +00:00
*** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6703 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77f49737e3
commit
e41dd2d2a5
2 changed files with 41 additions and 7 deletions
|
@ -119,6 +119,7 @@
|
|||
- (void) setTextContainerInset: (NSSize)inset
|
||||
{
|
||||
_textContainerInset = inset;
|
||||
[self invalidateTextContainerOrigin];
|
||||
}
|
||||
|
||||
- (NSSize) textContainerInset
|
||||
|
@ -135,7 +136,15 @@
|
|||
{
|
||||
// recompute the textContainerOrigin
|
||||
// use bounds, inset, and used rect.
|
||||
//NSRect bRect = [self bounds];
|
||||
/*
|
||||
NSRect bRect = [self bounds];
|
||||
NSRect uRect = [[self layoutManager] usedRectForTextContainer: _textContainer];
|
||||
|
||||
if ([self isFlipped])
|
||||
_textContainerOrigin = ;
|
||||
else
|
||||
_textContainerOrigin = ;
|
||||
*/
|
||||
}
|
||||
|
||||
- (NSLayoutManager*) layoutManager
|
||||
|
@ -205,6 +214,13 @@
|
|||
// release drag information
|
||||
}
|
||||
|
||||
- (unsigned int) dragOperationForDraggingInfo: (id <NSDraggingInfo>)dragInfo
|
||||
type: (NSString *)type
|
||||
{
|
||||
//FIXME
|
||||
return NSDragOperationNone;
|
||||
}
|
||||
|
||||
- (void) setEditable: (BOOL)flag
|
||||
{
|
||||
if (flag)
|
||||
|
@ -699,11 +715,10 @@ other than copy/paste or dragging. */
|
|||
|
||||
/* Notifies the delegate that the user clicked in a link at the specified
|
||||
charIndex. The delegate may take any appropriate actions to handle the
|
||||
click in its textView: clickedOnLink: atIndex: method.Notifies the delegate
|
||||
that the user clicked in a link at the specified charIndex. The delegate
|
||||
may take any appropriate actions to handle the click in its
|
||||
textView: clickedOnLink: atIndex: method. */
|
||||
|
||||
click in its textView: clickedOnLink: atIndex: method. */
|
||||
if (_delegate != nil &&
|
||||
[_delegate respondsToSelector: @selector(textView:clickedOnLink:atIndex:)])
|
||||
[_delegate textView: self clickedOnLink: link atIndex: charIndex];
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -747,7 +762,6 @@ replacing the selection.
|
|||
[self unregisterDraggedTypes];
|
||||
}
|
||||
|
||||
|
||||
- (NSRange) selectionRangeForProposedRange: (NSRange)proposedSelRange
|
||||
granularity: (NSSelectionGranularity)granularity
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue