fpconst.pas 10 KB

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