home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / texted / vseeci.h < prev    next >
C/C++ Source or Header  |  1998-10-01  |  1KB  |  46 lines

  1. #ifndef VSEECI_H
  2. #define VSEECI_H
  3. #include <v/vkeys.h>
  4. #include <v/vtexted.h>
  5.  
  6. const int SBAllocLines = 500;    // Save Buffer line allocations
  7.  
  8.     enum { Cmd, Ins, Find };
  9.  
  10.     class vSeeCI : public vTextEdCmdInterp      // easy class to override
  11.       {
  12.  
  13.         public:
  14.           vSeeCI(vTextEditor* textEd, vCmdWindow* myCmdWin);
  15.           ~vSeeCI();
  16.  
  17.           virtual int ProcessKey(vKey key, unsigned int shift);
  18.           virtual void InitCmdInterp();
  19.  
  20.         protected:
  21.           int edit(vKey chr, unsigned int shift);
  22.           int inset(int val, int *set);
  23.           int RemoveLast(void);
  24.           int save(long cnt, int app);
  25.           int getsav();
  26.       int yankfile(long cnt);
  27.  
  28.           int reallocSaveBuff();    // for adding more save lines
  29.  
  30.         private:
  31.            int    cmdmode,        // 0: insert, 1: cmd
  32.                countWait,
  33.                lex_def;
  34.            long CmdCount,
  35.                param_count,
  36.                 slastl,            // Save Buff stuff
  37.                 savlen,            // number of lines for rmvlast
  38.                 nxtsav,            // next place to save line
  39.                 _maxSBLines;
  40.            vKey oldlex;            // previous command
  41.            BUFFPTR* _SaveBuff;        // save buffer
  42.            char newFindPat[MAX_LINE+2];
  43.  
  44.       };
  45. #endif
  46.