mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 20:41:55 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8912 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bfd1428d56
commit
8507f7a41c
1 changed files with 18 additions and 8 deletions
|
@ -613,13 +613,17 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
||||||
SEL selector;
|
SEL selector;
|
||||||
|
|
||||||
if (_allowsColumnSelection == NO)
|
if (_allowsColumnSelection == NO)
|
||||||
return;
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ([self isColumnSelected: columnIndex] == YES)
|
if ([self isColumnSelected: columnIndex] == YES)
|
||||||
{
|
{
|
||||||
if (([_selectedColumns count] == 1) && (_allowsEmptySelection == NO))
|
if (([_selectedColumns count] == 1) && (_allowsEmptySelection == NO))
|
||||||
return;
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
selector = @selector (selectionShouldChangeInTableView:);
|
selector = @selector (selectionShouldChangeInTableView:);
|
||||||
if ([_delegate respondsToSelector: selector] == YES)
|
if ([_delegate respondsToSelector: selector] == YES)
|
||||||
{
|
{
|
||||||
|
@ -644,10 +648,14 @@ _isCellEditable (id delegate, NSArray *tableColumns,
|
||||||
|
|
||||||
if ((modifiers & (NSShiftKeyMask | NSAlternateKeyMask))
|
if ((modifiers & (NSShiftKeyMask | NSAlternateKeyMask))
|
||||||
&& _allowsMultipleSelection)
|
&& _allowsMultipleSelection)
|
||||||
newSelection = NO;
|
{
|
||||||
|
newSelection = NO;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
newSelection = YES;
|
{
|
||||||
|
newSelection = YES;
|
||||||
|
}
|
||||||
|
|
||||||
if (([_selectedColumns count] > 0) && (_allowsMultipleSelection == NO)
|
if (([_selectedColumns count] > 0) && (_allowsMultipleSelection == NO)
|
||||||
&& (newSelection == NO))
|
&& (newSelection == NO))
|
||||||
{
|
{
|
||||||
|
@ -2377,8 +2385,10 @@ byExtendingSelection: (BOOL)flag
|
||||||
NSRectFill (aRect);
|
NSRectFill (aRect);
|
||||||
|
|
||||||
if ((_numberOfRows == 0) || (_numberOfColumns == 0))
|
if ((_numberOfRows == 0) || (_numberOfColumns == 0))
|
||||||
return;
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Draw selection */
|
/* Draw selection */
|
||||||
[self highlightSelectionInClipRect: aRect];
|
[self highlightSelectionInClipRect: aRect];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue