fpconst.pas 17 KB

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