2
0

fpconst.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. {
  2. This file is part of the Free Pascal Integrated Development Environment
  3. Copyright (c) 1998 by Berczi Gabor
  4. Constants used by the IDE
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. unit FPConst;
  12. interface
  13. uses Views,App,
  14. FVConsts,
  15. WViews,WEditor,WHTMLHlp;
  16. const
  17. VersionStr = '1.0.6';
  18. MaxRecentFileCount = 9;
  19. MaxToolCount = 16;
  20. ReservedWordMaxLen = 16;
  21. CompilerStatusUpdateDelay = 0.1; { in secs }
  22. {$undef USE_SPECIAL_BASENAME}
  23. {$ifdef m68k}
  24. {$ifdef cpui386}
  25. {$define USE_SPECIAL_BASENAME}
  26. FPBaseName = 'fpm68k';
  27. {$endif cpui386}
  28. {$endif m68k}
  29. {$ifdef powerpc}
  30. {$ifdef cpui386}
  31. {$define USE_SPECIAL_BASENAME}
  32. FPBaseName = 'fpppc';
  33. {$endif powerpc}
  34. {$endif m68k}
  35. {$ifdef i386}
  36. {$ifdef cpu68k}
  37. {$define USE_SPECIAL_BASENAME}
  38. FPBaseName = 'fpi386';
  39. {$endif cpu68k}
  40. {$endif i386}
  41. {$ifndef USE_SPECIAL_BASENAME}
  42. FPBaseName = 'fp';
  43. {$endif not USE_SPECIAL_BASENAME}
  44. ININame = FPBaseName+'.ini';
  45. DirInfoName = FPBaseName+'.dir';
  46. SwitchesName = FPBaseName+'.cfg';
  47. DesktopName = FPBaseName+'.dsk';
  48. BrowserName = FPBaseName+'.brw';
  49. BackgroundName = 'fp.ans';
  50. ReadmeName = 'readme.ide';
  51. ToolCaptureName = '__tool__.out'; { all '$' signs replaces with '_'s }
  52. ToolCaptureErr = '__tool__.err'; { all '$' signs replaces with '_'s }
  53. FilterCaptureName = '_filter_.out';
  54. FPOutFileName = 'fp___.out';
  55. FPErrFileName = 'fp___.err';
  56. GDBOutFileName = 'gdb___.out';
  57. GDBOutPutFileName = 'gdb___.txt';
  58. GDBPrompt = 'gdb>';
  59. DesktopTempName = 'fp___.dsk';
  60. GrepOutName = 'grep$$.out';
  61. GrepErrName = 'grep$$.err';
  62. CodeCompleteUnitName = '__fp__';
  63. HTMLIndexExt = WHTMLHlp.extHTMLIndex;
  64. HTMLExt = WHTMLHlp.extHTML;
  65. TemplateExt = '.pt';
  66. NGExt = '.ng';
  67. INFExt = '.inf';
  68. WinHelpExt = '.hlp';
  69. HelpFileExts = '*.tph;*.htm*;*'+HTMLIndexExt+';*'+NGExt+';*'+WinHelpExt+';*'+INFExt;
  70. {$ifdef UNIX}
  71. EnterSign = '<'+#196#217;
  72. {$else}
  73. EnterSign = #17#196#217;
  74. {$endif}
  75. { Main menu submenu indexes }
  76. menuFile = 0;
  77. menuTools = 6;
  78. { MouseAction constants }
  79. acNone = 0;
  80. acTopicSearch = 1;
  81. acGotoCursor = 2;
  82. acBreakpoint = 3;
  83. acEvaluate = 4;
  84. acAddWatch = 5;
  85. acBrowseSymbol = 6;
  86. acFirstAction = acTopicSearch;
  87. acLastAction = acBrowseSymbol;
  88. { Startup Option constants }
  89. soReturnToLastDir = $00000001;
  90. soHeapMonitor = $00000002;
  91. { Desktop Flag constants - what to include in the desktop file }
  92. dfHistoryLists = $00000001;
  93. dfClipboardContent = $00000002;
  94. dfWatches = $00000004;
  95. dfBreakpoints = $00000008;
  96. dfOpenWindows = $00000010;
  97. dfSymbolInformation = $00000020;
  98. dfCodeCompleteWords = $00000040;
  99. dfCodeTemplates = $00000080;
  100. { Auto Save flag constants }
  101. asEditorFiles = $00000001; { Editor files }
  102. asEnvironment = $00000002; { .INI file }
  103. asDesktop = $00000004; { .DSK file }
  104. { Misc. Options flag constants }
  105. moAutoTrackSource = $00000001;
  106. moCloseOnGotoSource = $00000002;
  107. moChangeDirOnOpen = $00000004;
  108. { Desktop Location constants }
  109. dlCurrentDir = $00;
  110. dlConfigFileDir = $01;
  111. { History ids }
  112. hidRunParameters = 200;
  113. hidOpenSourceFile = 201;
  114. hidPrimaryFile = 202;
  115. hidOpenIniFile = 203;
  116. hidSaveIniFile = hidOpenIniFile;
  117. hidOpenHelpFile = 204;
  118. hidConditionalDefines= 205;
  119. hidCompilerArgs = 206;
  120. hidWatchDialog = 207;
  121. hidBreakpointDialogName = 208;
  122. hidRunDir = 209;
  123. hidBreakpointDialogCond = 210;
  124. { Command constants }
  125. cmShowClipboard = 201;
  126. cmFindProcedure = 206;
  127. cmObjects = 207;
  128. cmModules = 208;
  129. cmGlobals = 209;
  130. cmRun = 210;
  131. cmParameters = 211;
  132. cmCompile = 212;
  133. cmMake = 213;
  134. cmBuild = 214;
  135. cmTarget = 215;
  136. cmPrimaryFile = 216;
  137. cmClearPrimary = 217;
  138. cmRunDir = 218;
  139. { cmWindowList = 219; defined in command.pas, too! - Gabor }
  140. cmHelpTopicSearch = 220;
  141. cmMsgGotoSource = 221;
  142. cmMsgTrackSource = 222;
  143. cmGotoCursor = 223;
  144. {cmToggleBreakpoint = 224; never disabled =>2403 }
  145. cmAddWatch = 225;
  146. cmTraceInto = 226;
  147. cmStepOver = 227;
  148. cmResetDebugger = 228;
  149. cmContToCursor = 229;
  150. cmOpenGDBWindow = 230;
  151. cmToolsMsgNext = 231;
  152. cmToolsMsgPrev = 232;
  153. cmGrep = 233;
  154. cmCompilerMessages = 234;
  155. cmSymbol = 235;
  156. cmStack = 236;
  157. cmBreakpointList = 237;
  158. cmWatches = 238;
  159. cmUntilReturn = 239;
  160. { WARNING these two are also defined in weditor.pas PM }
  161. { and why aren't these defines then removed? Gabor }
  162. { commented out, now in wviews.pas FK
  163. cmCopyWin = 240;
  164. cmPasteWin = 241;
  165. }
  166. cmRegisters = 242;
  167. cmFPURegisters = 243;
  168. cmDoReload = 244;
  169. cmVectorRegisters = 245;
  170. { in wviews.pas defined
  171. cmSelectAll = 246;
  172. cmSelectClear = 247;
  173. }
  174. cmNotImplemented = 1000;
  175. cmNewFromTemplate = 1001;
  176. cmShowReadme = 1002;
  177. cmSearchWindow = 1500;
  178. cmSourceWndClosing = 1601;
  179. cmCalculatorPaste = 1603;
  180. cmMsgClear = 1604;
  181. cmUpdateTools = 1605;
  182. { cmGrep = 160?;}
  183. cmAddItem = 1620;
  184. cmEditItem = 1621;
  185. cmDeleteItem = 1622;
  186. cmShowItem = 1623;
  187. cmHideItem = 1624;
  188. cmUserScreen = 1650;
  189. cmUserScreenWindow = 1651;
  190. cmEvaluate = 1652;
  191. cmCalculator = 1653;
  192. cmASCIITable = 1654;
  193. cmToolsMessages = 1700;
  194. cmToolsBase = 1800;
  195. cmRecentFileBase = 1850;
  196. cmCompiler = 2000;
  197. cmMemorySizes = 2001;
  198. cmLinker = 2002;
  199. cmDebugger = 2003;
  200. cmDirectories = 2004;
  201. cmTools = 2005;
  202. cmPreferences = 2006;
  203. cmEditor = 2007;
  204. cmMouse = 2008;
  205. cmStartup = 2009;
  206. cmColors = 2010;
  207. cmOpenINI = 2011;
  208. cmSaveINI = 2012;
  209. cmSaveAsINI = 2013;
  210. cmSwitchesMode = 2014;
  211. cmBrowser = 2015;
  212. cmDesktopOptions = 2016;
  213. cmCodeCompleteOptions=2017;
  214. cmCodeTemplateOptions=2018;
  215. cmKeys = 2019;
  216. cmAskSaveAll = 2020;
  217. cmRemoteDialog = 2021;
  218. cmTransferRemote = 2022;
  219. cmHelpContents = 2100;
  220. cmHelpIndex = 2101;
  221. cmHelpPrevTopic = 2103;
  222. cmHelpUsingHelp = 2104;
  223. cmHelpFiles = 2105;
  224. cmAbout = 2106;
  225. cmEditorOptions = 2202;
  226. cmBrowserOptions = 2203;
  227. cmTrackReference = 2300;
  228. cmGotoReference = 2301;
  229. cmEditBreakpoint = 2400;
  230. cmNewBreakpoint = 2401;
  231. cmDeleteBreakpoint = 2402;
  232. cmToggleBreakpoint = 2403;
  233. cmToggleBreakInList = 2404;
  234. cmDumpUndo = 2500;
  235. cmUndoAll = 2501;
  236. cmRedoAll = 2502;
  237. cmDebuggerStopped = 2600;
  238. cmDisassemble = 2601;
  239. cmSymBrowse = 2700;
  240. cmSymGotoSource = 2701;
  241. cmSymTrackSource = 2702;
  242. cmSymOptions = 2703;
  243. { Help constants }
  244. hcSourceWindow = 8000;
  245. hcHelpWindow = 8001;
  246. hcClipboardWindow = 8002;
  247. hcCalcWindow = 8003;
  248. hcInfoWindow = 8004;
  249. hcBrowserWindow = 8005;
  250. hcMessagesWindow = 8006;
  251. hcGDBWindow = 8007;
  252. hcBreakpointListWindow = 8008;
  253. hcASCIITableWindow = 8009;
  254. hcCompilerMessagesWindow = 8010;
  255. hcDisassemblyWindow = 8011;
  256. hcShift = 10000;
  257. hcNoAltXShift = 20000;
  258. hcUsingHelp = 2;
  259. hcContents = 3;
  260. hcQuit = hcShift+cmQuit;
  261. hcRedo = hcShift+cmRedo;
  262. hcFind = hcShift+cmFind;
  263. hcReplace = hcShift+cmReplace;
  264. hcSearchAgain = hcShift+cmSearchAgain;
  265. hcGotoLine = hcShift+cmJumpLine;
  266. hcUserScreen = hcShift+cmUserScreen;
  267. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  268. hcToolsMessages = hcShift+cmToolsMessages;
  269. hcToolsBase = hcShift+cmToolsBase;
  270. hcRecentFileBase = hcShift+cmRecentFileBase;
  271. hcCompiler = hcShift+cmCompiler;
  272. hcCompilerNoAltX = hcNoAltXShift+cmCompiler;
  273. hcMemorySizes = hcShift+cmMemorySizes;
  274. hcLinker = hcShift+cmLinker;
  275. hcDebugger = hcShift+cmDebugger;
  276. hcRemoteDialog = hcShift+cmRemoteDialog;
  277. hcTransferRemote = hcShift+cmTransferRemote;
  278. hcDirectories = hcShift+cmDirectories;
  279. hcTools = hcShift+cmTools;
  280. hcPreferences = hcShift+cmPreferences;
  281. hcEditor = hcShift+cmEditor;
  282. hcMouse = hcShift+cmMouse;
  283. hcStartup = hcShift+cmStartup;
  284. hcColors = hcShift+cmColors;
  285. hcKeys = hcShift+cmKeys;
  286. hcOpenINI = hcShift+cmOpenINI;
  287. hcSaveINI = hcShift+cmSaveINI;
  288. hcSaveAsINI = hcShift+cmSaveAsINI;
  289. hcCalculator = hcShift+cmCalculator;
  290. hcAsciiTable = hcShift+cmAsciiTable;
  291. { hcGrep = hcShift+cmGrep;}
  292. hcSwitchesMode = hcShift+cmSwitchesMode;
  293. hcBrowser = hcShift+cmBrowser;
  294. hcDesktopOptions = hcShift+cmDesktopOptions;
  295. hcCodeCompleteOptions=hcShift+cmCodeCompleteOptions;
  296. hcCodeTemplateOptions=hcShift+cmCodeTemplateOptions;
  297. hcAbout = hcShift+cmAbout;
  298. hcCompilerMessages = hcShift+cmCompilerMessages;
  299. hcSystemMenu = 9000;
  300. hcFileMenu = 9001;
  301. hcEditMenu = 9002;
  302. hcSearchMenu = 9003;
  303. hcRunMenu = 9004;
  304. hcCompileMenu = 9005;
  305. hcDebugMenu = 9006;
  306. hcToolsMenu = 9007;
  307. hcOptionsMenu = 9008;
  308. hcEnvironmentMenu = 9009;
  309. hcWindowMenu = 9010;
  310. hcHelpMenu = 9011;
  311. hcFirstCommand = hcSystemMenu;
  312. hcLastNormalCommand = hcNoAltXShift - 1;
  313. hcFirstNoAltXCommand = hcNoAltXShift;
  314. hcLastCommand = 65535;
  315. hcShowClipboard = hcShift+cmShowClipboard;
  316. hcCopyWin = hcShift+cmCopyWin;
  317. hcPasteWin = hcShift+cmPasteWin;
  318. hcSelectAll = hcShift+cmSelectAll;
  319. hcSelectClear = hcShift+cmSelectClear;
  320. hcFindProcedure = hcShift+cmFindProcedure;
  321. hcObjects = hcShift+cmObjects;
  322. hcModules = hcShift+cmModules;
  323. hcGlobals = hcShift+cmGlobals;
  324. hcSymbol = hcShift+cmSymbol;
  325. hcRun = hcShift+cmRun;
  326. hcRunDir = hcShift+cmRunDir;
  327. hcParameters = hcShift+cmParameters;
  328. hcResetDebugger = hcShift+cmResetDebugger;
  329. hcContToCursor = hcShift+cmContToCursor;
  330. hcUntilReturn = hcShift+cmUntilReturn;
  331. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  332. hcToolsMsgNext = hcShift+cmToolsMsgNext;
  333. hcToolsMsgPrev = hcShift+cmToolsMsgPrev;
  334. hcCompile = hcShift+cmCompile;
  335. hcMake = hcShift+cmMake;
  336. hcBuild = hcShift+cmBuild;
  337. hcTarget = hcShift+cmTarget;
  338. hcPrimaryFile = hcShift+cmPrimaryFile;
  339. hcClearPrimary = hcShift+cmClearPrimary;
  340. hcWindowList = hcShift+cmWindowList;
  341. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  342. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  343. hcHelpContents = hcShift+cmHelpContents;
  344. hcHelpIndex = hcShift+cmHelpIndex;
  345. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  346. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  347. hcHelpFiles = hcShift+cmHelpFiles;
  348. hcUpdate = hcShift+cmUpdate;
  349. hcMsgClear = hcShift+cmMsgClear;
  350. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  351. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  352. hcSymBrowse = hcShift+cmSymBrowse;
  353. hcSymGotoSource = hcShift+cmSymGotoSource;
  354. hcSymTrackSource = hcShift+cmSymTrackSource;
  355. hcSymOptions = hcShift+cmSymOptions;
  356. hcGotoCursor = hcShift+cmGotoCursor;
  357. hcNewBreakpoint = hcShift+cmNewBreakpoint;
  358. hcEditBreakpoint = hcShift+cmEditBreakpoint;
  359. hcDeleteBreakpoint = hcShift+cmDeleteBreakpoint;
  360. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  361. hcEvaluate = hcShift+cmEvaluate;
  362. hcAddWatch = hcShift+cmAddWatch;
  363. hcWatchesWindow = hcShift+cmWatches;
  364. hcGrep = hcShift+cmGrep;
  365. hcStackWindow = hcShift+cmStack;
  366. hcBreakPointList = hcShift+cmBreakpointList;
  367. hcRegistersWindow = hcShift+cmRegisters;
  368. hcFPURegisters = hcShift+cmFPURegisters;
  369. hcVectorRegisters = hcShift+cmVectorRegisters;
  370. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  371. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  372. hcEditorOptions = hcShift+cmEditorOptions;
  373. hcBrowserOptions = hcShift+cmBrowserOptions;
  374. hcDoReload = hcShift+cmDoReload;
  375. { History constants }
  376. hisChDirDialog = 2000;
  377. CIDEHelpDialog =
  378. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  379. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  380. #160#161#162#163 +
  381. #164#165#166;
  382. CSourceWindow =
  383. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  384. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  385. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  386. CBrowserWindow =
  387. #215#216#217#218#219#220#221#222#223#224#225#226;
  388. CBrowserListBox =
  389. #9#9#10#11#12;
  390. CBrowserTab =
  391. #6#12;
  392. CBrowserOutline = #9#10#10#11;
  393. CGDBInputLine = #9#9#10#11#12;
  394. CFPClockView = #0#227;
  395. CFPToolTip = #228;
  396. CFPMemo = #26#26#26#28#26#29#26#26#26#27#26#26#26#26#26#26#26;
  397. CFPSymbolMemo = #9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9;
  398. CHTMLSectionAttrs = #229#230#231#232#233#234;
  399. CIDEAppColor = CAppColor +
  400. { CIDEHelpDialog }
  401. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  402. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  403. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  404. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  405. { CSourceWindow }
  406. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  407. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  408. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  409. { CBrowserWindow }
  410. {215-226}#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F +
  411. { CFPClockView }
  412. {227-227}#$70 +
  413. { CToolTip }
  414. {228-228}#$20 +
  415. { CHTMLSectionAttrs }
  416. {229-234}#$ff#$3a#$37#$ff#$ff#$ff;
  417. implementation
  418. END.