Added NSDebugLog for case in which the cell is asked for a cell attribute

which is not supported


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10154 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-06-10 16:12:56 +00:00
parent ac84b0b548
commit babf751ba5

View file

@ -360,39 +360,46 @@ static NSColor *shadowCol;
*/
- (int) cellAttribute: (NSCellAttribute)aParameter
{
switch (aParameter)
switch (aParameter)
{
case NSCellDisabled: return _cell.is_disabled;
case NSCellState: return _cell.state;
case NSCellEditable: return _cell.is_editable;
case NSCellHighlighted: return _cell.is_highlighted;
case NSCellIsBordered: return _cell.is_bordered;
case NSCellAllowsMixedState: return _cell.allows_mixed_state;
/*
case NSPushInCell: return 0;
case NSChangeGrayCell: return 0;
case NSCellLightsByContents: return 0;
case NSCellLightsByGray: return 0;
case NSChangeBackgroundCell: return 0;
case NSCellLightsByBackground: return 0;
case NSCellChangesContents: return 0;
case NSCellIsInsetButton: return 0;
*/
case NSCellHasOverlappingImage:
{
case NSCellDisabled: return _cell.is_disabled;
case NSCellState: return _cell.state;
case NSCellEditable: return _cell.is_editable;
case NSCellHighlighted: return _cell.is_highlighted;
case NSCellIsBordered: return _cell.is_bordered;
case NSCellAllowsMixedState: return _cell.allows_mixed_state;
/*
case NSPushInCell: return _cell.;
case NSChangeGrayCell: return _cell.;
case NSCellLightsByContents: return _cell.;
case NSCellLightsByGray: return _cell.;
case NSChangeBackgroundCell: return _cell.;
case NSCellLightsByBackground: return _cell.;
case NSCellChangesContents: return _cell.;
case NSCellIsInsetButton: return _cell.;
*/
case NSCellHasOverlappingImage:
return _cell.image_position == NSImageOverlaps;
case NSCellHasImageHorizontal:
{
return (_cell.image_position == NSImageRight)
|| (_cell.image_position == NSImageLeft);
}
case NSCellHasImageOnLeftOrBottom:
{
return (_cell.image_position == NSImageBelow)
|| (_cell.image_position == NSImageLeft);
}
return _cell.image_position == NSImageOverlaps;
}
case NSCellHasImageHorizontal:
{
return (_cell.image_position == NSImageRight)
|| (_cell.image_position == NSImageLeft);
}
case NSCellHasImageOnLeftOrBottom:
{
return (_cell.image_position == NSImageBelow)
|| (_cell.image_position == NSImageLeft);
}
default:
{
NSDebugLog (@"cell attribute %d not supported", aParameter);
break;
}
}
return 0;
}
@ -502,6 +509,11 @@ static NSColor *shadowCol;
_cell.allows_mixed_state = value;
break;
}
default:
{
NSDebugLog (@"cell attribute %d not supported", aParameter);
break;
}
}
}