fphelp.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Integrated Development Environment
  4. Copyright (c) 1998 by Berczi Gabor
  5. Help routines for 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 FPHelp;
  13. interface
  14. uses
  15. Drivers,
  16. {$ifdef FVISION}
  17. FVConsts,
  18. {$else}
  19. Commands,HelpCtx,
  20. {$endif}
  21. WHelp,WHlpView,WHTML,
  22. WEditor,WCEdit,
  23. WViews,WHTMLScn,
  24. FPViews;
  25. type
  26. PIDEStatusLine = ^TIDEStatusLine;
  27. TIDEStatusLine = object(TAdvancedStatusLine)
  28. function Hint(AHelpCtx: Word): String; virtual;
  29. procedure HandleEvent(var Event: TEvent); virtual;
  30. end;
  31. PFPHTMLFileLinkScanner = ^TFPHTMLFileLinkScanner;
  32. TFPHTMLFileLinkScanner = object(THTMLFileLinkScanner)
  33. function CheckURL(const URL: string): boolean; virtual;
  34. function CheckText(const Text: string): boolean; virtual;
  35. procedure ProcessDoc(Doc: PHTMLLinkScanFile); virtual;
  36. end;
  37. procedure Help(FileID, Context: THelpCtx; Modal: boolean);
  38. procedure HelpIndex(Keyword: string);
  39. procedure HelpTopicSearch(Editor: PEditor);
  40. procedure HelpTopic(const S: string);
  41. procedure CloseHelpWindows;
  42. procedure InitHelpSystem;
  43. procedure DoneHelpSystem;
  44. procedure InitHelpFiles;
  45. procedure DoneHelpFiles;
  46. procedure CheckHelpSystem;
  47. procedure PushStatus(S: string);
  48. procedure SetStatus(S: string);
  49. procedure ClearStatus;
  50. procedure PopStatus;
  51. const
  52. HelpWindow : PFPHelpWindow = nil;
  53. HelpInited : boolean = false;
  54. implementation
  55. uses Objects,Views,App,MsgBox,
  56. WUtils,WOAHelp,WHTMLHlp,WNGHelp,WOS2Help,WVPHelp,WWinHelp,
  57. FPString,FPConst,FPVars,FPUtils;
  58. const
  59. MaxStatusLevel = {$ifdef FPC}10{$else}1{$endif};
  60. var StatusStack : array[0..MaxStatusLevel] of string[MaxViewWidth];
  61. const
  62. StatusStackPtr : integer = 0;
  63. procedure TIDEStatusLine.HandleEvent(var Event: TEvent);
  64. begin
  65. case Event.What of
  66. evBroadcast :
  67. case Event.Command of
  68. cmUpdate : Update;
  69. end;
  70. end;
  71. inherited HandleEvent(Event);
  72. end;
  73. function TIDEStatusLine.Hint(AHelpCtx: Word): String;
  74. var S: string;
  75. begin
  76. case AHelpCtx of
  77. hcNoContext : S:='';
  78. hcDragging : S:='';
  79. hcSourceWindow : S:='';
  80. hcHelpWindow : S:='';
  81. hcCalcWindow : S:='';
  82. hcInfoWindow : S:='';
  83. hcClipboardWindow:S:='';
  84. hcBrowserWindow : S:='';
  85. hcMessagesWindow: S:='';
  86. hcCompilerMessagesWindow: S:='';
  87. hcASCIITableWindow: S:='';
  88. hcGDBWindow : S:=hint_rawgdbwindow;
  89. hcDisassemblyWindow : S:=hint_disassemblywindow;
  90. hcBreakpointListWindow : S:=hint_allbreakpoints;
  91. hcSystemMenu : S:=hint_systemmenu;
  92. hcUpdate : S:=hint_update;
  93. hcAbout : S:=hint_about;
  94. hcFileMenu : S:=hint_filemenu;
  95. hcNew : S:=hint_filenew;
  96. hcNewFromTemplate:S:=hint_filenewfromtemplate;
  97. hcOpen : S:=hint_fileopen;
  98. hcSave : S:=hint_filesave;
  99. hcSaveAs : S:=hint_filesaveas;
  100. hcSaveAll : S:=hint_filesaveall;
  101. hcChangeDir : S:=hint_changedir;
  102. hcDOSShell : S:=hint_dosshell;
  103. hcQuit : S:=hint_exit;
  104. hcRecentFileBase..hcRecentFileBase+10
  105. : S:=hint_openrecentfile;
  106. hcEditMenu : S:=hint_editmenu;
  107. hcUndo : S:=hint_editundo;
  108. hcRedo : S:=hint_editredo;
  109. hcCut : S:=hint_editcut;
  110. hcCopy : S:=hint_editcopy;
  111. hcPaste : S:=hint_editpaste;
  112. hcCopyWin : S:=hint_editcopywin;
  113. hcPasteWin : S:=hint_editpastewin;
  114. hcClear : S:=hint_editclear;
  115. hcShowClipboard : S:=hint_showclipboard;
  116. hcSearchMenu : S:=hint_searchmenu;
  117. hcFind : S:=hint_searchfind;
  118. hcReplace : S:=hint_searchreplace;
  119. hcSearchAgain : S:=hint_searchagain;
  120. hcGotoLine : S:=hint_gotoline;
  121. hcObjects : S:=hint_objects;
  122. hcModules : S:=hint_modules;
  123. hcGlobals : S:=hint_globals;
  124. hcSymbol : S:=hint_symbol;
  125. hcRunMenu : S:=hint_runmenu;
  126. hcRun : S:=hint_run;
  127. hcParameters : S:=hint_runparameters;
  128. hcResetDebugger : S:=hint_resetprogram;
  129. hcContToCursor : S:=hint_rununtilcursor;
  130. hcUntilReturn : S:=hint_rununtilreturn;
  131. hcUserScreen : S:=hint_userscreen;
  132. hcCompileMenu : S:=hint_compilemenu;
  133. hcCompile : S:=hint_compile;
  134. hcMake : S:=hint_make;
  135. hcBuild : S:=hint_build;
  136. hcTarget : S:=hint_target;
  137. hcPrimaryFile : S:=hint_primaryfile;
  138. hcClearPrimary : S:=hint_clearprimaryfile;
  139. hcInformation : S:=hint_information;
  140. hcCompilerMessages:S:=hint_showmessages;
  141. hcDebugMenu : S:=hint_debugmenu;
  142. hcToggleBreakpoint : S:=hint_togglebreakpoint;
  143. hcNewBreakpoint : S:=hint_createnewbreakpoint;
  144. hcEditBreakpoint : S:=hint_editbreakpoint;
  145. hcDeleteBreakpoint : S:=hint_deletebreakpoint;
  146. hcOpenGDBWindow : S:=hint_opengdbwindow;
  147. hcAddWatch : S:=hint_addwatch;
  148. hcWatchesWindow : S:=hint_watches;
  149. hcStackWindow : S:=hint_callstack;
  150. hcBreakpointList : S:=hint_editbreakpoints;
  151. hcToolsMenu : S:=hint_toolsmenu;
  152. hcCalculator : S:=hint_calculator;
  153. hcGrep : S:=hint_grep;
  154. hcMsgGotoSource : S:=hint_gotosource;
  155. hcRegistersWindow : S:=hint_registers;
  156. hcToolsMessages : S:=hint_messageswindow;
  157. hcToolsBase..
  158. hcToolsBase+MaxToolCount
  159. : S:=hint_usertool;
  160. hcASCIITable : S:=hint_asciitable;
  161. hcOptionsMenu : S:=hint_optionsmenu;
  162. hcSwitchesMode : S:=hint_switchesmode;
  163. hcCompiler : S:=hint_compiler;
  164. hcMemorySizes : S:=hint_memorysizes;
  165. hcLinker : S:=hint_linkeroptions;
  166. hcDebugger : S:=hint_debugoptions;
  167. hcDirectories : S:=hint_directories;
  168. hcBrowser,
  169. hcBrowserOptions: S:=hint_browser;
  170. hcTools : S:=hint_tools;
  171. hcEnvironmentMenu:S:=hint_environmentmenu;
  172. hcPreferences : S:=hint_preferences;
  173. hcEditor : S:=hint_editoroptions;
  174. hcCodeCompleteOptions:S:=hint_codecomplete;
  175. hcCodeTemplateOptions:S:=hint_codetemplates;
  176. hcMouse : S:=hint_mouseoptions;
  177. hcDesktopOptions: S:=hint_desktopoptions;
  178. hcStartup : S:=hint_startup;
  179. hcColors : S:=hint_colors;
  180. hcOpenINI : S:=hint_openini;
  181. hcSaveINI : S:=hint_saveini;
  182. hcSaveAsINI : S:=hint_saveasini;
  183. hcWindowMenu : S:=hint_windowmenu;
  184. hcTile : S:=hint_tile;
  185. hcCascade : S:=hint_cascade;
  186. hcCloseAll : S:=hint_closeall;
  187. hcResize : S:=hint_resize;
  188. hcZoom : S:=hint_zoom;
  189. hcNext : S:=hint_next;
  190. hcPrev : S:=hint_prev;
  191. hcClose : S:=hint_closewindow;
  192. hcWindowList : S:=hint_windowlist;
  193. hcUserScreenWindow:S:=hint_userscreenwindow;
  194. hcHelpMenu : S:=hint_helpmenu;
  195. hcHelpContents : S:=hint_helpcontents;
  196. hcHelpIndex : S:=hint_helpindex;
  197. hcHelpTopicSearch:S:=hint_helptopicsearch;
  198. hcHelpPrevTopic : S:=hint_helpprevtopic;
  199. hcHelpUsingHelp : S:=hint_helphowtouse;
  200. hcHelpFiles : S:=hint_helpfiles;
  201. hcOpenAtCursor : S:=hint_openatcursor;
  202. hcBrowseAtCursor: S:=hint_browseatcursor;
  203. hcEditorOptions : S:=hint_editoroptionscur;
  204. else S:='???';
  205. end;
  206. Hint:=S;
  207. end;
  208. procedure TFPHTMLFileLinkScanner.ProcessDoc(Doc: PHTMLLinkScanFile);
  209. begin
  210. PushStatus(FormatStrStr(msg_indexingfile,Doc^.GetDocumentURL));
  211. inherited ProcessDoc(Doc);
  212. PopStatus;
  213. end;
  214. function TFPHTMLFileLinkScanner.CheckURL(const URL: string): boolean;
  215. var OK: boolean;
  216. const HTTPPrefix = 'http:';
  217. FTPPrefix = 'ftp:';
  218. begin
  219. OK:=inherited CheckURL(URL);
  220. if OK then OK:=DirAndNameOf(URL)<>'';
  221. if OK then OK:=CompareText(copy(ExtOf(URL),1,4),'.HTM')=0;
  222. if OK then OK:=CompareText(copy(URL,1,length(HTTPPrefix)),HTTPPrefix)<>0;
  223. if OK then OK:=CompareText(copy(URL,1,length(FTPPrefix)),FTPPrefix)<>0;
  224. CheckURL:=OK;
  225. end;
  226. function TFPHTMLFileLinkScanner.CheckText(const Text: string): boolean;
  227. var OK: boolean;
  228. S: string;
  229. begin
  230. S:=Trim(Text);
  231. OK:=(S<>'') and (copy(S,1,1)<>'[');
  232. CheckText:=OK;
  233. end;
  234. procedure InitHelpSystem;
  235. procedure AddHelpFile(HelpFile,Param: string);
  236. begin
  237. {$IFDEF DEBUG}SetStatus(msg_LoadingHelpFile+' ('+SmartPath(HelpFile)+')');{$ENDIF}
  238. if HelpFacility^.AddFile(HelpFile,Param)=nil then
  239. ErrorBox(FormatStrStr(msg_failedtoloadhelpfile,HelpFile),nil);
  240. {$IFDEF DEBUG}SetStatus(msg_LoadingHelpFile);{$ENDIF}
  241. end;
  242. var I,P: sw_integer;
  243. S: string;
  244. Param: string;
  245. begin
  246. New(HelpFacility, Init);
  247. WOAHelp.RegisterHelpType;
  248. WNGHelp.RegisterHelpType;
  249. WOS2Help.RegisterHelpType;
  250. WWinHelp.RegisterHelpType;
  251. WVPHelp.RegisterHelpType;
  252. WHTMLHlp.RegisterHelpType;
  253. PushStatus(msg_LoadingHelpFiles);
  254. for I:=0 to HelpFiles^.Count-1 do
  255. begin
  256. S:=HelpFiles^.At(I)^; Param:='';
  257. P:=Pos('|',S);
  258. if P>0 then
  259. begin Param:=copy(S,P+1,High(S)); S:=copy(S,1,P-1); end;
  260. AddHelpFile(S,Param);
  261. end;
  262. PopStatus;
  263. end;
  264. procedure CheckHelpSystem;
  265. begin
  266. if HelpInited then Exit;
  267. InitHelpSystem;
  268. HelpInited:=true;
  269. end;
  270. procedure DoneHelpSystem;
  271. begin
  272. if assigned(HelpFacility) then
  273. begin
  274. Dispose(HelpFacility, Done);
  275. HelpFacility:=nil;
  276. end;
  277. HelpInited:=false;
  278. end;
  279. procedure HelpCreateWindow;
  280. var R: TRect;
  281. begin
  282. CheckHelpSystem;
  283. if HelpWindow=nil then
  284. begin
  285. Desktop^.GetExtent(R); R.Grow(-15,-3); Dec(R.A.Y);
  286. New(HelpWindow, Init(R, dialog_help, 0, 0, SearchFreeWindowNo));
  287. if HelpWindow<>nil then
  288. begin
  289. HelpWindow^.Hide;
  290. Desktop^.Insert(HelpWindow);
  291. end;
  292. end;
  293. end;
  294. procedure Help(FileID, Context: THelpCtx; Modal: boolean);
  295. begin
  296. if Modal then
  297. begin MessageBox(msg_modalhelpnotimplemented,nil,mfInformation+mfInsertInApp+mfOKButton); Exit; end;
  298. HelpCreateWindow;
  299. with HelpWindow^ do
  300. begin
  301. HelpWindow^.ShowTopic(FileID,Context);
  302. if GetState(sfVisible)=false then Show;
  303. MakeFirst;
  304. end;
  305. Message(Application,evCommand,cmUpdate,nil);
  306. end;
  307. procedure HelpTopicSearch(Editor: PEditor);
  308. var S: string;
  309. begin
  310. if Editor=nil then S:='' else
  311. S:=GetEditorCurWord(Editor,[]);
  312. HelpTopic(S);
  313. end;
  314. procedure HelpTopic(const S: string);
  315. var FileID: word;
  316. Ctx : THelpCtx;
  317. var Found: boolean;
  318. begin
  319. CheckHelpSystem;
  320. PushStatus(msg_LocatingTopic);
  321. Found:=HelpFacility^.TopicSearch(S,FileID,Ctx);
  322. PopStatus;
  323. if Found then
  324. Help(FileID,Ctx,false)
  325. else
  326. HelpIndex(S);
  327. end;
  328. procedure HelpIndex(Keyword: string);
  329. begin
  330. HelpCreateWindow;
  331. with HelpWindow^ do
  332. begin
  333. PushStatus(msg_BuildingHelpIndex);
  334. HelpWindow^.ShowIndex;
  335. if Keyword<>'' then
  336. HelpWindow^.HelpView^.Lookup(Keyword);
  337. PopStatus;
  338. if GetState(sfVisible)=false then Show;
  339. MakeFirst;
  340. end;
  341. Message(Application,evCommand,cmUpdate,nil);
  342. end;
  343. procedure PushStatus(S: string);
  344. begin
  345. if StatusLine=nil then
  346. Exit;
  347. If StatusStackPtr<=MaxStatusLevel then
  348. StatusStack[StatusStackPtr]:=PAdvancedStatusLine(StatusLine)^.GetStatusText
  349. else
  350. StatusStack[MaxStatusLevel]:=PAdvancedStatusLine(StatusLine)^.GetStatusText;
  351. SetStatus(S);
  352. Inc(StatusStackPtr);
  353. end;
  354. procedure PopStatus;
  355. begin
  356. if StatusLine=nil then
  357. Exit;
  358. Dec(StatusStackPtr);
  359. If StatusStackPtr<=MaxStatusLevel then
  360. SetStatus(StatusStack[StatusStackPtr])
  361. else
  362. SetStatus(StatusStack[MaxStatusLevel]);
  363. end;
  364. procedure SetStatus(S: string);
  365. begin
  366. if StatusLine=nil then
  367. Exit;
  368. PAdvancedStatusLine(StatusLine)^.SetStatusText(S);
  369. end;
  370. procedure ClearStatus;
  371. begin
  372. PAdvancedStatusLine(StatusLine)^.ClearStatusText;
  373. end;
  374. function FPHTMLGetSectionColor(Section: THTMLSection; var Color: byte): boolean;
  375. var OK: boolean;
  376. S: string;
  377. begin
  378. Color:=0;
  379. OK:=(ord(Section) in [1..length(CHTMLSectionAttrs)]);
  380. if OK then
  381. begin
  382. S:=#0;
  383. S:=copy(CHTMLSectionAttrs,ord(Section),1);
  384. if Assigned(Application)=false then Color:=0 else
  385. Color:=Application^.GetColor(ord(S[1]));
  386. if (Color and $0f) = ((Color and $f0) shr 4) then { same color ? }
  387. OK:=false;
  388. end;
  389. FPHTMLGetSectionColor:=OK;
  390. end;
  391. function FPNGGetAttrColor(Attr: char; var Color: byte): boolean;
  392. var OK: boolean;
  393. begin
  394. OK:=false;
  395. case Attr of
  396. 'A' : OK:=FPHTMLGetSectionColor(hsHeading1,Color);
  397. 'B' : OK:=FPHTMLGetSectionColor(hsHeading2,Color);
  398. 'b' : OK:=FPHTMLGetSectionColor(hsHeading5,Color);
  399. 'U' : OK:=FPHTMLGetSectionColor(hsHeading3,Color);
  400. 'N' : OK:=FPHTMLGetSectionColor(hsHeading4,Color);
  401. {$ifdef DEBUGMSG}
  402. else ErrorBox('Unknown attr encountered : "'+Attr+'"',nil);
  403. {$endif}
  404. end;
  405. FPNGGetAttrColor:=OK;
  406. end;
  407. function FPINFGetAttrColor(TextStyle, TextColor: byte; var Color: byte): boolean;
  408. var OK: boolean;
  409. begin
  410. OK:=false;
  411. case TextColor of
  412. 1 : OK:=FPHTMLGetSectionColor(hsHeading1,Color);
  413. 2 : OK:=FPHTMLGetSectionColor(hsHeading2,Color);
  414. 3 : OK:=FPHTMLGetSectionColor(hsHeading3,Color);
  415. end;
  416. FPINFGetAttrColor:=OK;
  417. end;
  418. procedure InitHelpFiles;
  419. begin
  420. HTMLGetSectionColor:={$ifdef FPC}@{$endif}FPHTMLGetSectionColor;
  421. NGGetAttrColor:={$ifdef FPC}@{$endif}FPNGGetAttrColor;
  422. INFGetAttrColor:={$ifdef FPC}@{$endif}FPINFGetAttrColor;
  423. New(HelpFiles, Init(10,10));
  424. end;
  425. procedure DoneHelpFiles;
  426. begin
  427. if assigned(HelpFiles) then
  428. Dispose(HelpFiles, Done);
  429. end;
  430. procedure CloseHelpWindows;
  431. procedure CloseIfHelpWindow(P: PView); {$ifndef FPC}far;{$endif}
  432. begin
  433. if P^.HelpCtx=hcHelpWindow then
  434. begin
  435. Message(P,evCommand,cmClose,nil);
  436. {Dispose(P, Done); help windows are only hidden on close so we've
  437. to destroy them manually
  438. but this was wrong as it was not correctly
  439. resetting the corresponding pointer in whelp unit PM }
  440. end;
  441. end;
  442. begin
  443. Desktop^.ForEach(@CloseIfHelpWindow);
  444. end;
  445. END.
  446. {
  447. $Log$
  448. Revision 1.4 2001-10-01 00:24:09 pierre
  449. * fix several help problems
  450. Revision 1.3 2001/09/10 10:52:59 pierre
  451. * fix web bug 1368
  452. Revision 1.2 2001/08/05 02:01:47 peter
  453. * FVISION define to compile with fvision units
  454. Revision 1.1 2001/08/04 11:30:23 peter
  455. * ide works now with both compiler versions
  456. Revision 1.1.2.7 2001/03/12 17:34:55 pierre
  457. + Disassembly window started
  458. Revision 1.1.2.6 2000/11/29 11:25:59 pierre
  459. + TFPDlgWindow that handles cmSearchWindow
  460. Revision 1.1.2.5 2000/11/29 00:54:44 pierre
  461. + preserve window number and save special windows
  462. Revision 1.1.2.4 2000/11/27 12:06:48 pierre
  463. New bunch of Gabor fixes
  464. Revision 1.1.2.3 2000/11/23 16:33:30 pierre
  465. * fix Alt-X problem and set HelpCtx for most dialogs
  466. Revision 1.1.2.2 2000/09/18 13:20:54 pierre
  467. New bunch of Gabor changes
  468. Revision 1.1.2.1 2000/08/15 03:40:53 peter
  469. [*] no more fatal exits when the IDE can't find the error file (containing
  470. the redirected assembler/linker output) after compilation
  471. [*] hidden windows are now added always at the end of the Window List
  472. [*] TINIFile parsed entries encapsulated in string delimiters incorrectly
  473. [*] selection was incorrectly adjusted when typing in overwrite mode
  474. [*] the line wasn't expanded when it's end was reached in overw. mode
  475. [*] the IDE now tries to locate source files also in the user specified
  476. unit dirs (for ex. as a response to 'Open at cursor' (Ctrl+Enter) )
  477. [*] 'Open at cursor' is now aware of the extension (if specified)
  478. Revision 1.1 2000/07/13 09:48:34 michael
  479. + Initial import
  480. Revision 1.35 2000/06/26 07:29:23 pierre
  481. * new bunch of Gabor's changes
  482. Revision 1.34 2000/06/22 09:07:12 pierre
  483. * Gabor changes: see fixes.txt
  484. Revision 1.33 2000/06/16 08:50:40 pierre
  485. + new bunch of Gabor's changes
  486. Revision 1.32 2000/05/30 07:18:33 pierre
  487. + colors for HTML help by Gabor
  488. Revision 1.31 2000/05/29 10:44:56 pierre
  489. + New bunch of Gabor's changes: see fixes.txt
  490. Revision 1.30 2000/05/02 08:42:27 pierre
  491. * new set of Gabor changes: see fixes.txt
  492. Revision 1.29 2000/04/25 08:42:33 pierre
  493. * New Gabor changes : see fixes.txt
  494. Revision 1.28 2000/03/21 23:31:14 pierre
  495. adapted to wcedit addition by Gabor
  496. Revision 1.27 2000/02/07 11:58:01 pierre
  497. Gabor's code inserted
  498. Revision 1.26 2000/01/08 18:26:20 florian
  499. + added a register window, doesn't work yet
  500. Revision 1.25 2000/01/05 17:25:26 pierre
  501. * typo error corrected
  502. Revision 1.24 2000/01/03 11:38:33 michael
  503. Changes from Gabor
  504. Revision 1.23 1999/09/09 16:31:45 pierre
  505. * some breakpoint related fixes and Help contexts
  506. Revision 1.22 1999/09/09 14:15:27 pierre
  507. + cmCopyWin,cmPasteWin
  508. Revision 1.21 1999/08/16 18:25:17 peter
  509. * Adjusting the selection when the editor didn't contain any line.
  510. * Reserved word recognition redesigned, but this didn't affect the overall
  511. syntax highlight speed remarkably (at least not on my Amd-K6/350).
  512. The syntax scanner loop is a bit slow but the main problem is the
  513. recognition of special symbols. Switching off symbol processing boosts
  514. the performance up to ca. 200%...
  515. * The editor didn't allow copying (for ex to clipboard) of a single character
  516. * 'File|Save as' caused permanently run-time error 3. Not any more now...
  517. * Compiler Messages window (actually the whole desktop) did not act on any
  518. keypress when compilation failed and thus the window remained visible
  519. + Message windows are now closed upon pressing Esc
  520. + At 'Run' the IDE checks whether any sources are modified, and recompiles
  521. only when neccessary
  522. + BlockRead and BlockWrite (Ctrl+K+R/W) implemented in TCodeEditor
  523. + LineSelect (Ctrl+K+L) implemented
  524. * The IDE had problems closing help windows before saving the desktop
  525. Revision 1.20 1999/08/03 20:22:31 peter
  526. + TTab acts now on Ctrl+Tab and Ctrl+Shift+Tab...
  527. + Desktop saving should work now
  528. - History saved
  529. - Clipboard content saved
  530. - Desktop saved
  531. - Symbol info saved
  532. * syntax-highlight bug fixed, which compared special keywords case sensitive
  533. (for ex. 'asm' caused asm-highlighting, while 'ASM' didn't)
  534. * with 'whole words only' set, the editor didn't found occourences of the
  535. searched text, if the text appeared previously in the same line, but didn't
  536. satisfied the 'whole-word' condition
  537. * ^QB jumped to (SelStart.X,SelEnd.X) instead of (SelStart.X,SelStart.Y)
  538. (ie. the beginning of the selection)
  539. * when started typing in a new line, but not at the start (X=0) of it,
  540. the editor inserted the text one character more to left as it should...
  541. * TCodeEditor.HideSelection (Ctrl-K+H) didn't update the screen
  542. * Shift shouldn't cause so much trouble in TCodeEditor now...
  543. * Syntax highlight had problems recognizing a special symbol if it was
  544. prefixed by another symbol character in the source text
  545. * Auto-save also occours at Dos shell, Tool execution, etc. now...
  546. Revision 1.19 1999/07/12 13:14:17 pierre
  547. * LineEnd bug corrected, now goes end of text even if selected
  548. + Until Return for debugger
  549. + Code for Quit inside GDB Window
  550. Revision 1.18 1999/07/10 01:24:16 pierre
  551. + First implementation of watches window
  552. Revision 1.17 1999/06/30 23:58:14 pierre
  553. + BreakpointsList Window implemented
  554. with Edit/New/Delete functions
  555. + Individual breakpoint dialog with support for all types
  556. ignorecount and conditions
  557. (commands are not yet implemented, don't know if this wolud be useful)
  558. awatch and rwatch have problems because GDB does not annotate them
  559. I fixed v4.16 for this
  560. Revision 1.16 1999/06/28 19:32:19 peter
  561. * fixes from gabor
  562. Revision 1.15 1999/06/25 00:39:58 pierre
  563. help for cmSymbol,cmAddWatch,cmStack and cmBreakpoint list
  564. Revision 1.14 1999/04/07 21:55:46 peter
  565. + object support for browser
  566. * html help fixes
  567. * more desktop saving things
  568. * NODEBUG directive to exclude debugger
  569. Revision 1.13 1999/03/23 15:11:28 peter
  570. * desktop saving things
  571. * vesa mode
  572. * preferences dialog
  573. Revision 1.12 1999/03/16 12:38:09 peter
  574. * tools macro fixes
  575. + tph writer
  576. + first things for resource files
  577. Revision 1.11 1999/03/01 15:41:53 peter
  578. + Added dummy entries for functions not yet implemented
  579. * MenuBar didn't update itself automatically on command-set changes
  580. * Fixed Debugging/Profiling options dialog
  581. * TCodeEditor converts spaces to tabs at save only if efUseTabChars is set
  582. * efBackSpaceUnindents works correctly
  583. + 'Messages' window implemented
  584. + Added '$CAP MSG()' and '$CAP EDIT' to available tool-macros
  585. + Added TP message-filter support (for ex. you can call GREP thru
  586. GREP2MSG and view the result in the messages window - just like in TP)
  587. * A 'var' was missing from the param-list of THelpFacility.TopicSearch,
  588. so topic search didn't work...
  589. * In FPHELP.PAS there were still context-variables defined as word instead
  590. of THelpCtx
  591. * StdStatusKeys() was missing from the statusdef for help windows
  592. + Topic-title for index-table can be specified when adding a HTML-files
  593. Revision 1.10 1999/02/22 11:51:35 peter
  594. * browser updates from gabor
  595. Revision 1.9 1999/02/19 18:43:45 peter
  596. + open dialog supports mask list
  597. Revision 1.8 1999/02/11 19:07:21 pierre
  598. * GDBWindow redesigned :
  599. normal editor apart from
  600. that any kbEnter will send the line (for begin to cursor)
  601. to GDB command !
  602. GDBWindow opened in Debugger Menu
  603. still buggy :
  604. -echo should not be present if at end of text
  605. -GDBWindow becomes First after each step (I don't know why !)
  606. Revision 1.7 1999/02/08 17:40:01 pierre
  607. + cmContToCursor added
  608. Revision 1.6 1999/02/08 10:37:43 peter
  609. + html helpviewer
  610. Revision 1.5 1999/02/04 12:23:44 pierre
  611. + cmResetDebugger and cmGrep
  612. * Avoid StatusStack overflow
  613. Revision 1.4 1999/01/21 11:54:13 peter
  614. + tools menu
  615. + speedsearch in symbolbrowser
  616. * working run command
  617. Revision 1.3 1999/01/04 11:49:44 peter
  618. * 'Use tab characters' now works correctly
  619. + Syntax highlight now acts on File|Save As...
  620. + Added a new class to syntax highlight: 'hex numbers'.
  621. * There was something very wrong with the palette managment. Now fixed.
  622. + Added output directory (-FE<xxx>) support to 'Directories' dialog...
  623. * Fixed some possible bugs in Running/Compiling, and the compilation/run
  624. process revised
  625. Revision 1.2 1998/12/28 15:47:44 peter
  626. + Added user screen support, display & window
  627. + Implemented Editor,Mouse Options dialog
  628. + Added location of .INI and .CFG file
  629. + Option (INI) file managment implemented (see bottom of Options Menu)
  630. + Switches updated
  631. + Run program
  632. Revision 1.3 1998/12/22 10:39:42 peter
  633. + options are now written/read
  634. + find and replace routines
  635. }