fpconst.pas 15 KB

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