FavoritesDrawerController.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:2k
源码类别:

OpenGL

开发平台:

Visual C++

  1. /* FavoritesDrawerController */
  2. #import "CelestiaFavorite.h";
  3. #import "ContextOutlineView.h";
  4. #import "FavoriteInfoWindowController.h"
  5. #import "NSWindowController_Extensions.h"
  6. @interface FavoritesDrawerController : NSWindowController
  7. {
  8.     NSArray *draggedNodes;
  9.     IBOutlet ContextOutlineView *outlineView;
  10.     IBOutlet NSMenu *favoritesMenu;
  11.     IBOutlet NSMenu *favoritesContextMenu;
  12.     IBOutlet id favoriteInfoWindowController;
  13. }
  14. -(NSArray*)selectedNodes;
  15. -(NSArray*)draggedNodes;
  16. -(void)activateFavorite:(CelestiaFavorite*)fav;
  17. -(NSMenu *)outlineView:(NSOutlineView *)outlineView 
  18. contextMenuForItem:(id)item;
  19. -(IBAction)addNewFavorite:(id)sender;
  20. -(IBAction)addNewFolder:(id)sender;
  21. -(IBAction)doubleClick:(id)sender;
  22. -(void)synchronizeFavoritesMenu;
  23. -(id)outlineView:(NSOutlineView*)olv child:(int)index ofItem:(id)item;
  24. -(BOOL)outlineView:(NSOutlineView*)olv isItemExpandable:(id)item;
  25. -(int)outlineView:(NSOutlineView *)olv numberOfChildrenOfItem:(id)item;
  26. -(id)outlineView:(NSOutlineView *)olv objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
  27. -(void)outlineView:(NSOutlineView *)olv setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn byItem:(id)item;
  28. -(void)outlineView:(NSOutlineView*)olv deleteItem:(id)item;
  29. -(void)outlineView:(NSOutlineView*)olv editItem:(id)item;
  30. -(void)outlineViewSelectionDidChange:(NSNotification*)notification;
  31. -(BOOL)outlineView:(NSOutlineView *)olv writeItems:(NSArray*)items toPasteboard:(NSPasteboard*)pboard;
  32. -(unsigned int)outlineView:(NSOutlineView*)olv validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(int)childIndex;
  33. -(void)_performDropOperation:(id <NSDraggingInfo>)info onNode:(id)pnode atIndex:(int)childIndex;
  34. -(BOOL)outlineView:(NSOutlineView*)olv acceptDrop:(id <NSDraggingInfo>)info item:(id)targetItem childIndex:(int)childIndex;
  35. @end
  36. @interface CelestiaFavorite(ViewAPI)
  37. -(NSMenuItem*)favoriteMenuItem;
  38. -(NSMenuItem*)setupFavoriteMenuItem:(NSMenuItem*)menuItem;
  39. @end
  40. @interface CelestiaFavorites(ViewAPI)
  41. -(NSArray*)favoriteMenuItems;
  42. @end
  43. @interface MyTree(ViewAPI)
  44. -(void)activate;
  45. -(NSMenuItem*)favoriteMenuItem;
  46. @end