home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Examples / AppKit / Draw / DrawApp.h < prev    next >
Text File  |  1996-04-18  |  2KB  |  62 lines

  1. @interface DrawApp : NSApplication
  2. {
  3.     NSMatrix *tools;          /* the Tool Palette matrix */
  4.     Class currentGraphic;      /* the factory object used to create things */
  5.     NSView *savePanelAccessory;      /* the SavePanel Draw/PS/TIFF view */
  6.     NSMatrix *spamatrix;      /* the matrix in the savePanelAccessory view */
  7.     NSPanel *infoPanel;          /* the Info... panel */
  8.     NSTextField *version;      /* the version field in the Info... panel */
  9.     GridView *gridInspector;      /* the shared modal panel to inspect grids */
  10.     NSColorPanel *inspectorPanel; /* the shared inspector panel */
  11.     id <NSMenuItem> linkMenuItem; /* old Object Links menu item */
  12.     NSMenu *editMenu;          /* the Edit menu */
  13.     BOOL cursorPushed;          /* whether we've temporarily changed the
  14.                      cursor to NSArrow because the user held
  15.                      down the Control key */
  16.     BOOL haveOpenedDocument;      /* whether we have opened a document */
  17. }
  18.  
  19. /* Public methods */
  20.  
  21. + (void)initialize;
  22.  
  23. - (Class)currentGraphic;
  24. - (DrawDocument *)currentDocument;
  25. - (NSString *)currentDirectory;
  26. - (void)startEditMode;
  27. - (void)endEditMode;
  28.  
  29. /* Shared panels */
  30.  
  31. - (NSSavePanel *)saveToPanel:sender;
  32. - (NSSavePanel *)saveAsPanel:sender;
  33. - (GridView *)gridInspector;
  34. - (NSPanel *)inspectorPanel;
  35. - (DrawPageLayout *)pageLayout;
  36. - (void)orderFrontInspectorPanel:sender;
  37.  
  38. /* Target/Action methods */
  39.  
  40. - (void)info:sender;
  41. - (void)new:sender;
  42. - (void)open:sender;
  43. - (void)terminate:(id)sender;
  44.  
  45. /* Application delegate methods */
  46.  
  47. - (void)applicationDidFinishLaunching:(NSNotification *)notification;
  48. - (BOOL)application:(NSApplication *)sender openFile:(NSString *)path;
  49.  
  50. /* Listener/Speaker methods */
  51.  
  52. /* Global cursor setting methods */
  53.  
  54. - (NSCursor *)cursor;
  55. - (void)sendEvent:(NSEvent *)event;
  56.  
  57. /* Target/Action method which sets up the currentGraphic */
  58.  
  59. - (void)setCurrentGraphic:sender;
  60.  
  61. @end
  62.