fpconst.pas 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Integrated Development Environment
  4. Copyright (c) 1998 by Berczi Gabor
  5. Constants used by the IDE
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. unit FPConst;
  13. interface
  14. uses Views,App,Commands;
  15. const
  16. VersionStr = '0.9';
  17. MaxRecentFileCount = 5;
  18. MaxToolCount = 16;
  19. ININame = 'fp.ini';
  20. SwitchesName = 'fp.cfg';
  21. { Strings/Messages }
  22. strLoadingHelp = 'Loading help files...';
  23. strBuildingHelpIndex = 'Building Help Index...';
  24. strLocatingTopic = 'Locating topic...';
  25. { Main menu submenu indexes }
  26. menuFile = 0;
  27. menuTools = 6;
  28. { MouseAction constants }
  29. acNone = 0;
  30. acTopicSearch = 1;
  31. acGotoCursor = 2;
  32. acBreakpoint = 3;
  33. acEvaluate = 4;
  34. acAddWatch = 5;
  35. acBrowseSymbol = 6;
  36. acFirstAction = acTopicSearch;
  37. acLastAction = acBrowseSymbol;
  38. { Startup Option constants }
  39. soReturnToLastDir = $00000001;
  40. { Command constants }
  41. cmShowClipboard = 201;
  42. cmFindProcedure = 206;
  43. cmObjects = 207;
  44. cmModules = 208;
  45. cmGlobals = 209;
  46. cmRun = 210;
  47. cmParameters = 211;
  48. cmCompile = 212;
  49. cmMake = 213;
  50. cmBuild = 214;
  51. cmTarget = 215;
  52. cmPrimaryFile = 216;
  53. cmClearPrimary = 217;
  54. cmInformation = 218;
  55. cmWindowList = 219;
  56. cmHelpTopicSearch = 220;
  57. cmMsgGotoSource = 221;
  58. cmMsgTrackSource = 222;
  59. cmGotoCursor = 223;
  60. cmToggleBreakpoint = 224;
  61. cmAddWatch = 225;
  62. cmTraceInto = 226;
  63. cmStepOver = 227;
  64. cmResetDebugger = 228;
  65. cmContToCursor = 229;
  66. cmOpenGDBWindow = 230;
  67. cmNotImplemented = 1000;
  68. cmNewFromTemplate = 1001;
  69. cmSearchWindow = 1500;
  70. cmUpdate = 1600;
  71. cmSourceWndClosing = 1601;
  72. cmLocalMenu = 1602;
  73. cmCalculatorPaste = 1603;
  74. cmMsgClear = 1604;
  75. cmUpdateTools = 1605;
  76. cmGrep = 1606;
  77. cmAddItem = 1620;
  78. cmEditItem = 1621;
  79. cmDeleteItem = 1622;
  80. cmUserScreen = 1650;
  81. cmUserScreenWindow = 1651;
  82. cmEvaluate = 1652;
  83. cmCalculator = 1653;
  84. cmAsciiTable = 1654;
  85. cmToolsMessages = 1700;
  86. cmToolsBase = 1800;
  87. cmRecentFileBase = 1850;
  88. cmCompiler = 2000;
  89. cmMemorySizes = 2001;
  90. cmLinker = 2002;
  91. cmDebugger = 2003;
  92. cmDirectories = 2004;
  93. cmTools = 2005;
  94. cmPreferences = 2006;
  95. cmEditor = 2007;
  96. cmMouse = 2008;
  97. cmStartup = 2009;
  98. cmColors = 2010;
  99. cmOpenINI = 2011;
  100. cmSaveINI = 2012;
  101. cmSaveAsINI = 2013;
  102. cmSwitchesMode = 2014;
  103. cmBrowser = 2015;
  104. cmHelpContents = 2100;
  105. cmHelpIndex = 2101;
  106. cmHelpPrevTopic = 2103;
  107. cmHelpUsingHelp = 2104;
  108. cmHelpFiles = 2105;
  109. cmAbout = 2106;
  110. cmOpenAtCursor = 2200;
  111. cmBrowseAtCursor = 2201;
  112. cmEditorOptions = 2202;
  113. cmBrowserOptions = 2203;
  114. cmTrackReference = 2300;
  115. cmGotoReference = 2301;
  116. { Help constants }
  117. hcSourceWindow = 8000;
  118. hcHelpWindow = 8001;
  119. hcClipboardWindow = 8002;
  120. hcCalcWindow = 8003;
  121. hcInfoWindow = 8004;
  122. hcBrowserWindow = 8005;
  123. hcShift = 10000;
  124. hcUsingHelp = 2;
  125. hcContents = 3;
  126. hcQuit = hcShift+cmQuit;
  127. hcRedo = hcShift+cmRedo;
  128. hcFind = hcShift+cmFind;
  129. hcReplace = hcShift+cmReplace;
  130. hcSearchAgain = hcShift+cmSearchAgain;
  131. hcGotoLine = hcShift+cmJumpLine;
  132. hcUserScreen = hcShift+cmUserScreen;
  133. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  134. hcToolsMessages = hcShift+cmToolsMessages;
  135. hcToolsBase = hcShift+cmToolsBase;
  136. hcRecentFileBase = hcShift+cmRecentFileBase;
  137. hcCompiler = hcShift+cmCompiler;
  138. hcMemorySizes = hcShift+cmMemorySizes;
  139. hcLinker = hcShift+cmLinker;
  140. hcDebugger = hcShift+cmDebugger;
  141. hcDirectories = hcShift+cmDirectories;
  142. hcTools = hcShift+cmTools;
  143. hcPreferences = hcShift+cmPreferences;
  144. hcEditor = hcShift+cmEditor;
  145. hcMouse = hcShift+cmMouse;
  146. hcStartup = hcShift+cmStartup;
  147. hcColors = hcShift+cmColors;
  148. hcOpenINI = hcShift+cmOpenINI;
  149. hcSaveINI = hcShift+cmSaveINI;
  150. hcSaveAsINI = hcShift+cmSaveAsINI;
  151. hcCalculator = hcShift+cmCalculator;
  152. hcAsciiTable = hcShift+cmAsciiTable;
  153. hcGrep = hcShift+cmGrep;
  154. hcBrowser = hcShift+cmBrowser;
  155. hcSwitchesMode = hcShift+cmSwitchesMode;
  156. hcAbout = hcShift+cmAbout;
  157. hcSystemMenu = 9000;
  158. hcFileMenu = 9001;
  159. hcEditMenu = 9002;
  160. hcSearchMenu = 9003;
  161. hcRunMenu = 9004;
  162. hcCompileMenu = 9005;
  163. hcDebugMenu = 9006;
  164. hcToolsMenu = 9007;
  165. hcOptionsMenu = 9008;
  166. hcEnvironmentMenu = 9009;
  167. hcWindowMenu = 9010;
  168. hcHelpMenu = 9011;
  169. hcFirstCommand = hcSystemMenu;
  170. hcLastCommand = 65535;
  171. hcShowClipboard = hcShift+cmShowClipboard;
  172. hcFindProcedure = hcShift+cmFindProcedure;
  173. hcObjects = hcShift+cmObjects;
  174. hcModules = hcShift+cmModules;
  175. hcGlobals = hcShift+cmGlobals;
  176. hcRun = hcShift+cmRun;
  177. hcParameters = hcShift+cmParameters;
  178. hcResetDebugger = hcShift+cmResetDebugger;
  179. hcContToCursor = hcShift+cmContToCursor;
  180. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  181. hcCompile = hcShift+cmCompile;
  182. hcMake = hcShift+cmMake;
  183. hcBuild = hcShift+cmBuild;
  184. hcTarget = hcShift+cmTarget;
  185. hcPrimaryFile = hcShift+cmPrimaryFile;
  186. hcClearPrimary = hcShift+cmClearPrimary;
  187. hcInformation = hcShift+cmInformation;
  188. hcWindowList = hcShift+cmWindowList;
  189. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  190. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  191. hcHelpContents = hcShift+cmHelpContents;
  192. hcHelpIndex = hcShift+cmHelpIndex;
  193. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  194. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  195. hcHelpFiles = hcShift+cmHelpFiles;
  196. hcUpdate = hcShift+cmUpdate;
  197. hcMsgClear = hcShift+cmMsgClear;
  198. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  199. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  200. hcGotoCursor = hcShift+cmGotoCursor;
  201. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  202. hcEvaluate = hcShift+cmEvaluate;
  203. hcAddWatch = hcShift+cmAddWatch;
  204. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  205. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  206. hcEditorOptions = hcShift+cmEditorOptions;
  207. { History constants }
  208. hisChDirDialog = 2000;
  209. CIDEHelpDialog =
  210. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  211. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  212. #160#161#162#163 +
  213. #164#165#166;
  214. CSourceWindow =
  215. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  216. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  217. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  218. CBrowserWindow =
  219. #215#216#217#218#219#220#221#222#223#224#225#226;
  220. CBrowserListBox =
  221. #9#9#10#11#12;
  222. CBrowserTab =
  223. #6#12;
  224. CGDBInputLine = #9#9#10#11#12;
  225. CIDEAppColor = CAppColor +
  226. { CIDEHelpDialog }
  227. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  228. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  229. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  230. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  231. { CSourceWindow }
  232. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  233. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  234. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  235. { CBrowserWindow }
  236. {215- }#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F ;
  237. implementation
  238. END.
  239. {
  240. $Log$
  241. Revision 1.12 1999-02-22 11:51:34 peter
  242. * browser updates from gabor
  243. Revision 1.11 1999/02/20 15:18:28 peter
  244. + ctrl-c capture with confirm dialog
  245. + ascii table in the tools menu
  246. + heapviewer
  247. * empty file fixed
  248. * fixed callback routines in fpdebug to have far for tp7
  249. Revision 1.10 1999/02/11 19:07:19 pierre
  250. * GDBWindow redesigned :
  251. normal editor apart from
  252. that any kbEnter will send the line (for begin to cursor)
  253. to GDB command !
  254. GDBWindow opened in Debugger Menu
  255. still buggy :
  256. -echo should not be present if at end of text
  257. -GDBWindow becomes First after each step (I don't know why !)
  258. Revision 1.9 1999/02/08 17:40:00 pierre
  259. + cmContToCursor added
  260. Revision 1.8 1999/02/04 12:23:43 pierre
  261. + cmResetDebugger and cmGrep
  262. * Avoid StatusStack overflow
  263. Revision 1.7 1999/01/22 10:24:02 peter
  264. * first debugger things
  265. Revision 1.6 1999/01/21 11:54:12 peter
  266. + tools menu
  267. + speedsearch in symbolbrowser
  268. * working run command
  269. Revision 1.5 1999/01/12 14:29:33 peter
  270. + Implemented still missing 'switch' entries in Options menu
  271. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  272. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  273. ASCII chars and inserted directly in the text.
  274. + Added symbol browser
  275. * splitted fp.pas to fpide.pas
  276. Revision 1.4 1999/01/04 11:49:43 peter
  277. * 'Use tab characters' now works correctly
  278. + Syntax highlight now acts on File|Save As...
  279. + Added a new class to syntax highlight: 'hex numbers'.
  280. * There was something very wrong with the palette managment. Now fixed.
  281. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  282. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  283. process revised
  284. Revision 1.2 1998/12/28 15:47:43 peter
  285. + Added user screen support, display & window
  286. + Implemented Editor,Mouse Options dialog
  287. + Added location of .INI and .CFG file
  288. + Option (INI) file managment implemented (see bottom of Options Menu)
  289. + Switches updated
  290. + Run program
  291. Revision 1.3 1998/12/22 10:39:41 peter
  292. + options are now written/read
  293. + find and replace routines
  294. }