home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / tvision / statbo / calc.h < prev   
Encoding:
C/C++ Source or Header  |  1992-01-27  |  730 b   |  35 lines

  1. #if !defined( __CALC_H )
  2. #define __CALC_H
  3.  
  4. #if !defined( __MATH_H )
  5. #include <math.h>
  6. #endif       // __MATH_H
  7.  
  8. #define DISPLAYLEN  45      // Length (width) of calculator display
  9.  
  10. enum TCalcState { csFirst = 1, csValid, csError };
  11.  
  12. const int cmCalcButton  = 200;
  13.  
  14. class TCalcDisplay : public TView
  15. {
  16. public:
  17.     TCalcDisplay(TRect& r);
  18.     ~TCalcDisplay();
  19.     virtual void handleEvent(TEvent& event);
  20.     virtual void draw();
  21. private:
  22.     TCalcState status;
  23.     char *dnfile;       // pointer to text to display as "status"
  24.     void calcKey(unsigned char key);
  25.     void ShowFiles(char *directory);
  26. };
  27.  
  28. class TCalculator : public TDialog
  29. {
  30. public:
  31.     TCalculator();
  32. };
  33.  
  34. #endif      // __CALC_H
  35.