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

  1. #define HWIMMAN_OPH
  2.  
  3. #ifndef PULLDOWN_OPH
  4. #include <sdk\pulldown>
  5. #endif
  6.  
  7. #ifndef APPMAN_OPH
  8. #include <sdk\appman>
  9. #endif
  10.  
  11. #ifndef DLGBOX_OPH
  12. #include <sdk\dlgbox>
  13. #endif
  14.  
  15. #ifndef COMMAN_OPH
  16. #include <sdk\comman>
  17. #endif
  18.  
  19. #ifndef MENUBAR_OPH
  20. #include <sdk\menubar>
  21. #endif
  22.  
  23. /* Constants for wserv */
  24.  
  25. #define PR_WSERV_CONNECT_AT_BACK W_CONNECT_AT_BACK
  26. #define PR_WSERV_FOREGROUND 0x02
  27. #define PR_WSERV_CLIWIN_KEY 0x04
  28. #define PR_WSERV_CANCELLING 0x08
  29. #define PR_WSERV_BASIC_HELP 0x10
  30. #define PR_WSERV_FREEFORM_DIALLING 0x20
  31. #define PR_WSERV_INSERT_MODE 0x40
  32. #define PR_WSERV_INSERT_PENDING 0x80
  33. #define PR_WSERV_OWN_DEFAULT_FONT 0x100
  34. #define PR_WSERV_RECEIVED_KEY 0x200
  35. #define PR_WSERV_HIDDEN 0x400
  36. #define PR_WSERV_METRIC 0x800
  37. #define PR_WSERV_FULLSCREEN 0x1000
  38. #define PR_WSERV_CANCELLING_DIALOG 0x2000
  39. #define PR_WSERV_FROM_HWIF 0x4000
  40. #define PR_WSERV_OWNPRIO 0x8000
  41. #define PR_WSERV_HELP_INDEX 0x01
  42. #define WSERV_DTOB_HEX 3
  43. #define DEGREES_MODE 0x80
  44. #define DTOB_MAX_WIDTH 20
  45. #define WS_EVAL_ENV_SET 0
  46. #define WS_EVAL_ENV_GET 1
  47. #define WS_DIAL_ENV_SET 0
  48. #define WS_DIAL_ENV_GET 1
  49. #define PDEV_TEXT_MAX_LEN 14
  50. #define WS_LOCCHG_LOW 0x0100
  51. #define WS_LOCCHG_HIGH 0x4000
  52. #define WS_EM_STYLES 0x01
  53. #define WS_EM_PRINT_CONTEXT 0x02
  54. #define WS_EM_REUSE_BODY_BUFFER 0x04
  55. #define WS_EM_REUSE_STYLES_BUFFER 0x08
  56. #define WS_EM_CALLBACK 0x40
  57. #define MEMO_NO_CHANGE 0
  58. #define MEMO_NULL_LENGTH 1
  59. #define MEMO_STANDARD_CHANGE 2
  60.  
  61. /* Types for wserv */
  62.  
  63. STRUCT IN_WSERV
  64.     com_cat%
  65.     com_class%
  66. ENDS
  67.  
  68. STRUCT WSERV_INFO
  69.     menu#
  70.     mnitem#
  71.     menubar_id%
  72.     first_com#
  73.     count#
  74.     accel#(1)
  75. ENDS
  76.  
  77. STRUCT DL_DATA
  78.     id%
  79.     rbuf%
  80.     pdlg%
  81. ENDS
  82.  
  83. STRUCT WS_HIDE_APP_DATA
  84.     dupnp%
  85.     hidden#(6)
  86. ENDS
  87.  
  88. STRUCT WRAP_DATA
  89.     margin%
  90.     fmargin%
  91.     font%
  92.     style%
  93.     nlines%
  94.     ptable%
  95. ENDS
  96.  
  97. STRUCT WS_ALLOC_INFO
  98.     ncells%
  99.     nbytes%
  100. ENDS
  101.  
  102. STRUCT WS_TODAY_HOOK
  103.     next%
  104.     object%
  105.     message%
  106. ENDS
  107.  
  108. STRUCT MEMO_DATA_PART
  109.     len%
  110.     p%
  111. ENDS
  112.  
  113. STRUCT MEMO_DATA
  114.     body#(SIZEOF(MEMO_DATA_PART))
  115.     styles#(SIZEOF(MEMO_DATA_PART))
  116.     title#(SIZEOF(MEMO_DATA_PART))
  117. ENDS
  118.  
  119. STRUCT MEMO_CALLBACK
  120.     owner%
  121.     method%
  122. ENDS
  123.  
  124. /* Property of wserv */
  125.  
  126. STRUCT PRS_WSERV
  127.     ws#(SIZEOF(WS_EVENT_X))
  128.     com%
  129.     dial%
  130.     bar%
  131.     cli%
  132.     info%
  133.     oldinfo%
  134.     filter%
  135.     filmethod%
  136.     flags%
  137.     help_index_id%
  138.     help%
  139.     lock#
  140.     subdial#
  141.     sc#(10)
  142.     locmask%
  143.     filelist%
  144.     anim%
  145.     printer%
  146. ENDS
  147.  
  148. STRUCT PR_WSERV
  149.     root#(SIZEOF(PRS_ROOT))
  150.     active#(SIZEOF(PRS_ACTIVE))
  151.     wserv#(SIZEOF(PRS_WSERV))
  152. ENDS
  153.  
  154. /* Constants for hwimman */
  155.  
  156. #define H_COMMAND_DEFAULT_FILE 'D'
  157. #define H_COMMAND_OPEN_FILE 'O'
  158. #define H_COMMAND_CREATE_FILE 'C'
  159. #define H_COMMAND_EXIT 'X'
  160. #define H_COMMAND_TRANSLATE_FILE 'T'
  161. #define H_COMMAND_RUN_FILE 'R'
  162. #define H_COMMAND_LAUNCH_DYL 'L'
  163. #define H_COMMAND_BYPASS 'Z'
  164. #define FLG_APPMAN_FULLSCREEN 0x1000
  165. #define FLG_APPMAN_LINKING 0x2000
  166. #define FLG_APPMAN_FROM_HWIF 0x4000
  167. #define FLG_APPMAN_OWNPRIO 0x8000
  168. #define FLG_APPMAN_S3FS 0x0100
  169. #define FLG_APPMAN_WSERV_MASK (PR_WSERV_FROM_HWIF|PR_WSERV_OWNPRIO|PR_WSERV_FULLSCREEN)
  170. #define RUN_ACTIVE_CLEANUP_NONOTIFY -1
  171.  
  172. /* Types for hwimman */
  173.  
  174. STRUCT IN_HWIMMAN
  175.     flags%
  176.     wserv_cat%
  177.     wserv_class%
  178. ENDS
  179.  
  180. /* Property of hwimman */
  181.  
  182. STRUCT PRS_HWIMMAN
  183.     contig#
  184.     command#
  185.     defext%
  186.     aliasinfo%
  187.     yield%
  188. ENDS
  189.  
  190. STRUCT PR_HWIMMAN
  191.     root#(SIZEOF(PRS_ROOT))
  192.     appman#(SIZEOF(PRS_APPMAN))
  193.     hwimman#(SIZEOF(PRS_HWIMMAN))
  194. ENDS
  195.