home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Muddweller 1.2 / source code / Main / CommandView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-14  |  1.2 KB  |  44 lines  |  [TEXT/MPS ]

  1. /* CommandView - Implementation of TCommandView                               */
  2.  
  3. #ifndef __COMMANDVIEW__
  4. #define __COMMANDVIEW__
  5.  
  6.         // • MacApp
  7. #ifndef __UMacApp__
  8. #include "UMacApp.h"
  9. #endif
  10.  
  11. #ifndef __UDialog__
  12. #include "UDialog.h"
  13. #endif
  14.  
  15.  
  16. class TCommandView: public TTEView {
  17. public:
  18.     int fMaxLines, fCurIndex, fFirstIndex, fShowIndex, fSelStart, fSelEnd;
  19.     Handle **fHandList;
  20.     TDocument *fMyDocument;
  21.     
  22.     virtual pascal void CalcMinSize (VPoint *minSize);
  23.     virtual pascal Boolean ClikLoop (void);
  24.     virtual pascal TCommand *DoKeyCommand (short ch, short aKeyCode,
  25.         EventInfo *info);
  26.     virtual pascal TCommand *DoMouseCommand (Point *theMouse, EventInfo *info,
  27.         Point *hysteresis);
  28.     virtual pascal void Free (void);
  29.     virtual pascal long GrowZone (long needed);
  30.     virtual pascal void IRes (TDocument *itsDocument, TView *itsSuperView,
  31.         Ptr *itsParams);
  32.     virtual pascal void RevealRect (VRect *rectToReveal, Point minToSee,
  33.         Boolean redraw);
  34.     virtual pascal void ScrollHist (Boolean scrollUp);
  35.     virtual pascal void SendLine (void);
  36.     virtual pascal void SetBaseStyle (TextStyle *theStyle, Boolean redraw);
  37.     virtual pascal void SetHistSize (long lines);
  38. };
  39.  
  40.  
  41. void InitCommandView (void);
  42.  
  43. #endif
  44.