fpconst.pas 17 KB

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