home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / DATATYPE.H < prev    next >
Text File  |  1993-12-09  |  2KB  |  64 lines

  1. /************************************************************************
  2. **
  3. ** @(#)datatype.h    12/03/93    Chris Ahlstrom
  4. **
  5. **  ------------------------
  6. **  73340.26!compuserve.com
  7. **  ------------------------
  8. **
  9. **    Declares just one thing... the enumeration DataType, which
  10. ** helps tv_menu.h (FACE_TV library) and win_menu.h (FACE_WIN library)
  11. ** define a universally used type.
  12. **
  13. *************************************************************************/
  14.  
  15. #if !defined(DATATYPE_h)                // { DATATYPE_h
  16. #define DATATYPE_h
  17.  
  18.  
  19. /************************************************************************
  20. ** DataType
  21. **
  22. **    We support a very simple set of data types.  There is no
  23. ** verification of data entry as the data is entered.  Instead, we
  24. ** lets you type what you want.  When you leave the field, it converts
  25. ** numeric types to a number.  If your number comes up wrong (usually
  26. ** the "wrong" value is a zero), go back, hit Esc, and fix it!
  27. **
  28. **    Provides a straighforward way of generating data for Turbo Vision
  29. ** button-boxes.
  30. **
  31. *************************************************************************/
  32.  
  33. typedef enum
  34. {
  35.     NormalField = -1,        // no special data-type handling needed
  36.     NullField    = 0,        // the field consists only of a label
  37.     Extended,            // ints, longs, & floats with linear remapping
  38.     String,            // string with NULL terminator
  39.     ByteString,            // string without NULL terminator
  40.     UnsignedByte,        // for byte-sized values
  41.     SignedByte,            // signed byte-sized values
  42.     Integer,            // positive and negative short integers
  43.     Hex,            // same as Integer, but hex is hoped for
  44.     LongInteger,        // long integers (copped from Turbo Vision)
  45.     HexAddress,            // long hex (seg:off) (same as long currently)
  46.     Float,            // double-precision numbers
  47.     Checkbox,            // Turbo Vision (TV) check-box
  48.     Radiobox,            // Turbo Vision (TV) radio-button-box
  49.     Checkbyte,            // TV check-box for byte-sizes
  50.     Radiobyte,            // TV radio-button-box for byte-sizes
  51.     DateField,            // simple American mm/dd/yy format
  52.     TimeField,            // simple American hh:mm:ss format
  53.     Money,            // simple American money format $xxxxx.yy
  54.     FloatControl,        // mouse/key control of float numbers
  55.  
  56.     DataTypeUnused,        // reserved for expansion up to 31
  57.  
  58.     DataTypeMax = Money        // don't exceed this value
  59.  
  60. } DataType;
  61.  
  62.  
  63. #endif                            // } DATATYPE_h
  64.