home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / listpm7.zip / pallet.H < prev    next >
C/C++ Source or Header  |  1999-07-12  |  11KB  |  260 lines

  1. #ifndef TWOD_H
  2. #define TWOD_H
  3. /*
  4. -------------------------------------------------------------------------------
  5. Copyright (c) IBM Corporation 1996, 1997.
  6. All Rights Reserved.
  7.  
  8. Permission is granted to copy, use, modify, and merge this software into your
  9. applications and to permit others to do any of the foregoing. You must include
  10. this permission and copyright notice in all copies and modified versions of
  11. this software. THIS SOFTWARE IS PROVIDED IN ITS 'AS IS' CONDITION.
  12. IBM DISCLAIMS ANY LIABILITY OF ANY KIND FOR DAMAGES WHATSOEVER RESULTING
  13. FROM THE USE OF THIS SOFTWARE.
  14. -------------------------------------------------------------------------------
  15. */
  16. // Sizes of the controls on the Palette dialog
  17. #define PALLETDIALOG_SPACER        10 // spacing between controls
  18. #define PALLETCANVAS_SQUARE         8 // 8x8 palette square
  19. #define PALLETCANVAS_SQUAREWIDTH   17 // 17x17 pixels per square
  20. #define PALLETCANVAS_SIZE          (PALLETCANVAS_SQUARE)*(PALLETCANVAS_SQUAREWIDTH)+1
  21. #define COLORSELECTOR_WIDTH        69 // width of colour selector
  22. #define COLORSELECTOR_HEIGHT       20 // height of colour selector
  23. #define COLORSELECTOR_COLORS       51 // number of colours in colour selector
  24. #define COLORSQUARE_WIDTH          40 // 40x40 pixels in sample colour square
  25.  
  26. #define ID_OK                              2109
  27. #define ID_CANCEL                          2110
  28. #define STR_OK                             2111
  29. #define STR_CANCEL                         2112
  30. #define ID_RESET                           2113
  31. #define STR_RESET 2114
  32.  
  33. #define WND_PALLET            4104
  34.  
  35. #define ID_CONTROL           32776
  36. #define ID_PALLET            32775
  37. #define ID_COLORSQUARE       32774
  38. #define ID_RSELECTOR         32773
  39. #define ID_GSELECTOR         32772
  40. #define ID_BSELECTOR         32771
  41. #define ID_GRSELECTOR        32770
  42.  
  43. #if 0
  44. #define ICON_ID             11
  45.  
  46. //**************************************************************************
  47. // window ids - used by IWindow constructors                               *
  48. //**************************************************************************
  49. #define ID_NULL             -1
  50. #define WND_MAIN              4096         //Main Window ID
  51. #define WND_DRAW             32776         //Drawing Area ID
  52. #define WND_TOOLBAR1          4098         //Tool Bar ID
  53. #define WND_TEXT              4099
  54. #define STR_HELLO             4100
  55. #define STR_INFO              4101
  56. #define WND_TOOLBAR2          4102
  57. #define ID_POPUP_MENU         4103
  58. #define WND_PALLET          0x1008
  59.  
  60. // Defines for graphic pushbuttons.  Do not move these out of order!
  61.  
  62. #define PALLET_STYLE         12289
  63. #define PALLET_NORM          12290
  64. #define PALLET_ROTATE        12291
  65. #define PALLET_SCALE         12292
  66. #define PALLET_CLIP          12293
  67. #define PALLET_AREA          12294
  68. #define PALLET_LINE          12295
  69. #define PALLET_DRAW          12296
  70. #define PALLET_RECTANGLE     12297
  71. #define PALLET_ELLIPSE       12298
  72. #define PALLET_POLYLINE      12299
  73. #define PALLET_POLYGON       12300
  74. #define PALLET_CURVE         12301
  75. #define PALLET_LOOP          12302
  76. #define PALLET_TEXT          12303
  77. #define PALLET_BITMAP        12304
  78.  
  79. #define PALLET_ARC           12305
  80. #define PALLET_PIE           12306
  81. #define PALLET_CHORD         12307
  82. #define PALLET_CBEZIER       12308
  83. #define PALLET_ACURVE        12309
  84. #define PALLET_LBEZIER       12310
  85. #define PALLET_ALOOP         12311
  86. #define PALLET_ADD           12312
  87. #define PALLET_SUBTRACT      12313
  88. #define PALLET_MULTIPLY      12314
  89. #define PALLET_XOR           12315
  90.  
  91. #define EAGLE                12800
  92. #define TAJMAHAL             12801
  93.  
  94. // defines for the mouse pointers
  95. #define POINTER_LINE         16385
  96. #define POINTER_DRAW         16386
  97. #define POINTER_RECTANGLE    16387
  98. #define POINTER_ELLIPSE      16388
  99. #define POINTER_POLYLINE     16389
  100. #define POINTER_POLYGON      16390
  101. #define POINTER_ARC          16391
  102. #define POINTER_PIE          16392
  103. #define POINTER_CHORD        16393
  104. #define POINTER_ROTATE       16394
  105. #define POINTER_SCALE        16395
  106. #define POINTER_CLIP         16396
  107. #define POINTER_TEXT         16397
  108. #define POINTER_BITMAP       16398
  109. // POINTER_NONE must be the last one
  110. #define POINTER_NONE         16399
  111.  
  112. #define TOOLBAR_SYSTEM1       25089
  113. #define LONG_OFFSET         100
  114.  
  115. // Defines for menu items.
  116. #define ID_OPERATIONS        16385
  117. #define ID_GRAPHICS          16386
  118. #define ID_PENSTYLE          16387
  119. #define ID_PEN               16388
  120. #define ID_FPATTERN          16389
  121. #define ID_LOOP              16390
  122. #define ID_CURVE             16391
  123. #define ID_FILL_MIXMODE      16392
  124. #define ID_FILL_PAINT        16393
  125. #define ID_FRAME_MIXMODE     16394
  126. #define ID_FRAME_PAINT       16395
  127.  
  128. #define ID_FILEMENU                        2000
  129. #define ID_VIEWMENU                        2001
  130. #define ID_TOOLMENU                        2002
  131. #define ID_FLCOLORS                        2003
  132. #define ID_COLORS                          2004
  133. #define ID_PATTERN                         2005
  134. #define ID_LINETYPE                        2006
  135. #define ID_LINEWIDTH                       2007
  136. #define ID_STYLEMENU                       2008
  137. #define ID_OPTIONSMENU                     2009
  138. #define ID_SETBITMAP                       2010
  139. #define ID_DRAWOPERATION                   2016
  140. #define ID_FILL                            2017
  141. #define ID_FRAME                           2018
  142. #define ID_FILLANDFRAME                    2019
  143. #define ID_PENTYPE_SOLID                   2101
  144. #define ID_PENTYPE_INVISIBLE               2102
  145. #define ID_PENTYPE_DASHDOT                 2103
  146. #define ID_PENTYPE_SHORTDASH               2104
  147. #define ID_PENTYPE_DOT                     2105
  148. #define ID_PENTYPE_DASHDOUBLEDOT           2106
  149. #define ID_PENTYPE_HAIRLINE                2107
  150. #define ID_OK                              2109
  151. #define ID_CANCEL                          2110
  152. #define ID_RED                             2111
  153. #define ID_GREEN                           2112
  154. #define ID_BLUE                            2113
  155. #define ID_PRINT                           2114
  156. #define ID_CORRECTION                      3000
  157. #define ID_PENWIDTH_1                      3001
  158. #define ID_PENWIDTH_2                      3002
  159. #define ID_PENWIDTH_3                      3003
  160. #define ID_PENWIDTH_4                      3004
  161. #define ID_PENWIDTH_5                      3005
  162. #define ID_PENWIDTH_6                      3006
  163. #define ID_PENWIDTH_7                      3007
  164. #define ID_PENWIDTH_8                      3008
  165. #define ID_PENWIDTH_9                      3009
  166. #define ID_PENWIDTH_10                     3010
  167. #define ID_CLEAR                           3011
  168.  
  169. #define ID_SC_FRAME_TMODE                  3014
  170. #define ID_IS_FRAME_TMODE                  3015
  171. #define ID_DC_FRAME_TMODE                  3016
  172. #define ID_ID_FRAME_TMODE                  3017
  173. #define ID_SORD_FRAME_TMODE                3018
  174. #define ID_SANDD_FRAME_TMODE               3019
  175. #define ID_SXORD_FRAME_TMODE               3020
  176. #define ID_ISANDD_FRAME_TMODE              3021
  177. #define ID_ISORD_FRAME_TMODE               3022
  178. #define ID_SANDID_FRAME_TMODE              3023
  179. #define ID_SORID_FRAME_TMODE               3024
  180. #define ID_IRSANDD_FRAME_TMODE             3025
  181. #define ID_IRSORD_FRAME_TMODE              3026
  182. #define ID_IRSXORD_FRAME_TMODE             3027
  183. #define ID_ONE_FRAME_TMODE                 3028
  184. #define ID_ZERO_FRAME_TMODE                3029
  185. #define ID_SC_FILL_TMODE                   3030
  186. #define ID_IS_FILL_TMODE                   3031
  187. #define ID_DC_FILL_TMODE                   3032
  188. #define ID_ID_FILL_TMODE                   3033
  189. #define ID_SORD_FILL_TMODE                 3034
  190. #define ID_SANDD_FILL_TMODE                3035
  191. #define ID_SXORD_FILL_TMODE                3036
  192. #define ID_ISANDD_FILL_TMODE               3037
  193. #define ID_ISORD_FILL_TMODE                3038
  194. #define ID_SANDID_FILL_TMODE               3039
  195. #define ID_SORID_FILL_TMODE                3040
  196. #define ID_IRSANDD_FILL_TMODE              3041
  197. #define ID_IRSORD_FILL_TMODE               3042
  198. #define ID_IRSXORD_FILL_TMODE              3043
  199. #define ID_ONE_FILL_TMODE                  3044
  200. #define ID_ZERO_FILL_TMODE                 3045
  201. #define ID_CCOLORS                         3046
  202. #define ID_PATTERN_SOLID                   3049
  203. #define ID_PATTERN_BDIAGONAL               3050
  204. #define ID_PATTERN_FDIAGONAL               3051
  205. #define ID_PATTERN_CROSS                   3052
  206. #define ID_PATTERN_DIAGONALCROSS           3053
  207. #define ID_PATTERN_HORIZONTAL              3054
  208. #define ID_PATTERN_VERTICAL                3055
  209. #define ID_PATTERN_EAGLE                   3056
  210. #define ID_PATTERN_TAJMAHAL                3057
  211. #define ID_FPATTERN_SOLID                  3058
  212. #define ID_FPATTERN_BDIAGONAL              3059
  213. #define ID_FPATTERN_FDIAGONAL              3060
  214. #define ID_FPATTERN_CROSS                  3061
  215. #define ID_FPATTERN_DIAGONALCROSS          3062
  216. #define ID_FPATTERN_HORIZONTAL             3063
  217. #define ID_FPATTERN_VERTICAL               3064
  218. #define ID_FPATTERN_EAGLE                  3065
  219. #define ID_FPATTERN_TAJMAHAL               3066
  220.  
  221. // Printing menu defines
  222. #define MI_MIS_PRINT          5000
  223. #define MI_PREVIEWER          5001
  224. #define MI_DIALOG             5002
  225.  
  226. // Menu defines for OS2
  227. #define ID_OPTIONS_MENU         6000
  228. #define ID_STYLES_MENU          6001
  229. #define ID_FRAME_PAINT_MENU     6002
  230. #define ID_MIX_MODE_MENU        6003
  231. #define ID_PATTERN_MENU         6004
  232. #define ID_FILL_PAINT_MENU      6005
  233. #define ID_FILL_MIX_MODE_MENU   6006
  234. #define ID_FILL_PATTERN_MENU    6007
  235. #define ID_PEN_MENU             6008
  236. #define ID_PEN_STYLE_MENU       6009
  237. #define ID_PEN_WIDTH_MENU       6010
  238. #define ID_DRAWING_OPERATION_MENU       6011
  239. #define ID_GRAPHICS_MENU        6012
  240. #define ID_CURVE_MENU           6013
  241. #define ID_LOOP_MENU            6014
  242. #define ID_OPERATIONS_MENU      6015
  243. #define ID_AREA_MENU            6016
  244. #define ID_PRINT_MENU           6017
  245.  
  246. // Sizes of the controls on the Palette dialog
  247. #define PALLETDIALOG_SPACER        10 // spacing between controls
  248. #define PALLETCANVAS_SQUARE         8 // 8x8 palette square
  249. #define PALLETCANVAS_SQUAREWIDTH   17 // 17x17 pixels per square
  250. #define PALLETCANVAS_SIZE          (PALLETCANVAS_SQUARE)*(PALLETCANVAS_SQUAREWIDTH)+1
  251. #define COLORSELECTOR_WIDTH        69 // width of colour selector
  252. #define COLORSELECTOR_HEIGHT       20 // height of colour selector
  253. #define COLORSELECTOR_COLORS       51 // number of colours in colour selector
  254. #define COLORSQUARE_WIDTH          40 // 40x40 pixels in sample colour square
  255.  
  256. #endif
  257.  
  258. #endif
  259.  
  260.