fpconst.pas 16 KB

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