home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / uicldd.zip / IDMCOMM.HPP < prev    next >
Text File  |  1993-09-07  |  7KB  |  134 lines

  1. #ifndef _IDMCOMM_
  2. #define _IDMCOMM_
  3.  
  4.  
  5. #ifndef _ISTRING_
  6.   #include <istring.hpp>
  7. #endif
  8.  
  9. struct IDM {
  10. /*-------------------------------- Enumerations --------------------------------
  11. | These enumerations define various direct manipulation values:                |
  12. |   Source            - Enumeration of the possible drag start sources:        |
  13. |                         pointingDevice - Drag initiated via mouse.           |
  14. |                         keyboard       - Drag initiated via keyboard.        |
  15. |                                                                              |
  16. |   DropIndicator     - Enumeration of possible drop indicator values:         |
  17. |                         ok             - Drop permitted.                     |
  18. |                         notOk          - Not permitted at this location.     |
  19. |                         operationNotOk - Operation(s) not permitted.         |
  20. |                         neverOk        - Not permitted on this window.       |
  21. |                                                                              |
  22. |   RenderCompletion  - Enumeration of render completion values:               |
  23. |                         retry          - Source has completed the rendering  |
  24. |                                          operation and will allow the        |
  25. |                                          target to retry its part of the     |
  26. |                                          operation if it fails.              |
  27. |                         renderOk       - Source has completed the rendering  |
  28. |                                          operation.                          |
  29. |                         fail           - Source failed to complete the       |
  30. |                                          rendering operation.                |
  31. |                                                                              |
  32. |   DragImageStyle    - Enumeration of the possible styles to be used when     |
  33. |                       displaying the drag images:                            |
  34. |                         stack3AndFade  - Show 3 images in full and then show |
  35. |                                          an image which looks as if the rest |
  36. |                                          fade out.  This is optimal when the |
  37. |                                          user is dragging more than 3 items. |
  38. |                                          Performance is increased by not     |
  39. |                                          having to draw an image for every   |
  40. |                                          item.  The images used are provided |
  41. |                                          by the application and stored in    |
  42. |                                          the individual IDMItem objects      |
  43. |                         allStacked     - Show an image for each drag item.   |
  44. |                                          For many drag items, performance    |
  45. |                                          while dragging could be slow.  (See |
  46. |                                          stack3AndFade) The images used are  |
  47. |                                          provided by the application and     |
  48. |                                          stored in the individual IDMItem    |
  49. |                                          objects.                            |
  50. |                         systemImages   - Use generic system images and       |
  51. |                                          ignore the images in the IDMItem    |
  52. |                                          objects if they are there.  NOTE:   |
  53. |                                          It is not necessary to create       |
  54. |                                          images if this style is used since  |
  55. |                                          they will be ignored.               |
  56. |                                                                              |
  57. |   DiscardIndicator  - Enumeration of possible discard indicator values:      |
  58. |                         sourceDiscards - Source window accepts               |
  59. |                                          responsibility for the operation.   |
  60. |                         targetDiscards - Target window accepts               |
  61. |                                          responsibility for the operation.   |
  62. |                         abortDiscard   - Aborts the entire operation.        |
  63. |                                                                              |
  64. |   PrintIndicator    - Enumeration of possible print indicator values:        |
  65. |                         sourcePrints   - Source window accepts               |
  66. |                                          responsibility for the operation.   |
  67. |                         targetPrints   - Target window accepts               |
  68. |                                          responsibility for the operation.   |
  69. |                         abortPrint     - Aborts the entire operation.        |
  70. ------------------------------------------------------------------------------*/
  71. enum Source
  72. {
  73.   pointingDevice,
  74.   keyboard
  75. };
  76.  
  77. enum DropIndicator
  78. {
  79.   notOk          = 0x0000,
  80.   ok             = 0x0001,
  81.   operationNotOk = 0x0002,
  82.   neverOk        = 0x0003
  83. };
  84.  
  85. enum RenderCompletion
  86. {
  87.   retry          = 0x0008,
  88.   renderOk       = 0x0010,
  89.   fail           = 0x0020
  90. };
  91.  
  92. enum DragImageStyle
  93. {
  94.   stack3AndFade,
  95.   allStacked,
  96.   systemImages
  97. };
  98.  
  99. enum DiscardIndicator
  100. {
  101.   sourceDiscards = 0x0001,
  102.   targetDiscards = 0x0002,
  103.   abortDiscard   = 0x0003
  104. };
  105.  
  106. enum PrintIndicator
  107. {
  108.   sourcePrints   = 0x0001,
  109.   targetPrints   = 0x0002,
  110.   abortPrint     = 0x0003
  111. };
  112.  
  113. /*------------------------------- Type Constants ------------------------------+
  114. | These static constants define various direct manipulation drag item types:   |
  115. |   TEXT            - Generic text drag item type                              |
  116. |   BITMAP          - Bitmap drag item type                                    |
  117. |   ICON            - Icon drag item type                                      |
  118. |   FILE            - FILE drag item type                                      |
  119. |   CONTAINER       - Container drag item type                                 |
  120. |   CONTAINEROBJECT - Container object drag item type                          |
  121. |   UNKNOWN         - Unknown drag item type                                   |
  122. ------------------------------------------------------------------------------*/
  123. static const IString
  124.   TEXT,
  125.   BITMAP,
  126.   ICON,
  127.   FILE,
  128.   CONTAINER,
  129.   CONTAINEROBJECT,
  130.   UNKNOWN;
  131. };
  132.  
  133. #endif
  134.