fpconst.pas 17 KB

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