зеркало из https://github.com/mozilla/pjs.git
Bug 489734 - Implement cursor values "alias", "context-menu", "copy", "not-allowed" and "no-drop" on Mac Os 10.6. r=josh
--HG-- extra : rebase_source : da270898f5250ffeaf0d5f1225bd81bd63d1dafd
This commit is contained in:
Родитель
f89349979c
Коммит
7819ce2dfa
|
@ -107,6 +107,7 @@ static NSArray* sSpinCursorFrames = nil;
|
||||||
|
|
||||||
switch(aCursor)
|
switch(aCursor)
|
||||||
{
|
{
|
||||||
|
SEL cursorSelector;
|
||||||
case eCursor_standard:
|
case eCursor_standard:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]];
|
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]];
|
||||||
case eCursor_wait:
|
case eCursor_wait:
|
||||||
|
@ -123,12 +124,20 @@ static NSArray* sSpinCursorFrames = nil;
|
||||||
case eCursor_help:
|
case eCursor_help:
|
||||||
return [nsMacCursor cursorWithImageNamed: @"help" hotSpot: NSMakePoint(1,1)];
|
return [nsMacCursor cursorWithImageNamed: @"help" hotSpot: NSMakePoint(1,1)];
|
||||||
case eCursor_copy:
|
case eCursor_copy:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]]; //XXX needs real implementation
|
cursorSelector = @selector(dragCopyCursor);
|
||||||
|
return [nsMacCursor cursorWithCursor: [NSCursor respondsToSelector: cursorSelector] ?
|
||||||
|
[NSCursor performSelector: cursorSelector] :
|
||||||
|
[NSCursor arrowCursor]];
|
||||||
case eCursor_alias:
|
case eCursor_alias:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]]; //XXX needs real implementation
|
cursorSelector = @selector(dragLinkCursor);
|
||||||
|
return [nsMacCursor cursorWithCursor: [NSCursor respondsToSelector: cursorSelector] ?
|
||||||
|
[NSCursor performSelector: cursorSelector] :
|
||||||
|
[NSCursor arrowCursor]];
|
||||||
case eCursor_context_menu:
|
case eCursor_context_menu:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]]; //XXX needs real implementation
|
cursorSelector = @selector(contextualMenuCursor);
|
||||||
|
return [nsMacCursor cursorWithCursor: [NSCursor respondsToSelector: cursorSelector] ?
|
||||||
|
[NSCursor performSelector: cursorSelector] :
|
||||||
|
[NSCursor arrowCursor]];
|
||||||
case eCursor_cell:
|
case eCursor_cell:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor crosshairCursor]];
|
return [nsMacCursor cursorWithCursor: [NSCursor crosshairCursor]];
|
||||||
case eCursor_grab:
|
case eCursor_grab:
|
||||||
|
@ -145,8 +154,10 @@ static NSArray* sSpinCursorFrames = nil;
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor openHandCursor]];;
|
return [nsMacCursor cursorWithCursor: [NSCursor openHandCursor]];;
|
||||||
case eCursor_not_allowed:
|
case eCursor_not_allowed:
|
||||||
case eCursor_no_drop:
|
case eCursor_no_drop:
|
||||||
return [nsMacCursor cursorWithCursor: [NSCursor arrowCursor]]; //XXX needs real implementation
|
cursorSelector = @selector(operationNotAllowedCursor);
|
||||||
|
return [nsMacCursor cursorWithCursor: [NSCursor respondsToSelector: cursorSelector] ?
|
||||||
|
[NSCursor performSelector: cursorSelector] :
|
||||||
|
[NSCursor arrowCursor]];
|
||||||
// Resize Cursors:
|
// Resize Cursors:
|
||||||
//North
|
//North
|
||||||
case eCursor_n_resize:
|
case eCursor_n_resize:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче