home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / shape / iodshape.h < prev    next >
Text File  |  1997-04-02  |  4KB  |  125 lines

  1. /*====START_GENERATED_PROLOG======================================
  2.  */
  3. /*
  4.  *   COMPONENT_NAME: odshapepart
  5.  *
  6.  *   CLASSES: none
  7.  *
  8.  *   ORIGINS: 82,27
  9.  *
  10.  *
  11.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12.  *   All Rights Reserved
  13.  *   Licensed Materials - Property of IBM
  14.  *   US Government Users Restricted Rights - Use, duplication or
  15.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16.  *       
  17.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23.  *   OR PERFORMANCE OF THIS SOFTWARE.
  24.  */
  25. /*====END_GENERATED_PROLOG========================================
  26.  */
  27. /* @(#)Z 1.9 com/src/samples/shape/iodshape.h, odshapepart, od96nt, odnt9708d 97/02/25 13:39:49 (97/02/12 16:06:38) */
  28. #ifndef _SHAPEPRT_H_
  29. #define _SHAPEPRT_H_
  30.  
  31.  
  32.  
  33. // Constants used for Part Registration
  34. const ODType   kODKindShapePart          = "ShapePart";
  35. const ODType   kShapePartKindDisplayName = "ShapePart Kind";
  36. const ODType   kShapePartHandlerName     = "ShapePart";
  37. const ODType   kShapePartHandlerDisplayName  = "Shape Part";
  38. const ODType   kShapePartCategory        = "OpenDoc:Category:Sample";
  39. const ODType   kShapePartIconFileName    = "IODShape.ico";
  40.  
  41. #define kShapePartDLLName "iodshape"
  42.  
  43. // Constants for menu items
  44. #define kShapePartBGColorMenuID (MENUID_ACTIVEPART_USER + 3)       // Simple Part uses +1,+2
  45.  
  46. // Constants for NLS catalog and messages
  47. #define SHAPE_MSG_CATALOG        "iodshape.cat"  // ShapePart Messages are stored in iodshpe.msg
  48.  
  49. //default messages
  50. #define SHAPE_DEFMSG_COLORMENU   "Background Color..."
  51. #define SHAPE_DEFMSG_HELPMENU    "Shape Part help"
  52. #define SHAPE_DEFMSG_INFOMENU    "Shape Part information"
  53. #define SHAPE_DEFMSG_INFOTITLE   "Shape Part Information"
  54. #define SHAPE_DEFMSG_INFO        "Shape Part Version 1.0\n\
  55. Copyright International Business Machines Corporation 1996,1997. \
  56. All rights reserved."
  57.  
  58. // Constants for Help
  59. #define SHAPE_HELP_FILE          "iodshape.hlp"
  60. #define SHAPE_HELP_PANEL         100
  61.  
  62. // platform specific typedefs
  63.  
  64. #ifdef _PLATFORM_WIN32_
  65.  
  66. #define kShapePartDefaultColor  0x000000FF
  67.  
  68. #elif _PLATFORM_OS2_
  69.  
  70. typedef long COLORREF;
  71. #define kShapePartDefaultColor  0x00FF0000
  72.  
  73. #elif _PLATFORM_UNIX_
  74.  
  75. typedef Pixel COLORREF;
  76. #define kShapePartDefaultColor  0x000000FF
  77.  
  78. #endif
  79.  
  80. // end typedefs
  81.  
  82. // os2 color dialog constants
  83. #ifdef _PLATFORM_OS2_
  84.  
  85. #define RED                 0
  86. #define GREEN               1
  87. #define BLUE                2
  88.  
  89. #define COLORMIX          "ColorMix"
  90. #define ID_COLORS         4108
  91. #define ID_BCICON         100
  92. #define ID_MIX            20
  93. #define ID_LABEL_RED      21
  94. #define ID_LABEL_GREEN    22
  95. #define ID_LABEL_BLUE     23
  96. #define ID_SLIDER_BASE    24
  97. #define ID_SLIDER_RED     (ID_SLIDER_BASE + RED)
  98. #define ID_SLIDER_GREEN   (ID_SLIDER_BASE + GREEN)
  99. #define ID_SLIDER_BLUE    (ID_SLIDER_BASE + BLUE)
  100. #define ID_SPIN_BASE      28
  101. #define ID_SPIN_RED       (ID_SPIN_BASE + RED)
  102. #define ID_SPIN_GREEN     (ID_SPIN_BASE + GREEN)
  103. #define ID_SPIN_BLUE      (ID_SPIN_BASE + BLUE)
  104.  
  105. #endif // os2 color dialog
  106.  
  107.  
  108. // Undo-Redo strings
  109. #define kShapePartUndoBGColor  "Undo Background Color"
  110. #define kShapePartRedoBGColor  "Redo Background Color"
  111.  
  112. #define UNDO_BGCOLOR 1
  113.  
  114. // struct for undo/ redo
  115.  
  116. typedef struct shapepartundorec {
  117.  
  118.    unsigned long undoAction;
  119.    COLORREF newColor;
  120.    COLORREF oldColor;
  121.  
  122. } ShapePartUndoRec;
  123.  
  124. #endif
  125.