fpconst.pas 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. cmToolsMessages = 1700;
  85. cmToolsBase = 1800;
  86. cmRecentFileBase = 1850;
  87. cmCompiler = 2000;
  88. cmMemorySizes = 2001;
  89. cmLinker = 2002;
  90. cmDebugger = 2003;
  91. cmDirectories = 2004;
  92. cmTools = 2005;
  93. cmPreferences = 2006;
  94. cmEditor = 2007;
  95. cmMouse = 2008;
  96. cmStartup = 2009;
  97. cmColors = 2010;
  98. cmOpenINI = 2011;
  99. cmSaveINI = 2012;
  100. cmSaveAsINI = 2013;
  101. cmSwitchesMode = 2014;
  102. cmHelpContents = 2100;
  103. cmHelpIndex = 2101;
  104. cmHelpPrevTopic = 2103;
  105. cmHelpUsingHelp = 2104;
  106. cmHelpFiles = 2105;
  107. cmAbout = 2106;
  108. cmOpenAtCursor = 2200;
  109. cmBrowseAtCursor = 2201;
  110. cmEditorOptions = 2202;
  111. { Help constants }
  112. hcSourceWindow = 8000;
  113. hcHelpWindow = 8001;
  114. hcClipboardWindow = 8002;
  115. hcCalcWindow = 8003;
  116. hcInfoWindow = 8004;
  117. hcBrowserWindow = 8005;
  118. hcShift = 10000;
  119. hcUsingHelp = 2;
  120. hcContents = 3;
  121. hcQuit = hcShift+cmQuit;
  122. hcRedo = hcShift+cmRedo;
  123. hcFind = hcShift+cmFind;
  124. hcReplace = hcShift+cmReplace;
  125. hcSearchAgain = hcShift+cmSearchAgain;
  126. hcGotoLine = hcShift+cmJumpLine;
  127. hcUserScreen = hcShift+cmUserScreen;
  128. hcUserScreenWindow = hcShift+cmUserScreenWindow;
  129. hcToolsMessages = hcShift+cmToolsMessages;
  130. hcToolsBase = hcShift+cmToolsBase;
  131. hcRecentFileBase = hcShift+cmRecentFileBase;
  132. hcCompiler = hcShift+cmCompiler;
  133. hcMemorySizes = hcShift+cmMemorySizes;
  134. hcLinker = hcShift+cmLinker;
  135. hcDebugger = hcShift+cmDebugger;
  136. hcDirectories = hcShift+cmDirectories;
  137. hcTools = hcShift+cmTools;
  138. hcPreferences = hcShift+cmPreferences;
  139. hcEditor = hcShift+cmEditor;
  140. hcMouse = hcShift+cmMouse;
  141. hcStartup = hcShift+cmStartup;
  142. hcColors = hcShift+cmColors;
  143. hcOpenINI = hcShift+cmOpenINI;
  144. hcSaveINI = hcShift+cmSaveINI;
  145. hcSaveAsINI = hcShift+cmSaveAsINI;
  146. hcCalculator = hcShift+cmCalculator;
  147. hcGrep = hcShift+cmGrep;
  148. hcSwitchesMode = hcShift+cmSwitchesMode;
  149. hcAbout = hcShift+cmAbout;
  150. hcSystemMenu = 9000;
  151. hcFileMenu = 9001;
  152. hcEditMenu = 9002;
  153. hcSearchMenu = 9003;
  154. hcRunMenu = 9004;
  155. hcCompileMenu = 9005;
  156. hcDebugMenu = 9006;
  157. hcToolsMenu = 9007;
  158. hcOptionsMenu = 9008;
  159. hcEnvironmentMenu = 9009;
  160. hcWindowMenu = 9010;
  161. hcHelpMenu = 9011;
  162. hcFirstCommand = hcSystemMenu;
  163. hcLastCommand = 65535;
  164. hcShowClipboard = hcShift+cmShowClipboard;
  165. hcFindProcedure = hcShift+cmFindProcedure;
  166. hcObjects = hcShift+cmObjects;
  167. hcModules = hcShift+cmModules;
  168. hcGlobals = hcShift+cmGlobals;
  169. hcRun = hcShift+cmRun;
  170. hcParameters = hcShift+cmParameters;
  171. hcResetDebugger = hcShift+cmResetDebugger;
  172. hcContToCursor = hcShift+cmContToCursor;
  173. hcOpenGDBWindow = hcShift+cmOpenGDBWindow;
  174. hcCompile = hcShift+cmCompile;
  175. hcMake = hcShift+cmMake;
  176. hcBuild = hcShift+cmBuild;
  177. hcTarget = hcShift+cmTarget;
  178. hcPrimaryFile = hcShift+cmPrimaryFile;
  179. hcClearPrimary = hcShift+cmClearPrimary;
  180. hcInformation = hcShift+cmInformation;
  181. hcWindowList = hcShift+cmWindowList;
  182. hcNewFromTemplate = hcShift+cmNewFromTemplate;
  183. hcHelpTopicSearch = hcShift+cmHelpTopicSearch;
  184. hcHelpContents = hcShift+cmHelpContents;
  185. hcHelpIndex = hcShift+cmHelpIndex;
  186. hcHelpPrevTopic = hcShift+cmHelpPrevTopic;
  187. hcHelpUsingHelp = hcShift+cmHelpUsingHelp;
  188. hcHelpFiles = hcShift+cmHelpFiles;
  189. hcUpdate = hcShift+cmUpdate;
  190. hcMsgClear = hcShift+cmMsgClear;
  191. hcMsgGotoSource = hcShift+cmMsgGotoSource;
  192. hcMsgTrackSource = hcShift+cmMsgTrackSource;
  193. hcGotoCursor = hcShift+cmGotoCursor;
  194. hcToggleBreakpoint = hcShift+cmToggleBreakpoint;
  195. hcEvaluate = hcShift+cmEvaluate;
  196. hcAddWatch = hcShift+cmAddWatch;
  197. hcOpenAtCursor = hcShift+cmOpenAtCursor;
  198. hcBrowseAtCursor = hcShift+cmBrowseAtCursor;
  199. hcEditorOptions = hcShift+cmEditorOptions;
  200. { History constants }
  201. hisChDirDialog = 2000;
  202. CIDEHelpDialog =
  203. #128#129#130#131#132#133#134#135#136#137#138#139#140#141#142#143 +
  204. #144#145#146#147#148#149#150#151#152#153#154#155#156#157#158#159 +
  205. #160#161#162#163 +
  206. #164#165#166;
  207. CSourceWindow =
  208. #167#168#169#170#171#172#173#174#175#176#177#178#179#180#181#182 +
  209. #183#184#185#186#187#188#189#190#191#192#193#194#195#196#197#198 +
  210. #199#200#201#202#203#204#205#206#207#208#209#210#211#212#213#214 ;
  211. CBrowserWindow =
  212. #215#216#217#218#219#220#221#222#223#224#225#226;
  213. CBrowserListBox =
  214. #9#9#10#11#12;
  215. CBrowserTab =
  216. #6#12;
  217. CGDBInputLine = #9#9#10#11#12;
  218. CIDEAppColor = CAppColor +
  219. { CIDEHelpDialog }
  220. {128-143}#$70#$7F#$7A#$13#$13#$70#$70#$7F#$7E#$20#$2B#$2F#$78#$2E#$70#$30 + { 1-16}
  221. {144-159}#$3F#$3E#$1F#$2F#$1A#$20#$72#$31#$31#$30#$2F#$3E#$31#$13#$38#$00 + {17-32}
  222. {160-163}#$30#$3E#$1E#$70 + { CHelpViewer } {33-36}
  223. {164-166}#$30#$3F#$3A + { CHelpFrame } {37-39}
  224. { CSourceWindow }
  225. {167-182}#$17#$1F#$1A#$31#$31#$1E#$71#$1F#$00#$00#$00#$00#$00#$00#$00#$00 + { 1-16}
  226. {183-198}#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00#$00 + {17-32}
  227. {199-214}#$1E#$1F#$17#$1F#$1E#$1B#$13#$1A#$1E#$71#$3F#$30#$1C#$13#$1F#$4E + {33-48}
  228. { CBrowserWindow }
  229. {215- }#$31#$3F#$3A#$31#$31#$31#$71#$1F#$31#$2F#$3E#$3F ;
  230. implementation
  231. END.
  232. {
  233. $Log$
  234. Revision 1.10 1999-02-11 19:07:19 pierre
  235. * GDBWindow redesigned :
  236. normal editor apart from
  237. that any kbEnter will send the line (for begin to cursor)
  238. to GDB command !
  239. GDBWindow opened in Debugger Menu
  240. still buggy :
  241. -echo should not be present if at end of text
  242. -GDBWindow becomes First after each step (I don't know why !)
  243. Revision 1.9 1999/02/08 17:40:00 pierre
  244. + cmContToCursor added
  245. Revision 1.8 1999/02/04 12:23:43 pierre
  246. + cmResetDebugger and cmGrep
  247. * Avoid StatusStack overflow
  248. Revision 1.7 1999/01/22 10:24:02 peter
  249. * first debugger things
  250. Revision 1.6 1999/01/21 11:54:12 peter
  251. + tools menu
  252. + speedsearch in symbolbrowser
  253. * working run command
  254. Revision 1.5 1999/01/12 14:29:33 peter
  255. + Implemented still missing 'switch' entries in Options menu
  256. + Pressing Ctrl-B sets ASCII mode in editor, after which keypresses (even
  257. ones with ASCII < 32 ; entered with Alt+<###>) are interpreted always as
  258. ASCII chars and inserted directly in the text.
  259. + Added symbol browser
  260. * splitted fp.pas to fpide.pas
  261. Revision 1.4 1999/01/04 11:49:43 peter
  262. * 'Use tab characters' now works correctly
  263. + Syntax highlight now acts on File|Save As...
  264. + Added a new class to syntax highlight: 'hex numbers'.
  265. * There was something very wrong with the palette managment. Now fixed.
  266. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  267. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  268. process revised
  269. Revision 1.2 1998/12/28 15:47:43 peter
  270. + Added user screen support, display & window
  271. + Implemented Editor,Mouse Options dialog
  272. + Added location of .INI and .CFG file
  273. + Option (INI) file managment implemented (see bottom of Options Menu)
  274. + Switches updated
  275. + Run program
  276. Revision 1.3 1998/12/22 10:39:41 peter
  277. + options are now written/read
  278. + find and replace routines
  279. }