home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / mmm_pkg.zip / mmm_os2.h < prev    next >
C/C++ Source or Header  |  1996-12-05  |  2KB  |  75 lines

  1. /**********************************************
  2. *   OS/2 include file for MMMX Editor         *
  3. *   Contains OS/2 WARP specific functions     *
  4. ***********************************************/
  5.  
  6. #ifndef __INCLUDED_MMM_OS2__
  7. #define __INCLUDED_MMM_OS2__
  8.  
  9. #define EXECUTER_FILENAME "__mmm__.cmd"
  10. //&<<&#include
  11. #define INCL_DOSQUEUES
  12. #define INCL_DOS
  13. #define INCL_SUB
  14.  
  15. #include <os2.h>
  16. #include <conio.h>
  17. #include <process.h>
  18. #include <direct.h>
  19. #include <dos.h>
  20.  
  21. #include "mmmx.h"
  22. #include "mmmgrep.h"
  23. //&>>&B 0 B 11
  24.  
  25. //&<<&class mmm_Screen;
  26. class mmm_Screen{
  27.   int need;
  28.   int WIDTH,HEIGHT;
  29. ////////////////  int OldScr,OldCl;
  30. ////////////////  char far *OldCurs,OldAttr;
  31. ///  void Clear();
  32.   VIOMODEINFO saveVideoConfig;
  33. public:
  34.   mmm_Screen();
  35.   ~mmm_Screen();
  36.   int GetH(){ return HEIGHT; }
  37.   int GetW(){ return WIDTH; }
  38.   void View();
  39.   int &Need(){ return need; }
  40.   void SetCursor(int x,int y,int attr);
  41.   void ClrCursor();
  42. };
  43. //&>>&9 0 9 D
  44.  
  45. //&<<&class mmm_KeyBoard;
  46. #ifdef __TURBOC__
  47. #  define IntArg ...
  48. #else
  49. #  define IntArg
  50. #endif
  51.  
  52. class mmm_KeyBoard{
  53.     APIRET retcode;
  54.     KBDKEYINFO keydata;
  55.     KBDINFO SaveKBD;
  56.     void InitKeyboardLayout();
  57.     char *InitDefaultAltCase();
  58. public:
  59.     char *AltCase;
  60.     char keys[4][108];
  61.     int LastScanCode;
  62.     void SetACode(int n);
  63.     mmm_KeyBoard();
  64.     ~mmm_KeyBoard();
  65.     int GetScan();
  66. };
  67.  
  68. void ProcessShiftsStatus(USHORT stat);
  69.   /////// mmmx.err
  70. //&>>&9 0 9 10
  71.  
  72. void MkScan(int scancode);
  73. #endif
  74. //&>>&D 0 D 12
  75.