fpconst.pas 17 KB

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