home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Starter / Source / Controller.h < prev    next >
Encoding:
Text File  |  1995-02-13  |  1.1 KB  |  55 lines

  1.  
  2. /* Controller.h - written by Robert Vasvari 6/94 */
  3. #import <appkit/appkit.h>
  4.  
  5. @interface Controller:Object
  6. {
  7.     id docList;
  8.     id currentDoc;     //document that has the key window
  9.     id newDoc;       //used for new documents
  10.     const char *fileName;
  11.     id prefManager;
  12.     id inspectorManager;
  13.     id infoPanel;
  14.     NXZone *controllerZone;
  15.     id accessoryView;
  16. }
  17.  
  18. /* ==== init section ==== */
  19. + initialize;
  20. - init;
  21. - appDidInit:sender;
  22.  
  23. /* ==== document management section ==== */
  24. - openFile:sender;
  25. - createDocumentObject:sender;
  26. - openDocument:(const char *)aPath;
  27. - newDocument:sender;
  28. - save:sender;
  29. - saveAs:sender;
  30. - saveTo:sender;
  31. - saveAll:sender;
  32. - revert:sender;
  33. - close:sender;
  34. - freeDoc:aDoc;
  35. - findDocWithPath:(const char *)aPath;
  36. - findDocWithTag:(int)aTag;
  37.  
  38. /* ==== panels ==== */
  39. - getPrefsPanel:sender;
  40. - getInspectorPanel:sender;
  41. - (BOOL)getInspectorPanelWithScreen:(int)aScreen;
  42. - getInfoPanel:sender;
  43.  
  44. /* ==== access to instance variables ==== */
  45. - setCurrentDoc:aDoc;
  46. - currentDoc;
  47.  
  48. /* ==== application delegate methods ==== */
  49. - (BOOL)appAcceptsAnotherFile:sender;
  50. - (int)appOpenFile:(const char *)path type:(const char *)type;
  51. - appWillTerminate:sender;
  52.  
  53.  
  54. @end
  55.