home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / DevTools / ClassEditor.0.3 / Source / CEClassEditor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-11  |  2.5 KB  |  129 lines

  1. /* CEClassEditor.h                 
  2.  *
  3.  * This object controls the data of a beaker (molecules, cameras, groups etc.)
  4.  * It is the main document of BeakerBoy and controls everything from loading to
  5.  * setting up the browser which does most of the other work.
  6.  *
  7.  * Usage: ....
  8.  *
  9.  * Written by:         Thomas Engel
  10.  * Created:            23.10.1993 (Copyleft)
  11.  * Last modified:     12.11.1994
  12.  */
  13.  
  14. #define CE_FILETYPE_NONE        0
  15. #define CE_FILETYPE_ASCII        1
  16. #define CE_FILETYPE_RTF            2
  17. #define CE_FILETYPE_RTFD        3
  18.  
  19. #import <appkit/appkit.h>
  20. #import "CEAppManager.h"
  21.  
  22. @interface CEClassEditor:Object
  23. {
  24.     id    window;
  25.     id    cheatWindow;
  26.     id    browser;
  27.     
  28.     id    classHierarchyField;
  29.     id    popUp;
  30.     
  31.     id    selectorNameField;
  32.     id    methodNameField;
  33.     id    categoryField;
  34.     id    docuTextView;
  35.     id    sourceTextView;
  36.     id    seeAlsoField;
  37.     
  38.     id    browserModePopup;
  39.     id    methodTypeSwitches;
  40.     id    accessTypeSwitches;
  41.     id    displayTypeSwitches;    
  42.     
  43.     id    filename;
  44.     id    methodList;
  45.     
  46.     id    headerFile;
  47.     id    sourceFile;
  48.     id    docuFile;
  49.     int    headerStyle;
  50.     int    sourceStyle;
  51.     int    docuStyle;
  52.     
  53.     @private
  54.     
  55.     BOOL    _updatingTextViews;
  56.     BOOL    _changedTexts;
  57.     id        _changedWindow;
  58.     int        _docuOriginStart;
  59.     int        _docuOriginEnd;
  60.     int        _sourceOriginStart;
  61.     int        _sourceOriginEnd;
  62.  
  63.     id        _tempPb;
  64. }
  65.  
  66. + initialize;
  67.  
  68. - init;
  69. - initFromFile:(const char *)fileName;
  70. - _try:path withAlternatives:anArray forText:aText andGetStyle:(int *)aStyle;
  71. - _readFile:path forText:aText andGetStyle:(int *)aStyle;
  72. - (BOOL)_isFileRTF:path;
  73. - free;
  74.  
  75. - (const char *)filename;
  76. - window;
  77.  
  78. - reparseMethods:sender;
  79. - _parseMethodFile;
  80. - save:sender;
  81. - _writeText:aText withStyle:(int)aStyle to:path;
  82. - close:sender;
  83. - undo:sender;
  84.  
  85. // Keeping windows in sync...
  86.  
  87. - switchToNewDisplayMode:sender;
  88. - selectNewMethod:sender;
  89. - _setIsUpdatingTextViews:(BOOL)flag;
  90. - _showSourceForMethod:aMethod;
  91. - (BOOL)_selectSourceForMethod:aMethod;
  92. - _silentlySyncWindows;
  93. - _syncWindows;
  94.  
  95. // Working with documentation...
  96.  
  97. - checkDocumentation:sender;
  98. - _showDocuForMethod:aMethod;
  99. - (BOOL)_selectDocuForMethod:aMethod;
  100. - _addDocuForMethod:aMethod;
  101.  
  102. // Controlling the windows
  103.  
  104. - showCheatWindow:sender;
  105. - showDocumentationOnly:sender;
  106. - showInterfaceOnly:sender;
  107. - showImplementationOnly:sender;
  108.  
  109. // Some delegate methods.
  110.  
  111. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  112. - browser:sender loadCell:cell atRow:(int)row inColumn:(int)column;
  113.  
  114. - textDidChange:sender;
  115. - textDidGetKeys:sender isEmpty:(BOOL)flag;
  116. - _highlightPrevious:(char *)aString inView:aText;
  117. - textShouldPerformCompletion:sender;
  118.  
  119. - windowDidBecomeKey:sender;
  120. - windowWillClose:sender;
  121.  
  122. @end
  123.  
  124. /*
  125.  * History: 13.01.95 Buh
  126.  *            
  127.  *
  128.  * Bugs: - ...
  129.  */