home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk21 / dir03 / f011470.re_ / f011470.re
Text File  |  1996-04-02  |  17KB  |  377 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (c) 1985-95;  Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. | "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley    |
  6. |  Systems, Inc.                            |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |   $Workfile:   rtypes.h  $
  18. |   $Revision:   6.35  $
  19. |          $Date:   12 Dec 1995 18:07:50  $
  20. |                                    |
  21. +----------------------------------------------------------------------*/
  22. #ifndef __rtypesH__
  23. #define __rtypesH__
  24.  
  25. /*----------------------------------------------------------------------+
  26. |                                    |
  27. |  NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE!    |
  28. |  NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE!    |
  29. |  NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE! NOTE!    |
  30. |                                    |
  31. |  BSI uses mixed case in all it's resourceclass ids. If you want to    |
  32. |  ensure uniqueness between your ids and all current and        |
  33. |  future BSI ids, make sure you use all upper or all lower case    |
  34. |  characters in your character constants.                |
  35. |                                    |
  36. |  EXCEPTIONS: str#,dilt,cmnd,gnrc,labl,levm,list,sash,scle,sepr,syns    |
  37. |                                    |
  38. +----------------------------------------------------------------------*/
  39. /*----------------------------------------------------------------------+
  40. |                                    |
  41. |  Internal Microstation Resource Type Identifiers               |
  42. |                                    |
  43. +----------------------------------------------------------------------*/
  44. #define RTYPE_MESSAGES            RTYPE( 's','t','r','#' )
  45. #define RTYPE_STRINGLIST        RTYPE( 's','t','r','L' )
  46. #define RTYPE_CharString        RTYPE( 'C','h','r','#' )
  47. #define RTYPE_ExtAttrList        RTYPE( 'x','A','t','L' )
  48. #define RTYPE_COMMAND            RTYPE( 'C','m','d','s' )
  49. #define RTYPE_COMMANDTABLE        RTYPE( 'C','m','d','T' )
  50. #define RTYPE_EXTCOMMANDTABLE        RTYPE( 'C','m','d','X' )
  51. #define RTYPE_CMDNAME            RTYPE( 'C','m','d','N' )
  52. #define RTYPE_ERRMSGS            RTYPE( 'E','r','r','s' )
  53. #define RTYPE_XLATE            RTYPE( 'X','l','a','t' )
  54. #define RTYPE_UCMVAR            RTYPE( 'U','c','m','V' )
  55. #define RTYPE_CHARXLT            RTYPE( 'C','X','l','t' )
  56.  
  57. /* USCONFIG and USINSTAL Types */
  58. #define RTYPE_CNFGDATA            RTYPE( 'C','n','f','D' )
  59. #define RTYPE_CNFGMENU            RTYPE( 'C','n','f','M' )
  60.  
  61. /* Database Server Types. */
  62. #define RTYPE_DBCOMMAND            RTYPE( 'D','B','C','d' )
  63. #define RTYPE_DBTYPE            RTYPE( 'D','B','T','y' )
  64.  
  65. /* MDL Types. */
  66. #define RTYPE_MDLDBGCMD            RTYPE( 'M','d','l','D' )
  67. #define RTYPE_MDLIMAGE            RTYPE( 'M','d','l','I' )
  68.  
  69. /* C Expression Evaluation */
  70. #define RTYPE_CMEMBER            RTYPE( 'C','E','m','e' )
  71. #define RTYPE_CNAME            RTYPE( 'C','E','n','a' )
  72. #define    RTYPE_CSTRUCT_NAME        RTYPE( 'C','E','s','t' )
  73. #define RTYPE_CTYPE            RTYPE( 'C','E','t','y' )
  74.  
  75. /* General items. */
  76. #define RTYPE_INTEGER            RTYPE( 'I','n','t','g' )
  77.  
  78. /* MicroStation Symbol Table */
  79. #define RTYPE_USTNSYMBOLS        RTYPE( 'U','s','t','S' )
  80.  
  81. /* MicroStation Symbol Table */
  82. #define RTYPE_AliasList            RTYPE( 'A','l','i','a' )
  83.  
  84. /*----------------------------------------------------------------------+
  85. |                                    |
  86. |   Standard Dialog Resource Types                        |
  87. |                                    |
  88. +----------------------------------------------------------------------*/
  89. #define RTYPE_DialogBox            RTYPE( 'd','B','o','x' )
  90. #define RTYPE_DialogItemList        RTYPE( 'd','i','l','t' )
  91. #define RTYPE_ItemList            RTYPE( 'i','L','s','t' )
  92. #define RTYPE_IdList            RTYPE( 'i','d','s','L' )
  93. #define RTYPE_ResourceDescr        RTYPE( 'r','s','D','s' )
  94. #define RTYPE_DialogPosition        RTYPE( 'd','P','o','s' )
  95. #define RTYPE_DialogPositionX        RTYPE( 'd','P','s','X' )
  96. #define RTYPE_PalettePosition        RTYPE( 'P','P','o','s' )
  97.  
  98. #define RTYPE_KeyinSaveArea        RTYPE( 'K','S','a','v' )
  99. #define RTYPE_HookFunction        RTYPE( 'h','F','n','c' )
  100. #define RTYPE_BasicProgramEditor    RTYPE( 'b','P','E',' ' )
  101. #define RTYPE_BasicCodeResource        RTYPE( 'b','C','o','d' )
  102. #define RTYPE_BasicCodeStamp        RTYPE( 'b','T','i','m' )
  103. #define RTYPE_BasicDebugPrefs        RTYPE( 'b','D','b','P' )
  104. #define RTYPE_BasicEntryElmUpdate   RTYPE( 'b','E','E','U' )
  105. #define RTYPE_BasicEntryJustHdr     RTYPE( 'b','H','d','r' )
  106. /* "Basic Extensions Version" resource type - stored inside MBE1.MA */
  107. #define RTYPE_BasicExtVersion        RTYPE( 'b','E','x','V' )
  108.  
  109. #define RTYPE_ButtonGroup        RTYPE( 'b','G','r','p' )
  110. #define RTYPE_CheckButton        RTYPE( 'c','B','t','n' )
  111. #define RTYPE_ColorPicker        RTYPE( 'c','P','c','k' )
  112. #define RTYPE_Command            RTYPE( 'c','m','n','d' )
  113. #define RTYPE_CmdItemList        RTYPE( 'C','I','L','i' )
  114. #define RTYPE_Generic            RTYPE( 'g','n','r','c' )
  115. #define RTYPE_GroupBox            RTYPE( 'g','B','o','x' )
  116. #define RTYPE_IconEditor        RTYPE( 'i','c','n','E' )
  117. #define RTYPE_IconCmd            RTYPE( 'i','C','m','d' )
  118. #define RTYPE_IconCmdX            RTYPE( 'i','C','m','X' )
  119. #define RTYPE_IconCmdSmallIcon        RTYPE( 'i','C','S','m' )
  120. #define RTYPE_IconCmdLargeIcon        RTYPE( 'i','C','L','g' )
  121. #define RTYPE_IconCmdPalette        RTYPE( 'i','P','a','l' )
  122. #define RTYPE_IconCmdPaletteX        RTYPE( 'i','P','l','X' ) /* Create only */
  123. #define RTYPE_IconCmdFrame        RTYPE( 'i','F','r','m' )
  124. #define RTYPE_IconCmdFrameX        RTYPE( 'i','F','m','X' ) /* Create Only */
  125. #define RTYPE_Label            RTYPE( 'l','a','b','l' )
  126. #define RTYPE_LevelMap            RTYPE( 'l','e','v','m' )
  127. #define RTYPE_LevelPicker        RTYPE( 'l','P','c','k' )
  128. /*  RTYPE_List is obsolete. Do not use it. */
  129. #define RTYPE_List            RTYPE( 'l','i','s','t' )
  130. #define RTYPE_ListBox            RTYPE( 'l','B','o','x' )
  131. #define RTYPE_MenuBar            RTYPE( 'm','B','a','r' )
  132. #define RTYPE_MenuBarX            RTYPE( 'm','B','r','X' )
  133. #define RTYPE_MultilineText        RTYPE( 'm','T','x','t' )
  134. #define RTYPE_OptionButton         RTYPE( 'o','B','t','n' )
  135. /*  RTYPE_PopupMenu is obsolete. Do not use it. */
  136. #define RTYPE_PopupMenu         RTYPE( 'p','M','e','n' )
  137. #define RTYPE_PrecisionButton        RTYPE( 'p','r','c','B' )
  138. #define RTYPE_PulldownMenu        RTYPE( 'p','d','M','n' )
  139. #define RTYPE_PulldownMenuX        RTYPE( 'p','d','M','X' )   /* Create only */
  140. #define RTYPE_PulldownOptionMenu    RTYPE( 'p','d','O','M' )
  141. #define RTYPE_PulldownCPickerMenu   RTYPE( 'p','d','C','M' )
  142. #define RTYPE_PulldownTextMenuItem  RTYPE( 'p','d','T','I' )
  143. #define RTYPE_PushButton        RTYPE( 'p','B','t','n' )
  144. #define RTYPE_RadioButton        RTYPE( 'r','B','t','n' )
  145. #define RTYPE_RadioButtonList        RTYPE( 'r','B','l','s' )
  146. #define RTYPE_Sash            RTYPE( 's','a','s','h' )
  147. #define RTYPE_Scale            RTYPE( 's','c','l','e' )
  148. #define RTYPE_ScrollBar            RTYPE( 's','B','a','r' )
  149. #define RTYPE_Separator            RTYPE( 's','e','p','r' )
  150. #define RTYPE_Synonyms          RTYPE( 's','y','n','s' )
  151. #define RTYPE_TabFolder            RTYPE( 'T','a','b','F' )
  152. #define RTYPE_Text            RTYPE( 'd','T','x','t' )
  153. #define RTYPE_ToolBox            RTYPE( 't','B','o','x' )
  154. #define RTYPE_ToggleButton        RTYPE( 't','B','t','n' )
  155. #define RTYPE_WindowMenu        RTYPE( 'w','M','e','n' )
  156.  
  157. #define    RTYPE_Icon            RTYPE( 'I','c','o','n' )
  158. #define RTYPE_StringArray        RTYPE( 's','t','r','A' )
  159.  
  160. #define RTYPE_VirtualKeyTable        RTYPE( 'v','T','b','l' )
  161. #define RTYPE_AcceleratorKeyTable   RTYPE( 'a','T','b','l' )
  162. #define    RTYPE_RunTimeConfig        RTYPE( 'r','t','C','f' ) /* req'd for MSC */
  163.  
  164. /* database dialog resource types - see dbdialog.h */
  165. #define RTYPE_DatabaseTableBox        RTYPE( 'd','b','T','b' )
  166.  
  167. /* font resource types - see fontrsrc.h */
  168. #define RTYPE_FontDefault        RTYPE( 'f','t','D','F' )
  169. #define RTYPE_FontFamily        RTYPE( 'f','t','F','M' )
  170.  
  171. #define RTYPE_FontName            RTYPE( 'f','t','N','M' )
  172. #define RTYPE_FontLibrary        RTYPE( 'f','t','L','B' )
  173. #define RTYPE_FontHeader        RTYPE( 'f','t','H','D' )
  174. #define RTYPE_FontCharacters        RTYPE( 'f','t','C','H' )
  175. #define RTYPE_FontVectors        RTYPE( 'f','t','V','C' )
  176. #define RTYPE_FontVectorOffsets     RTYPE( 'f','t','V','O' )
  177. #define RTYPE_FontGlyphs        RTYPE( 'f','t','G','L' )
  178. #define RTYPE_FontGlyphOffsets      RTYPE( 'f','t','G','O' )
  179. #define RTYPE_FontRange            RTYPE( 'f','t','B','R' )
  180. #define RTYPE_FontKerning        RTYPE( 'f','t','K','R' )
  181. #define RTYPE_FontLigature        RTYPE( 'f','t','L','G' )
  182. #define RTYPE_FontFractions        RTYPE( 'f','t','F','R' )
  183. #define RTYPE_FontUnicodeMap        RTYPE( 'f','t','U','M' )
  184. #define RTYPE_FontImporterVersion   RTYPE( 'f','t','I','V' )
  185. #define RTYPE_FontCharacterMap        RTYPE( 'f','t','C','M' )
  186.  
  187. /* text editor preferences - see textedit.h */
  188. #define RTYPE_TextEditPrefs        RTYPE( 't','e','P','R' )
  189. #define RTYPE_TextEditUnicodeInfo   RTYPE( 't','e','U','I' )
  190.  
  191. /* text editor preferences - see textedit.h */
  192. #define RTYPE_FontInstPrefs        RTYPE( 'f','i','P','R' )
  193.  
  194. /* Data Definition Resource Types. */
  195. #define RTYPE_DataDefBlock        RTYPE( 'd','D','e','f' )
  196. #define RTYPE_DataSize            RTYPE( 'd','S','i','z' )
  197.  
  198. /* TParse State Resource Type */
  199. #define RTYPE_TPARSESTATE        RTYPE( 'T','P','S','t' )
  200.  
  201. /* overall window position, windows 32 */
  202. #define RTYPE_OverallWindowPosition RTYPE( 'o','P','o','s' )
  203.  
  204. /* Dimension style type */
  205. #define RTYPE_Dimension            RTYPE( 'S','t','D','M' )
  206.  
  207. /* Multiline style type */
  208. #define RTYPE_Multiline            RTYPE( 'S','t','M','L' )
  209.  
  210. /* IGES translator resource constants  */
  211. #define RTYPE_IGESConstants        RTYPE( 'I','G','S','c' )
  212. #define RTYPE_IGESOutPrefs        RTYPE( 'I','G','O','p' )
  213. #define RTYPE_IGESInPrefs        RTYPE( 'I','G','I','p' )
  214. #define RTYPE_IGESLevelMap        RTYPE( 'l','M','a','p' )
  215. #define RTYPE_IGESFontMap        RTYPE( 'f','M','a','p' )
  216. #define RTYPE_IGESCellMap        RTYPE( 'c','M','a','p' )
  217. #define RTYPE_IGESCharMap        RTYPE( 'c','h','r','M' )
  218. #define RTYPE_IGESIntList        RTYPE( 'I','G','i','a' )
  219.  
  220.  
  221. /*----------------------------------------------------------------------+
  222. |                                    |
  223. |   Line Style Resource Types                        |
  224. |                                    |
  225. +----------------------------------------------------------------------*/
  226. #define RTYPE_LineStyle            RTYPE( 'l','s','L','S' )
  227. #define RTYPE_LineCode            RTYPE( 'l','s','L','C' )
  228. #define RTYPE_LinePoint            RTYPE( 'l','s','L','P' )
  229. #define RTYPE_PointSym            RTYPE( 'l','s','P','S' )
  230. #define RTYPE_LineStyleNames        RTYPE( 'l','s','N','M' )
  231.  
  232. /*----------------------------------------------------------------------+
  233. |                                    |
  234. |   Save Image Resource Types                        |
  235. |                                    |
  236. +----------------------------------------------------------------------*/
  237. #define RTYPE_SaveImage            RTYPE( 's','v','I','M' )
  238.  
  239. /*----------------------------------------------------------------------+
  240. |                                    |
  241. |   Command Browser Resource Types                    |
  242. |                                    |
  243. +----------------------------------------------------------------------*/
  244. #define RTYPE_CmdBrowser        RTYPE( 'c','M','D','b' )
  245.  
  246. /*----------------------------------------------------------------------+
  247. |                                    |
  248. |   Color Types                                |
  249. |                                    |
  250. +----------------------------------------------------------------------*/
  251. #define RTYPE_ColorDescr        RTYPE( 'C','D','s','c' )
  252. #define RTYPE_XColorArray        RTYPE( 'X','c','l','r' )
  253. #define RTYPE_ExactColorFlags        RTYPE( 'E','x','F','l' )
  254. #define RTYPE_ColorDefArray        RTYPE( 'C','d','f','A' )
  255. #define RTYPE_ColorDefStringList    RTYPE( 'C','d','f','L' )
  256. #define RTYPE_ColorDefVersion       RTYPE( 'C','d','f','V' )
  257. #define RTYPE_ColorDefDefault       RTYPE( 'C','d','f','D' )
  258.  
  259. /*----------------------------------------------------------------------+
  260. |                                    |
  261. |   Version Resource Type                        |
  262. |                                    |
  263. +----------------------------------------------------------------------*/
  264. #define RTYPE_Version            RTYPE( 'U','v','e','r' )
  265.  
  266. /*----------------------------------------------------------------------+
  267. |                                    |
  268. |   User Pref Resources                            |
  269. |                                    |
  270. +----------------------------------------------------------------------*/
  271. #define RTYPE_USERPREFS            RTYPE( 'U','p','r','f' )
  272. #define RTYPE_ButtonMap            RTYPE( 'B','t','n','M' )
  273. #define RTYPE_LineWeightMap        RTYPE( 'L','w','t','M' )
  274. #define RTYPE_DgnAppStartUp        RTYPE( 'D','S','t','U' )
  275. #define RTYPE_FileName            RTYPE( 'F','i','l','N' )
  276. #define RTYPE_XBorderInfo        RTYPE( 'X','B','r','d' )
  277. #define RTYPE_TrackArea            RTYPE( 'T','r','c','k' )
  278. #define RTYPE_NewTrackArea        RTYPE( 'N','t','r','k' )
  279. #define    RTYPE_PreviewDlogSize       RTYPE( 'P','r','v','S' )
  280.  
  281. /*----------------------------------------------------------------------+
  282. |                                        |
  283. |   Cell Selector Preference Resource Type                    |
  284. |                                        |
  285. +----------------------------------------------------------------------*/
  286. #define RTYPE_CellSelectorPrefs     RTYPE('c','S','p','F' )
  287.  
  288. /*----------------------------------------------------------------------+
  289. |                                        |
  290. |   Configuration Variable Resource Type                    |
  291. |                                        |
  292. +----------------------------------------------------------------------*/
  293. #define RTYPE_CfgVarList        RTYPE('c','f','g','V')
  294.  
  295. /*----------------------------------------------------------------------+
  296. |                                    |
  297. |   MicroStation Extended TCB Ids (and version-specific data def ids)    |
  298. |                                    |
  299. |   Although extended tcbs will never be saved as resources, their ids  |
  300. |   are defined here to ensure uniqueness for their associated        |
  301. |   data definition ids.                        |
  302. |                                    |
  303. +----------------------------------------------------------------------*/
  304. #define MSTCBID_ToolSettings        RTYPE( 'T','c','T','o' )
  305. #define DataDefID_ToolSettings_V0       RTYPE( 'd','T','o','0' )
  306. #define DataDefID_ToolSettings_V1       RTYPE( 'd','T','o','1' )
  307. #define DataDefID_ToolSettings_V2       RTYPE( 'd','T','o','2' )
  308.  
  309. #define MSTCBID_3DToolSettings        RTYPE( 'T','c','3','D' )
  310. #define DataDefID_3DToolSettings_V0     RTYPE( 'd','3','D','0' )
  311. #define DataDefID_3DToolSettings_V1     RTYPE( 'd','3','D','1' )
  312.  
  313. #define MSTCBID_RenderSettings        RTYPE( 'T','c','R','e' )
  314. #define DataDefID_RenderSettings_V0     RTYPE( 'd','R','e','0' )
  315. #define DataDefID_RenderSettings_V1     RTYPE( 'd','R','e','1' )
  316. #define DataDefID_RenderSettings_V2     RTYPE( 'd','R','e','2' )
  317.  
  318. #define MSTCBID_LStyleSettings        RTYPE( 'T','c','L','s' )
  319. #define DataDefID_LStyleSettings_V0     RTYPE( 'd','L','s','0' )
  320. #define DataDefID_LStyleSettings_V1     RTYPE( 'd','L','s','1' )
  321. #define DataDefID_LStyleSettings_V2     RTYPE( 'd','L','s','2' )
  322.  
  323. #define MSTCBID_ModelerSettings        RTYPE( 'T','c','M','m' )
  324. #define DataDefID_ModelerSettings_V0    RTYPE( 'd','M','m','0' )
  325. #define DataDefID_ModelerSettings_V1    RTYPE( 'd','M','m','1' )
  326.  
  327. #define MSTCBID_MpieceSettings        RTYPE( 'T','c','M','p' )
  328. #define DataDefID_MpieceSettings_V0    RTYPE( 'd','M','p','0' )
  329.  
  330. #define MSTCBID_TextSettings        RTYPE( 'T','c','T','x' )
  331. #define DataDefID_TextSettings_V0       RTYPE( 'd','T','x','0' )
  332. #define DataDefID_TextSettings_V1       RTYPE( 'd','T','x','1' )
  333. #define DataDefID_TextSettings_V2       RTYPE( 'd','T','x','2' )
  334.  
  335. #define MSTCBID_UpdateSequence      RTYPE( 'T','c','U','x' )
  336. #define DataDefID_UpdateSequence_V0     RTYPE( 'd','U','S','0' )
  337.         
  338. #define MSTCBID_DrawCompSettings      RTYPE( 'T','c','D','x' )
  339. #define DataDefID_DrawCompSettings_V0   RTYPE( 'd','D','S','0' )
  340.  
  341. /*----------------------------------------------------------------------+
  342. |                                    |
  343. |   Tags Types                                    |
  344. |                                    |
  345. +----------------------------------------------------------------------*/
  346. #define RTYPE_Tags_SetDefinition     RTYPE( 'T','g','L','b' )
  347.  
  348. /*----------------------------------------------------------------------+
  349. |                                    |
  350. |   DWGin/out Types                            |
  351. |                                    |
  352. +----------------------------------------------------------------------*/
  353. #define RTYPE_DWGInPrefs            RTYPE( 'D','G','I','p' )
  354. #define RTYPE_DWGOutPrefs            RTYPE( 'D','G','O','p' )
  355. #define RTYPE_DWGOutMorePrefs           RTYPE( 'D','M','O','p' )
  356. #define RTYPE_DWGLineType            RTYPE( 'D','B','L','t' )
  357.  
  358. /*----------------------------------------------------------------------+
  359. |                                    |
  360. |   Geomtol Types                            |
  361. |                                    |
  362. +----------------------------------------------------------------------*/
  363. #define RTYPE_GeomTol                RTYPE( 'g','E','o','M' )
  364.  
  365. /*----------------------------------------------------------------------+
  366. |                                    |
  367. |   Macros                                |
  368. |                                    |
  369. +----------------------------------------------------------------------*/
  370. #if defined (rm286)
  371. #define RTYPE( c1, c2, c3, c4 )    (((((((unsigned long)(c1)<<8)|c2)<<8)|c3)<<8)|c4)
  372. #else
  373. #define RTYPE( c1, c2, c3, c4 )    (((((((c1)<<8)|c2)<<8)|c3)<<8)|c4)
  374. #endif
  375.  
  376. #endif /* defined __rtypesH__ */
  377.