fpconst.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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. cmTrackReference = 2300;
  223. cmGotoReference = 2301;
  224. cmEditBreakpoint = 2400;
  225. cmNewBreakpoint = 2401;
  226. cmDeleteBreakpoint = 2402;
  227. cmToggleBreakpoint = 2403;
  228. cmToggleBreakInList = 2404;
  229. cmDumpUndo = 2500;
  230. cmUndoAll = 2501;
  231. cmRedoAll = 2502;
  232. cmDebuggerStopped = 2600;
  233. cmDisassemble = 2601;
  234. cmSymBrowse = 2700;
  235. cmSymGotoSource = 2701;
  236. cmSymTrackSource = 2702;
  237. cmSymOptions = 2703;
  238. { Help constants }
  239. hcSourceWindow = 8000;
  240. hcHelpWindow = 8001;
  241. hcClipboardWindow = 8002;
  242. hcCalcWindow = 8003;
  243. hcInfoWindow = 8004;
  244. hcBrowserWindow = 8005;
  245. hcMessagesWindow = 8006;
  246. hcGDBWindow = 8007;
  247. hcBreakpointListWindow = 8008;
  248. hcASCIITableWindow = 8009;
  249. hcCompilerMessagesWindow = 8010;
  250. hcDisassemblyWindow = 8011;
  251. hcShift = 10000;
  252. hcNoAltXShift = 20000;
  253. hcUsingHelp = 2;
  254. hcContents = 3;
  255. hcQuit = hcShift+cmQuit;
  256. hcRedo = hcShift+cmRedo;
  257. hcFind = hcShift+cmFind;
  258. hcReplace = hcShift+cmReplace;
  259. hcSearchAgain = hcShift+cmSearchAgain;
  260. hcGotoLine = hcShift+cmJumpLine;
  261. hcUserScreen = hcShift+cmUserScreen;
  262. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  263. hcToolsMessages = hcShift+cmToolsMessages;
  264. hcToolsBase = hcShift+cmToolsBase;
  265. hcRecentFileBase = hcShift+cmRecentFileBase;
  266. hcCompiler = hcShift+cmCompiler;
  267. hcCompilerNoAltX = hcNoAltXShift+cmCompiler;
  268. hcMemorySizes = hcShift+cmMemorySizes;
  269. hcLinker = hcShift+cmLinker;
  270. hcDebugger = hcShift+cmDebugger;
  271. hcRemoteDialog = hcShift+cmRemoteDialog;
  272. hcTransferRemote = hcShift+cmTransferRemote;
  273. hcDirectories = hcShift+cmDirectories;
  274. hcTools = hcShift+cmTools;
  275. hcPreferences = hcShift+cmPreferences;
  276. hcEditor = hcShift+cmEditor;
  277. hcMouse = hcShift+cmMouse;
  278. hcStartup = hcShift+cmStartup;
  279. hcColors = hcShift+cmColors;
  280. hcKeys = hcShift+cmKeys;
  281. hcOpenINI = hcShift+cmOpenINI;
  282. hcSaveINI = hcShift+cmSaveINI;
  283. hcSaveAsINI = hcShift+cmSaveAsINI;
  284. hcCalculator = hcShift+cmCalculator;
  285. hcAsciiTable = hcShift+cmAsciiTable;
  286. { hcGrep = hcShift+cmGrep;}
  287. hcSwitchesMode = hcShift+cmSwitchesMode;
  288. hcBrowser = hcShift+cmBrowser;
  289. hcDesktopOptions = hcShift+cmDesktopOptions;
  290. hcCodeCompleteOptions=hcShift+cmCodeCompleteOptions;
  291. hcCodeTemplateOptions=hcShift+cmCodeTemplateOptions;
  292. hcAbout = hcShift+cmAbout;
  293. hcCompilerMessages = hcShift+cmCompilerMessages;
  294. hcSystemMenu = 9000;
  295. hcFileMenu = 9001;
  296. hcEditMenu = 9002;
  297. hcSearchMenu = 9003;
  298. hcRunMenu = 9004;
  299. hcCompileMenu = 9005;
  300. hcDebugMenu = 9006;
  301. hcToolsMenu = 9007;
  302. hcOptionsMenu = 9008;
  303. hcEnvironmentMenu = 9009;
  304. hcWindowMenu = 9010;
  305. hcHelpMenu = 9011;
  306. hcFirstCommand = hcSystemMenu;
  307. hcLastNormalCommand = hcNoAltXShift - 1;
  308. hcFirstNoAltXCommand = hcNoAltXShift;
  309. hcLastCommand = 65535;
  310. hcShowClipboard = hcShift+cmShowClipboard;
  311. hcCopyWin = hcShift+cmCopyWin;
  312. hcPasteWin = hcShift+cmPasteWin;
  313. hcFindProcedure = hcShift+cmFindProcedure;
  314. hcObjects = hcShift+cmObjects;
  315. hcModules = hcShift+cmModules;
  316. hcGlobals = hcShift+cmGlobals;
  317. hcSymbol = hcShift+cmSymbol;
  318. hcRun = hcShift+cmRun;
  319. hcParameters = hcShift+cmParameters;
  320. hcResetDebugger = hcShift+cmResetDebugger;
  321. hcContToCursor = hcShift+cmContToCursor;
  322. hcUntilReturn = hcShift+cmUntilReturn;
  323. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  324. hcToolsMsgNext = hcShift+cmToolsMsgNext;
  325. hcToolsMsgPrev = hcShift+cmToolsMsgPrev;
  326. hcCompile = hcShift+cmCompile;
  327. hcMake = hcShift+cmMake;
  328. hcBuild = hcShift+cmBuild;
  329. hcTarget = hcShift+cmTarget;
  330. hcPrimaryFile = hcShift+cmPrimaryFile;
  331. hcClearPrimary = hcShift+cmClearPrimary;
  332. hcInformation = hcShift+cmInformation;
  333. hcWindowList = hcShift+cmWindowList;
  334. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  335. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  336. hcHelpContents = hcShift+cmHelpContents;
  337. hcHelpIndex = hcShift+cmHelpIndex;
  338. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  339. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  340. hcHelpFiles = hcShift+cmHelpFiles;
  341. hcUpdate = hcShift+cmUpdate;
  342. hcMsgClear = hcShift+cmMsgClear;
  343. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  344. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  345. hcSymBrowse = hcShift+cmSymBrowse;
  346. hcSymGotoSource = hcShift+cmSymGotoSource;
  347. hcSymTrackSource = hcShift+cmSymTrackSource;
  348. hcSymOptions = hcShift+cmSymOptions;
  349. hcGotoCursor = hcShift+cmGotoCursor;
  350. hcNewBreakpoint = hcShift+cmNewBreakpoint;
  351. hcEditBreakpoint = hcShift+cmEditBreakpoint;
  352. hcDeleteBreakpoint = hcShift+cmDeleteBreakpoint;
  353. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  354. hcEvaluate = hcShift+cmEvaluate;
  355. hcAddWatch = hcShift+cmAddWatch;
  356. hcWatchesWindow = hcShift+cmWatches;
  357. hcGrep = hcShift+cmGrep;
  358. hcStackWindow = hcShift+cmStack;
  359. hcBreakPointList = hcShift+cmBreakpointList;
  360. hcRegistersWindow = hcShift+cmRegisters;
  361. hcFPURegisters = hcShift+cmFPURegisters;
  362. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  363. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  364. hcEditorOptions = hcShift+cmEditorOptions;
  365. hcBrowserOptions = hcShift+cmBrowserOptions;
  366. { History constants }
  367. hisChDirDialog = 2000;
  368. CIDEHelpDialog =
  369. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  370. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  371. #160#161#162#163 +
  372. #164#165#166;
  373. CSourceWindow =
  374. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  375. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  376. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  377. CBrowserWindow =
  378. #215#216#217#218#219#220#221#222#223#224#225#226;
  379. CBrowserListBox =
  380. #9#9#10#11#12;
  381. CBrowserTab =
  382. #6#12;
  383. CBrowserOutline = #9#10#10#11;
  384. CGDBInputLine = #9#9#10#11#12;
  385. CFPClockView = #0#227;
  386. CFPToolTip = #228;
  387. CFPMemo = #26#26#26#28#26#29#26#26#26#27#26#26#26#26#26#26#26;
  388. CFPSymbolMemo = #9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9;
  389. CHTMLSectionAttrs = #229#230#231#232#233#234;
  390. CIDEAppColor = CAppColor +
  391. { CIDEHelpDialog }
  392. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  393. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  394. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  395. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  396. { CSourceWindow }
  397. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  398. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  399. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  400. { CBrowserWindow }
  401. {215-226}#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F +
  402. { CFPClockView }
  403. {227-227}#$70 +
  404. { CToolTip }
  405. {228-228}#$20 +
  406. { CHTMLSectionAttrs }
  407. {229-234}#$ff#$3a#$37#$ff#$ff#$ff;
  408. implementation
  409. END.
  410. {
  411. $Log$
  412. Revision 1.12 2002-11-30 01:53:02 pierre
  413. + cross-powerpc specific filenames
  414. Revision 1.11 2002/11/28 12:52:14 pierre
  415. * cross cpu IDE use different config/ini and cfg files
  416. Revision 1.10 2002/09/11 13:12:42 pierre
  417. * fix CodeComplete loading and use a unit for standard units code complete
  418. Revision 1.9 2002/09/07 15:40:42 peter
  419. * old logs removed and tabs fixed
  420. Revision 1.8 2002/09/03 13:57:05 pierre
  421. + hidWatchDialog and hidBreakpointDialog added
  422. Revision 1.7 2002/09/02 10:18:09 pierre
  423. * fix problems with breakpoint lists
  424. Revision 1.6 2002/03/28 16:25:16 peter
  425. * use < for left arrow under unix
  426. Revision 1.5 2002/01/24 09:21:41 pierre
  427. * only disable Alt-X in Options|Compiler dialog
  428. Revision 1.4 2002/01/22 16:33:51 pierre
  429. Change IDE version to 0.9.2
  430. }