mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
* Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
when in Track or Highlight mode. (-keyDown:): Call -selectCellAtRow:column: in Track or Highlight mode. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24345 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a61f6e5479
commit
88facd444e
2 changed files with 16 additions and 11 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-01-13 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* Source/NSMatrix.m (_selectCell:atRow:column:): Call setNextState
|
||||
when in Track or Highlight mode.
|
||||
(-keyDown:): Call -selectCellAtRow:column: in Track or Highlight mode.
|
||||
|
||||
2006-12-28 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* Source/NSTextFieldCell.m (-drawInteriorWithFrame:): Draw disabled
|
||||
|
|
|
@ -1211,7 +1211,14 @@ static SEL getSel;
|
|||
_selectedColumn = column;
|
||||
_selectedCells[row][column] = YES;
|
||||
|
||||
[_selectedCell setState: NSOnState];
|
||||
if (_mode == NSListModeMatrix || _mode == NSRadioModeMatrix)
|
||||
{
|
||||
[_selectedCell setState: NSOnState];
|
||||
}
|
||||
else
|
||||
{
|
||||
[_selectedCell setNextState];
|
||||
}
|
||||
|
||||
if (_mode == NSListModeMatrix)
|
||||
[aCell setHighlighted: YES];
|
||||
|
@ -3695,25 +3702,17 @@ static SEL getSel;
|
|||
[self _altModifier: character];
|
||||
else
|
||||
{
|
||||
NSCell *cell;
|
||||
|
||||
switch (_mode)
|
||||
{
|
||||
case NSTrackModeMatrix:
|
||||
case NSHighlightModeMatrix:
|
||||
cell = _cells[_dottedRow][_dottedColumn];
|
||||
|
||||
[cell setNextState];
|
||||
[self setNeedsDisplayInRect: [self cellFrameAtRow: _dottedRow
|
||||
column: _dottedColumn]];
|
||||
case NSRadioModeMatrix:
|
||||
[self selectCellAtRow: _dottedRow column: _dottedColumn];
|
||||
break;
|
||||
|
||||
case NSListModeMatrix:
|
||||
if (!(modifiers & NSShiftKeyMask))
|
||||
[self deselectAllCells];
|
||||
|
||||
case NSRadioModeMatrix:
|
||||
[self selectCellAtRow: _dottedRow column: _dottedColumn];
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue