fpconst.pas 15 KB

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