fpconst.pas 17 KB

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