Menu_Extensions.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:1k
- //
- // Menu_Extensions.h
- // celestia
- //
- // Created by Da Woon Jung on 12/9/07.
- // Copyright (C) 2007, Celestia Development Team
- //
- #import <Cocoa/Cocoa.h>
- @class CelestiaSelection;
- @class BrowserItem;
- @interface NSMenu (CelestiaMenu)
- - (int) indexOfItemWithLocalizableTitle: (NSString *) aTitle;
- - (BOOL) insertRefMarkItemsForSelection: (CelestiaSelection *) aSelection
- atIndex: (int) aIndex;
- - (BOOL) insertPlanetarySystemItemForSelection: (CelestiaSelection *) aSelection
- target: (id) aTarget
- atIndex: (int) aIndex;
- - (BOOL) insertAltSurfaceItemForSelection: (CelestiaSelection *) aSelection
- target: (id) aTarget
- atIndex: (int) aIndex;
- - (void) removeRefMarkItems;
- - (void) removePlanetarySystemItem;
- - (void) removeAltSurfaceItem;
- @end
- @interface NSMenuItem (CelestiaMenu)
- - (void) addPlanetarySystemMenuForItem: (BrowserItem *) browseItem
- target: (id) target
- action: (SEL) action;
- - (void) addAltSurfaceMenuWithNames: (NSArray *) surfaces
- target: (id) target
- action: (SEL) action;
- @end