fpconst.pas 10 KB

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