home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / DIALDLGS.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  2.0 KB  |  105 lines

  1. #define DIALDLGS_OPH
  2.  
  3. #ifndef DLGBOX_OPH
  4. #include <sdk\dlgbox>
  5. #endif
  6.  
  7. #ifndef WR_IO_OPH
  8. /* AC: should include <sdk\wr_io> here,
  9.    but runs out of memory so just
  10.    define what is needed here */
  11. #define WR_MAX_DIAL_STRING 24
  12. #define WR_MAX_IN_STRING 64
  13. #endif
  14.  
  15. /* Property of dialdlg */
  16.  
  17. STRUCT PRS_DIALDLG
  18.     dialao%
  19. ENDS
  20.  
  21. STRUCT PR_DIALDLG
  22.     root#(SIZEOF(PRS_ROOT))
  23.     win#(SIZEOF(PRS_WIN))
  24.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  25.     dlgbox#(SIZEOF(PRS_DLGBOX))
  26.     dialdlg#(SIZEOF(PRS_DIALDLG))
  27. ENDS
  28.  
  29. /* Property of freedial */
  30.  
  31. STRUCT PRS_FREEDIAL
  32.     current%
  33.     str#(WR_MAX_DIAL_STRING+2)
  34. ENDS
  35.  
  36. STRUCT PR_FREEDIAL
  37.     root#(SIZEOF(PRS_ROOT))
  38.     win#(SIZEOF(PRS_WIN))
  39.     lodger#(SIZEOF(PRS_LODGER))
  40.     freedial#(SIZEOF(PRS_FREEDIAL))
  41. ENDS
  42.  
  43. /* Property of fdialdlg */
  44.  
  45. STRUCT PR_FDIALDLG
  46.     root#(SIZEOF(PRS_ROOT))
  47.     win#(SIZEOF(PRS_WIN))
  48.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  49.     dlgbox#(SIZEOF(PRS_DLGBOX))
  50.     dialdlg#(SIZEOF(PRS_DIALDLG))
  51. ENDS
  52.  
  53. /* Property of cntrydlg */
  54.  
  55. STRUCT PR_CNTRYDLG
  56.     root#(SIZEOF(PRS_ROOT))
  57.     win#(SIZEOF(PRS_WIN))
  58.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  59.     dlgbox#(SIZEOF(PRS_DLGBOX))
  60. ENDS
  61.  
  62. /* Constants for sdialdlg */
  63.  
  64. #define PAN_TONE_LENGTH_TICKS 4
  65. #define PAN_DELAY_LENGTH_TICKS 4
  66. #define PAN_PAUSE_LENGTH_TICKS 32
  67. #define PC_TONE_LENGTH_TICKS 6
  68. #define PC_DELAY_LENGTH_TICKS 4
  69. #define PC_PAUSE_LENGTH_TICKS 18
  70. #define SMART_DIAL_MAX_PROMPT 11
  71.  
  72. /* Types for sdialdlg */
  73.  
  74. STRUCT SMART_DIAL_ITEM
  75.     pmt#(SMART_DIAL_MAX_PROMPT+1)
  76.     str#(WR_MAX_IN_STRING+2)
  77. ENDS
  78.  
  79. STRUCT SMART_DIAL_DATA
  80.     count%
  81.     it#(OPPEVAL(SIZEOF(SMART_DIAL_ITEM)*(DLGBOX_MAX_ITEM-3)))
  82. ENDS
  83.  
  84. STRUCT SMART_DIAL_DATA_S
  85.     count%
  86.     it#(SIZEOF(SMART_DIAL_ITEM))
  87. ENDS
  88.  
  89. STRUCT DIAL_ENVAR
  90.     toneLengthTicks%
  91.     delayLengthTicks%
  92.     pauseLengthTicks%
  93.     dialOutCode#(6)
  94. ENDS
  95.  
  96. /* Property of sdialdlg */
  97.  
  98. STRUCT PR_SDIALDLG
  99.     root#(SIZEOF(PRS_ROOT))
  100.     win#(SIZEOF(PRS_WIN))
  101.     dlgchain#(SIZEOF(PRS_DLGCHAIN))
  102.     dlgbox#(SIZEOF(PRS_DLGBOX))
  103.     dialdlg#(SIZEOF(PRS_DIALDLG))
  104. ENDS
  105.