fpconst.pas 16 KB

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