home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / DevTools / ClassEditor.0.4 / Source / CEAppManager.h < prev    next >
Encoding:
Text File  |  1995-06-07  |  2.8 KB  |  128 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.     id    info;
  18.     id    preferences;
  19.     id    accessHelper;
  20.     
  21.     // For all those style settings...
  22.  
  23.     id    textFontField;
  24.     id    textFontColorWell;
  25.     id    methodNameField;
  26.     id    methodNameColorWell;
  27.     id    headlinesFontField;
  28.     id    headlinesFontColorWell;
  29.     id    exampleCodeFontField;
  30.     id    exampleCodeFontColorWell;
  31.     id    blankLinesFontField;
  32.     id    blankLinesFontColorWell;
  33.     id    sourceFontField;
  34.     id    sourceFontColorWell;
  35.     id    keywordsFontField;
  36.     id    keywordsFontColorWell;
  37.     id    typecastFontField;
  38.     id    typecastFontColorWell;    
  39.     id    remarkFontField;
  40.     id    remarkFontColorWell;    
  41.     id    bugNoteFontField;
  42.     id    bugNoteFontColorWell;
  43.  
  44.     id    classDocTemplateView;
  45.     id    methodDocuTemplateView;
  46.     
  47.     id    docuTemplateWindow;
  48.     id    docuTemplateTextView;
  49.  
  50.     id    headerSearchPathes;
  51.     id    sourceSearchPathes;
  52.     id    docuSearchPathes;
  53. }
  54.  
  55. // Some methods need to get the app started..
  56.  
  57. - appWillInit:sender;
  58. - appDidInit:sender;
  59. - (int)app:sender openFile:(const char *)path type:(const char *)type;
  60. - (BOOL)appAcceptsAnotherFile:sender;
  61. - appDidBecomeActive:sender;
  62. - appWillTerminate:sender;
  63. - (BOOL)_closeAllWindows;
  64. - addToReleasePool:anObject;
  65.  
  66. - (int)openFile:(char *)path onHost:(char *)host atTrueLine:(int *)line;
  67.  
  68. // Here we do the handling of our Panels & Tools
  69.  
  70. - showInfo:sender;
  71. - sendSuggestion:sender;
  72. - showAccessHelper:sender;
  73. - showPreferences:sender;
  74. - preferences;
  75. - _readPreferences;
  76. - headerSearchPaths;
  77. - sourceSearchPaths;
  78. - documentationSearchPaths;
  79.  
  80. // Here we have the methods the control our document. They work via the
  81. // first responder chain.
  82.  
  83. - open:sender;
  84. - new:sender;
  85. - save:sender;
  86. - saveAs:sender;
  87. - saveTo:sender;
  88. - saveAll:sender;
  89. - revert:sender;
  90. - close:sender;
  91.  
  92. - print:sender;
  93.  
  94. // Handling text styles
  95.  
  96. - setTextFontStyle:sender;
  97. - setMethodNameFontStyle:sender;
  98. - setParameterFontStyle:sender;
  99. - setMathSymbolFontStyle:sender;
  100. - setHeadlinesFontStyle:sender;
  101. - setExampleCodeFontStyle:sender;
  102. - setBlankLinesFontStyle:sender;
  103. - setSourceFontStyle:sender;
  104. - setKeywordsFontStyle:sender;
  105. - setTypecastFontStyle:sender;
  106. - setRemarkFontStyle:sender;
  107. - setBugNoteFontStyle:sender;
  108. - _setSelectionFont:aFont andColor:aColor;
  109.  
  110. // Providing more defaults...
  111.  
  112. - copyClassDocuTemplate;
  113. - copyMethodDocuTemplate;
  114.  
  115. - windowDidBecomeKey:sender;
  116.  
  117. @end
  118.  
  119. /*
  120.  * History: 13.01.95 Bla.
  121.  *
  122.  *
  123.  * Hints: This Object could be defined as a subclass of a general docManager
  124.  *         like the one provided by the NeXT-miniexamples...Maybe later or never
  125.  *
  126.  *
  127.  * Bugs: No bugs and birds seen....
  128.  */