home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 04 / myscroll.h < prev    next >
C/C++ Source or Header  |  1992-01-27  |  2KB  |  60 lines

  1. // myscroll.h RHS 11/5/91
  2.  
  3. #if !defined(MYSCROLL_H)
  4. #define MYSCROLL_H
  5.  
  6. #include"scroller.h"
  7. #include"keyboard.h"
  8. #include"dupes.h"
  9. #include"buffer.h"
  10.  
  11. const DIRNAMELEN = 68;
  12.  
  13. class MyScroller : public Scroller, public Dupes
  14.     {
  15.     int numRows;                // number of records in file
  16.     int startRow;               // first record in buffer
  17.     int endRow;                 // last record in buffer
  18.     char far *DirNames;
  19.     Window *pathW;
  20.     BYTE purges_ok;
  21.     BufMgr bufMgr;
  22.     char file1[80], file2[80];
  23.  
  24. //    void DispBuffer(int line, int bufnum, BYTE attribute = SCROLLER_NORMAL);
  25.     void BufMgt(int action);
  26.  
  27. public:
  28.     MyScroller(Window *pathw,char *title, DWORD position, BYTE colors = SCROLLER_NORMAL_COLORS);
  29.     ~MyScroller(void);
  30.     void Init(int numbufs, int sizebufs);
  31.     void Open(void);
  32.  
  33.     void KeyProcess(int key);
  34.     void FillBufs(void);
  35.     void FormatRecord(char *buf);
  36.     void DispPath(void);
  37.     void PurgeAttributes(void);
  38.     void Delete(void);
  39.     void Purge(void);
  40.     char *CurFileName(char *buf);
  41.     void Select(void);
  42.  
  43.     char *GetBuffer(int bufnum); //     {   return bufMgr[bufnum]->buffer;  }
  44.     BYTE GetAttribute(int bufnum); //   {   return bufMgr[bufnum]->attribute;   }
  45.     void SetBuffer(int bufnum, char *buffer); //    {   strcpy(bufMgr[bufnum]->buffer,buffer);  }
  46.     void SetAttribute(int bufnum, BYTE attribute); //   {   bufMgr[bufnum]->attribute = attribute;  }
  47.     int  MaxBufs(void);
  48.     void Change(int item, char *contents, BYTE attribute, long recno);
  49.     void OpenFiles(void);
  50.     void CloseFiles(void);
  51.     void ReInit(void);
  52.     BOOL CompareSetup(void);
  53.     BOOL FileCompare(void);
  54.     BOOL IsDeleted(void);
  55.     };
  56.  
  57. #endif
  58.  
  59.  
  60.