home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / DevTools / ClassEditor.0.3 / Source / CEAppManager.h < prev    next >
Encoding:
Text File  |  1995-02-14  |  2.5 KB  |  114 lines

  1. /* CEAppManager.h                 
  2.  *
  3.  * This is the basic controller of the App. It manages all hig abstraction
  4.  * tasks for the panel, documents and connections to the outside.
  5.  *
  6.  * Usage: This is not a very reusable object. 
  7.  *
  8.  * Written by:         Thomas Engel
  9.  * Created:            23.10.1993 (Copyleft)
  10.  * Last modified:     07.05.1994
  11.  */
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface CEAppManager:Object
  16. {
  17.     // For all those style settings...
  18.  
  19.     id    textFontField;
  20.     id    textFontColorWell;
  21.     id    methodNameField;
  22.     id    methodNameColorWell;
  23.     id    headlinesFontField;
  24.     id    headlinesFontColorWell;
  25.     id    exampleCodeFontField;
  26.     id    exampleCodeFontColorWell;
  27.     id    blankLinesFontField;
  28.     id    blankLinesFontColorWell;
  29.     id    sourceFontField;
  30.     id    sourceFontColorWell;
  31.     id    keywordsFontField;
  32.     id    keywordsFontColorWell;
  33.     id    typecastFontField;
  34.     id    typecastFontColorWell;    
  35.     id    remarkFontField;
  36.     id    remarkFontColorWell;    
  37.     id    bugNoteFontField;
  38.     id    bugNoteFontColorWell;
  39.  
  40.     id    classDocTemplateView;
  41.     id    methodDocuTemplateView;
  42.     
  43.     id    docuTemplateWindow;
  44.     id    docuTemplateTextView;
  45. }
  46.  
  47. // Some methods need to get the app started..
  48.  
  49. - appWillInit:sender;
  50. - appDidInit:sender;
  51. - (int)app:sender openFile:(const char *)path type:(const char *)type;
  52. - (BOOL)appAcceptsAnotherFile:sender;
  53. - appDidBecomeActive:sender;
  54. - appWillTerminate:sender;
  55. - (BOOL)_closeAllWindows;
  56. - addToReleasePool:anObject;
  57.  
  58. - (int)openFile:(char *)path onHost:(char *)host atTrueLine:(int *)line;
  59.  
  60. // Here we do the handling of our Panels & Tools
  61.  
  62. - showInfo:sender;
  63. - showPreferences:sender;
  64. - preferences;
  65.  
  66. // Here we have the methods the control our document. They work via the
  67. // first responder chain.
  68.  
  69. - open:sender;
  70. - new:sender;
  71. - save:sender;
  72. - saveAs:sender;
  73. - saveTo:sender;
  74. - saveAll:sender;
  75. - revert:sender;
  76. - close:sender;
  77.  
  78. - print:sender;
  79.  
  80. // Handling text styles
  81.  
  82. - setTextFontStyle:sender;
  83. - setMethodNameFontStyle:sender;
  84. - setParameterFontStyle:sender;
  85. - setMathSymbolFontStyle:sender;
  86. - setHeadlinesFontStyle:sender;
  87. - setExampleCodeFontStyle:sender;
  88. - setBlankLinesFontStyle:sender;
  89. - setSourceFontStyle:sender;
  90. - setKeywordsFontStyle:sender;
  91. - setTypecastFontStyle:sender;
  92. - setRemarkFontStyle:sender;
  93. - setBugNoteFontStyle:sender;
  94. - _setSelectionFont:aFont andColor:aColor;
  95.  
  96. // Providing more defaults...
  97.  
  98. - copyClassDocuTemplate;
  99. - copyMethodDocuTemplate;
  100.  
  101. - windowDidBecomeKey:sender;
  102.  
  103. @end
  104.  
  105. /*
  106.  * History: 13.01.95 Bla.
  107.  *
  108.  *
  109.  * Hints: This Object could be defined as a subclass of a general docManager
  110.  *         like the one provided by the NeXT-miniexamples...Maybe later or never
  111.  *
  112.  *
  113.  * Bugs: No bugs and birds seen....
  114.  */