fpconst.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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.12';
  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+';*'+ExtChm;
  70. EnterSign = #17#196#217;
  71. { Main menu submenu indexes }
  72. menuFile = 0;
  73. menuTools = 6;
  74. { MouseAction constants }
  75. acNone = 0;
  76. acTopicSearch = 1;
  77. acGotoCursor = 2;
  78. acBreakpoint = 3;
  79. acEvaluate = 4;
  80. acAddWatch = 5;
  81. acBrowseSymbol = 6;
  82. acFirstAction = acTopicSearch;
  83. acLastAction = acBrowseSymbol;
  84. { Startup Option constants }
  85. soReturnToLastDir = $00000001;
  86. soHeapMonitor = $00000002;
  87. { Desktop Flag constants - what to include in the desktop file }
  88. dfHistoryLists = $00000001;
  89. dfClipboardContent = $00000002;
  90. dfWatches = $00000004;
  91. dfBreakpoints = $00000008;
  92. dfOpenWindows = $00000010;
  93. dfSymbolInformation = $00000020;
  94. dfCodeCompleteWords = $00000040;
  95. dfCodeTemplates = $00000080;
  96. { Auto Save flag constants }
  97. asEditorFiles = $00000001; { Editor files }
  98. asEnvironment = $00000002; { .INI file }
  99. asDesktop = $00000004; { .DSK file }
  100. { Misc. Options flag constants }
  101. moAutoTrackSource = $00000001;
  102. moCloseOnGotoSource = $00000002;
  103. moChangeDirOnOpen = $00000004;
  104. { Desktop Location constants }
  105. dlCurrentDir = $00;
  106. dlConfigFileDir = $01;
  107. { History ids }
  108. hidRunParameters = 200;
  109. hidOpenSourceFile = 201;
  110. hidPrimaryFile = 202;
  111. hidOpenIniFile = 203;
  112. hidSaveIniFile = hidOpenIniFile;
  113. hidOpenHelpFile = 204;
  114. hidConditionalDefines= 205;
  115. hidCompilerArgs = 206;
  116. hidWatchDialog = 207;
  117. hidBreakpointDialogName = 208;
  118. hidRunDir = 209;
  119. hidBreakpointDialogCond = 210;
  120. hidPrinterDevice = 211;
  121. hidEvaluate = 212;
  122. { Command constants }
  123. cmShowClipboard = 201;
  124. cmFindProcedure = 206;
  125. cmObjects = 207;
  126. cmModules = 208;
  127. cmGlobals = 209;
  128. cmRun = 210;
  129. cmParameters = 211;
  130. cmCompile = 212;
  131. cmMake = 213;
  132. cmBuild = 214;
  133. cmTarget = 215;
  134. cmPrimaryFile = 216;
  135. cmClearPrimary = 217;
  136. cmRunDir = 218;
  137. { cmWindowList = 219; defined in command.pas, too! - Gabor }
  138. cmHelpTopicSearch = 220;
  139. cmMsgGotoSource = 221;
  140. cmMsgTrackSource = 222;
  141. cmGotoCursor = 223;
  142. {cmToggleBreakpoint = 224; never disabled =>2403 }
  143. cmAddWatch = 225;
  144. cmTraceInto = 226;
  145. cmStepOver = 227;
  146. cmResetDebugger = 228;
  147. cmContToCursor = 229;
  148. cmOpenGDBWindow = 230;
  149. cmToolsMsgNext = 231;
  150. cmToolsMsgPrev = 232;
  151. cmGrep = 233;
  152. cmCompilerMessages = 234;
  153. cmSymbol = 235;
  154. cmStack = 236;
  155. cmBreakpointList = 237;
  156. cmWatches = 238;
  157. cmUntilReturn = 239;
  158. { WARNING these two are also defined in weditor.pas PM }
  159. { and why aren't these defines then removed? Gabor }
  160. { commented out, now in wviews.pas FK
  161. cmCopyWin = 240;
  162. cmPasteWin = 241;
  163. }
  164. cmRegisters = 242;
  165. cmFPURegisters = 243;
  166. cmDoReload = 244;
  167. cmVectorRegisters = 245;
  168. { in wviews.pas defined
  169. cmSelectAll = 246;
  170. cmUnselect = 247;
  171. }
  172. cmPrint = 248;
  173. cmNotImplemented = 1000;
  174. cmNewFromTemplate = 1001;
  175. cmShowReadme = 1002;
  176. cmPrinterSetup = 1003;
  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. cmHelpDebug = 2107;
  226. cmEditorOptions = 2202;
  227. cmBrowserOptions = 2203;
  228. cmTrackReference = 2300;
  229. cmGotoReference = 2301;
  230. cmEditBreakpoint = 2400;
  231. cmNewBreakpoint = 2401;
  232. cmDeleteBreakpoint = 2402;
  233. cmToggleBreakpoint = 2403;
  234. cmToggleBreakInList = 2404;
  235. cmDumpUndo = 2500;
  236. cmUndoAll = 2501;
  237. cmRedoAll = 2502;
  238. cmDebuggerStopped = 2600;
  239. cmDisassemble = 2601;
  240. cmContinue = 2602;
  241. cmSymBrowse = 2700;
  242. cmSymGotoSource = 2701;
  243. cmSymTrackSource = 2702;
  244. cmSymOptions = 2703;
  245. { Help constants }
  246. hcSourceWindow = 8000;
  247. hcHelpWindow = 8001;
  248. hcClipboardWindow = 8002;
  249. hcCalcWindow = 8003;
  250. hcInfoWindow = 8004;
  251. hcBrowserWindow = 8005;
  252. hcMessagesWindow = 8006;
  253. hcGDBWindow = 8007;
  254. hcBreakpointListWindow = 8008;
  255. hcASCIITableWindow = 8009;
  256. hcCompilerMessagesWindow = 8010;
  257. hcDisassemblyWindow = 8011;
  258. hcShift = 10000;
  259. hcNoAltXShift = 20000;
  260. hcUsingHelp = 2;
  261. hcContents = 3;
  262. hcQuit = hcShift+cmQuit;
  263. hcRedo = hcShift+cmRedo;
  264. hcFind = hcShift+cmFind;
  265. hcReplace = hcShift+cmReplace;
  266. hcSearchAgain = hcShift+cmSearchAgain;
  267. hcGotoLine = hcShift+cmJumpLine;
  268. hcUserScreen = hcShift+cmUserScreen;
  269. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  270. hcToolsMessages = hcShift+cmToolsMessages;
  271. hcToolsBase = hcShift+cmToolsBase;
  272. hcRecentFileBase = hcShift+cmRecentFileBase;
  273. hcCompiler = hcShift+cmCompiler;
  274. hcCompilerNoAltX = hcNoAltXShift+cmCompiler;
  275. hcMemorySizes = hcShift+cmMemorySizes;
  276. hcLinker = hcShift+cmLinker;
  277. hcDebugger = hcShift+cmDebugger;
  278. hcRemoteDialog = hcShift+cmRemoteDialog;
  279. hcTransferRemote = hcShift+cmTransferRemote;
  280. hcDirectories = hcShift+cmDirectories;
  281. hcTools = hcShift+cmTools;
  282. hcPreferences = hcShift+cmPreferences;
  283. hcEditor = hcShift+cmEditor;
  284. hcMouse = hcShift+cmMouse;
  285. hcStartup = hcShift+cmStartup;
  286. hcColors = hcShift+cmColors;
  287. hcKeys = hcShift+cmKeys;
  288. hcOpenINI = hcShift+cmOpenINI;
  289. hcSaveINI = hcShift+cmSaveINI;
  290. hcSaveAsINI = hcShift+cmSaveAsINI;
  291. hcCalculator = hcShift+cmCalculator;
  292. hcAsciiTable = hcShift+cmAsciiTable;
  293. { hcGrep = hcShift+cmGrep;}
  294. hcSwitchesMode = hcShift+cmSwitchesMode;
  295. hcBrowser = hcShift+cmBrowser;
  296. hcDesktopOptions = hcShift+cmDesktopOptions;
  297. hcCodeCompleteOptions=hcShift+cmCodeCompleteOptions;
  298. hcCodeTemplateOptions=hcShift+cmCodeTemplateOptions;
  299. hcAbout = hcShift+cmAbout;
  300. hcCompilerMessages = hcShift+cmCompilerMessages;
  301. hcSystemMenu = 9000;
  302. hcFileMenu = 9001;
  303. hcEditMenu = 9002;
  304. hcSearchMenu = 9003;
  305. hcRunMenu = 9004;
  306. hcCompileMenu = 9005;
  307. hcDebugMenu = 9006;
  308. hcToolsMenu = 9007;
  309. hcOptionsMenu = 9008;
  310. hcEnvironmentMenu = 9009;
  311. hcWindowMenu = 9010;
  312. hcHelpMenu = 9011;
  313. hcFirstCommand = hcSystemMenu;
  314. hcLastNormalCommand = hcNoAltXShift - 1;
  315. hcFirstNoAltXCommand = hcNoAltXShift;
  316. hcLastCommand = 65535;
  317. hcShowClipboard = hcShift+cmShowClipboard;
  318. hcCopyWin = hcShift+cmCopyWin;
  319. hcPasteWin = hcShift+cmPasteWin;
  320. hcSelectAll = hcShift+cmSelectAll;
  321. hcUnselect = hcShift+cmUnselect;
  322. hcFindProcedure = hcShift+cmFindProcedure;
  323. hcObjects = hcShift+cmObjects;
  324. hcModules = hcShift+cmModules;
  325. hcGlobals = hcShift+cmGlobals;
  326. hcSymbol = hcShift+cmSymbol;
  327. hcRun = hcShift+cmRun;
  328. hcRunDir = hcShift+cmRunDir;
  329. hcParameters = hcShift+cmParameters;
  330. hcResetDebugger = hcShift+cmResetDebugger;
  331. hcContToCursor = hcShift+cmContToCursor;
  332. hcUntilReturn = hcShift+cmUntilReturn;
  333. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  334. hcToolsMsgNext = hcShift+cmToolsMsgNext;
  335. hcToolsMsgPrev = hcShift+cmToolsMsgPrev;
  336. hcCompile = hcShift+cmCompile;
  337. hcMake = hcShift+cmMake;
  338. hcBuild = hcShift+cmBuild;
  339. hcTarget = hcShift+cmTarget;
  340. hcPrimaryFile = hcShift+cmPrimaryFile;
  341. hcClearPrimary = hcShift+cmClearPrimary;
  342. hcWindowList = hcShift+cmWindowList;
  343. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  344. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  345. hcHelpContents = hcShift+cmHelpContents;
  346. hcHelpIndex = hcShift+cmHelpIndex;
  347. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  348. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  349. hcHelpFiles = hcShift+cmHelpFiles;
  350. hcHelpDebug = hcShift+cmHelpDebug;
  351. hcUpdate = hcShift+cmUpdate;
  352. hcMsgClear = hcShift+cmMsgClear;
  353. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  354. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  355. hcSymBrowse = hcShift+cmSymBrowse;
  356. hcSymGotoSource = hcShift+cmSymGotoSource;
  357. hcSymTrackSource = hcShift+cmSymTrackSource;
  358. hcSymOptions = hcShift+cmSymOptions;
  359. hcGotoCursor = hcShift+cmGotoCursor;
  360. hcNewBreakpoint = hcShift+cmNewBreakpoint;
  361. hcEditBreakpoint = hcShift+cmEditBreakpoint;
  362. hcDeleteBreakpoint = hcShift+cmDeleteBreakpoint;
  363. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  364. hcEvaluate = hcShift+cmEvaluate;
  365. hcAddWatch = hcShift+cmAddWatch;
  366. hcWatchesWindow = hcShift+cmWatches;
  367. hcGrep = hcShift+cmGrep;
  368. hcStackWindow = hcShift+cmStack;
  369. hcBreakPointList = hcShift+cmBreakpointList;
  370. hcRegistersWindow = hcShift+cmRegisters;
  371. hcFPURegisters = hcShift+cmFPURegisters;
  372. hcVectorRegisters = hcShift+cmVectorRegisters;
  373. hcPrint = hcShift+cmPrint;
  374. hcPrinterSetup = hcShift+cmPrinterSetup;
  375. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  376. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  377. hcEditorOptions = hcShift+cmEditorOptions;
  378. hcBrowserOptions = hcShift+cmBrowserOptions;
  379. hcDoReload = hcShift+cmDoReload;
  380. { History constants }
  381. hisChDirDialog = 2000;
  382. CIDEHelpDialog =
  383. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  384. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  385. #160#161#162#163 +
  386. #164#165#166;
  387. CSourceWindow =
  388. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  389. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  390. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  391. CBrowserWindow =
  392. #215#216#217#218#219#220#221#222#223#224#225#226;
  393. CBrowserListBox =
  394. #9#9#10#11#12;
  395. CBrowserTab =
  396. #6#12;
  397. CBrowserOutline = #9#10#10#11;
  398. CGDBInputLine = #9#9#10#11#12;
  399. CFPClockView = #0#227;
  400. CFPToolTip = #228;
  401. CFPMemo = #26#26#26#28#26#29#26#26#26#27#26#26#26#26#26#26#26;
  402. CFPSymbolMemo = #9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9;
  403. CHTMLSectionAttrs = #229#230#231#232#233#234;
  404. CIDEAppColor = CAppColor +
  405. { CIDEHelpDialog }
  406. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  407. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  408. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  409. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  410. { CSourceWindow }
  411. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  412. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  413. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  414. { CBrowserWindow }
  415. {215-226}#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F +
  416. { CFPClockView }
  417. {227-227}#$70 +
  418. { CToolTip }
  419. {228-228}#$20 +
  420. { CHTMLSectionAttrs }
  421. {229-234}#$ff#$3a#$37#$ff#$ff#$ff;
  422. implementation
  423. END.