fpconst.pas 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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. cmHelpDebug = 2107;
  225. cmEditorOptions = 2202;
  226. cmBrowserOptions = 2203;
  227. cmTrackReference = 2300;
  228. cmGotoReference = 2301;
  229. cmEditBreakpoint = 2400;
  230. cmNewBreakpoint = 2401;
  231. cmDeleteBreakpoint = 2402;
  232. cmToggleBreakpoint = 2403;
  233. cmToggleBreakInList = 2404;
  234. cmDumpUndo = 2500;
  235. cmUndoAll = 2501;
  236. cmRedoAll = 2502;
  237. cmDebuggerStopped = 2600;
  238. cmDisassemble = 2601;
  239. cmSymBrowse = 2700;
  240. cmSymGotoSource = 2701;
  241. cmSymTrackSource = 2702;
  242. cmSymOptions = 2703;
  243. { Help constants }
  244. hcSourceWindow = 8000;
  245. hcHelpWindow = 8001;
  246. hcClipboardWindow = 8002;
  247. hcCalcWindow = 8003;
  248. hcInfoWindow = 8004;
  249. hcBrowserWindow = 8005;
  250. hcMessagesWindow = 8006;
  251. hcGDBWindow = 8007;
  252. hcBreakpointListWindow = 8008;
  253. hcASCIITableWindow = 8009;
  254. hcCompilerMessagesWindow = 8010;
  255. hcDisassemblyWindow = 8011;
  256. hcShift = 10000;
  257. hcNoAltXShift = 20000;
  258. hcUsingHelp = 2;
  259. hcContents = 3;
  260. hcQuit = hcShift+cmQuit;
  261. hcRedo = hcShift+cmRedo;
  262. hcFind = hcShift+cmFind;
  263. hcReplace = hcShift+cmReplace;
  264. hcSearchAgain = hcShift+cmSearchAgain;
  265. hcGotoLine = hcShift+cmJumpLine;
  266. hcUserScreen = hcShift+cmUserScreen;
  267. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  268. hcToolsMessages = hcShift+cmToolsMessages;
  269. hcToolsBase = hcShift+cmToolsBase;
  270. hcRecentFileBase = hcShift+cmRecentFileBase;
  271. hcCompiler = hcShift+cmCompiler;
  272. hcCompilerNoAltX = hcNoAltXShift+cmCompiler;
  273. hcMemorySizes = hcShift+cmMemorySizes;
  274. hcLinker = hcShift+cmLinker;
  275. hcDebugger = hcShift+cmDebugger;
  276. hcRemoteDialog = hcShift+cmRemoteDialog;
  277. hcTransferRemote = hcShift+cmTransferRemote;
  278. hcDirectories = hcShift+cmDirectories;
  279. hcTools = hcShift+cmTools;
  280. hcPreferences = hcShift+cmPreferences;
  281. hcEditor = hcShift+cmEditor;
  282. hcMouse = hcShift+cmMouse;
  283. hcStartup = hcShift+cmStartup;
  284. hcColors = hcShift+cmColors;
  285. hcKeys = hcShift+cmKeys;
  286. hcOpenINI = hcShift+cmOpenINI;
  287. hcSaveINI = hcShift+cmSaveINI;
  288. hcSaveAsINI = hcShift+cmSaveAsINI;
  289. hcCalculator = hcShift+cmCalculator;
  290. hcAsciiTable = hcShift+cmAsciiTable;
  291. { hcGrep = hcShift+cmGrep;}
  292. hcSwitchesMode = hcShift+cmSwitchesMode;
  293. hcBrowser = hcShift+cmBrowser;
  294. hcDesktopOptions = hcShift+cmDesktopOptions;
  295. hcCodeCompleteOptions=hcShift+cmCodeCompleteOptions;
  296. hcCodeTemplateOptions=hcShift+cmCodeTemplateOptions;
  297. hcAbout = hcShift+cmAbout;
  298. hcCompilerMessages = hcShift+cmCompilerMessages;
  299. hcSystemMenu = 9000;
  300. hcFileMenu = 9001;
  301. hcEditMenu = 9002;
  302. hcSearchMenu = 9003;
  303. hcRunMenu = 9004;
  304. hcCompileMenu = 9005;
  305. hcDebugMenu = 9006;
  306. hcToolsMenu = 9007;
  307. hcOptionsMenu = 9008;
  308. hcEnvironmentMenu = 9009;
  309. hcWindowMenu = 9010;
  310. hcHelpMenu = 9011;
  311. hcFirstCommand = hcSystemMenu;
  312. hcLastNormalCommand = hcNoAltXShift - 1;
  313. hcFirstNoAltXCommand = hcNoAltXShift;
  314. hcLastCommand = 65535;
  315. hcShowClipboard = hcShift+cmShowClipboard;
  316. hcCopyWin = hcShift+cmCopyWin;
  317. hcPasteWin = hcShift+cmPasteWin;
  318. hcSelectAll = hcShift+cmSelectAll;
  319. hcUnselect = hcShift+cmUnselect;
  320. hcFindProcedure = hcShift+cmFindProcedure;
  321. hcObjects = hcShift+cmObjects;
  322. hcModules = hcShift+cmModules;
  323. hcGlobals = hcShift+cmGlobals;
  324. hcSymbol = hcShift+cmSymbol;
  325. hcRun = hcShift+cmRun;
  326. hcRunDir = hcShift+cmRunDir;
  327. hcParameters = hcShift+cmParameters;
  328. hcResetDebugger = hcShift+cmResetDebugger;
  329. hcContToCursor = hcShift+cmContToCursor;
  330. hcUntilReturn = hcShift+cmUntilReturn;
  331. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  332. hcToolsMsgNext = hcShift+cmToolsMsgNext;
  333. hcToolsMsgPrev = hcShift+cmToolsMsgPrev;
  334. hcCompile = hcShift+cmCompile;
  335. hcMake = hcShift+cmMake;
  336. hcBuild = hcShift+cmBuild;
  337. hcTarget = hcShift+cmTarget;
  338. hcPrimaryFile = hcShift+cmPrimaryFile;
  339. hcClearPrimary = hcShift+cmClearPrimary;
  340. hcWindowList = hcShift+cmWindowList;
  341. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  342. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  343. hcHelpContents = hcShift+cmHelpContents;
  344. hcHelpIndex = hcShift+cmHelpIndex;
  345. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  346. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  347. hcHelpFiles = hcShift+cmHelpFiles;
  348. hcHelpDebug = hcShift+cmHelpDebug;
  349. hcUpdate = hcShift+cmUpdate;
  350. hcMsgClear = hcShift+cmMsgClear;
  351. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  352. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  353. hcSymBrowse = hcShift+cmSymBrowse;
  354. hcSymGotoSource = hcShift+cmSymGotoSource;
  355. hcSymTrackSource = hcShift+cmSymTrackSource;
  356. hcSymOptions = hcShift+cmSymOptions;
  357. hcGotoCursor = hcShift+cmGotoCursor;
  358. hcNewBreakpoint = hcShift+cmNewBreakpoint;
  359. hcEditBreakpoint = hcShift+cmEditBreakpoint;
  360. hcDeleteBreakpoint = hcShift+cmDeleteBreakpoint;
  361. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  362. hcEvaluate = hcShift+cmEvaluate;
  363. hcAddWatch = hcShift+cmAddWatch;
  364. hcWatchesWindow = hcShift+cmWatches;
  365. hcGrep = hcShift+cmGrep;
  366. hcStackWindow = hcShift+cmStack;
  367. hcBreakPointList = hcShift+cmBreakpointList;
  368. hcRegistersWindow = hcShift+cmRegisters;
  369. hcFPURegisters = hcShift+cmFPURegisters;
  370. hcVectorRegisters = hcShift+cmVectorRegisters;
  371. hcPrint = hcShift+cmPrint;
  372. hcPrinterSetup = hcShift+cmPrinterSetup;
  373. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  374. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  375. hcEditorOptions = hcShift+cmEditorOptions;
  376. hcBrowserOptions = hcShift+cmBrowserOptions;
  377. hcDoReload = hcShift+cmDoReload;
  378. { History constants }
  379. hisChDirDialog = 2000;
  380. CIDEHelpDialog =
  381. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  382. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  383. #160#161#162#163 +
  384. #164#165#166;
  385. CSourceWindow =
  386. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  387. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  388. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  389. CBrowserWindow =
  390. #215#216#217#218#219#220#221#222#223#224#225#226;
  391. CBrowserListBox =
  392. #9#9#10#11#12;
  393. CBrowserTab =
  394. #6#12;
  395. CBrowserOutline = #9#10#10#11;
  396. CGDBInputLine = #9#9#10#11#12;
  397. CFPClockView = #0#227;
  398. CFPToolTip = #228;
  399. CFPMemo = #26#26#26#28#26#29#26#26#26#27#26#26#26#26#26#26#26;
  400. CFPSymbolMemo = #9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9#9;
  401. CHTMLSectionAttrs = #229#230#231#232#233#234;
  402. CIDEAppColor = CAppColor +
  403. { CIDEHelpDialog }
  404. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  405. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  406. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  407. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  408. { CSourceWindow }
  409. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  410. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  411. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  412. { CBrowserWindow }
  413. {215-226}#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F +
  414. { CFPClockView }
  415. {227-227}#$70 +
  416. { CToolTip }
  417. {228-228}#$20 +
  418. { CHTMLSectionAttrs }
  419. {229-234}#$ff#$3a#$37#$ff#$ff#$ff;
  420. implementation
  421. END.