diff --git a/ide/fpconst.pas b/ide/fpconst.pas index 15979b5f81..33f8743bd9 100644 --- a/ide/fpconst.pas +++ b/ide/fpconst.pas @@ -250,6 +250,7 @@ const cmEditorOptions = 2202; cmBrowserOptions = 2203; + cmDoReload = 2204; cmTrackReference = 2300; cmGotoReference = 2301; @@ -411,7 +412,7 @@ const hcBrowseAtCursor = hcShift+cmBrowseAtCursor; hcEditorOptions = hcShift+cmEditorOptions; hcBrowserOptions = hcShift+cmBrowserOptions; - + hcDoReload = hcShift+cmDoReload; { History constants } hisChDirDialog = 2000; @@ -473,7 +474,10 @@ implementation END. { $Log$ - Revision 1.12 2002-11-30 01:53:02 pierre + Revision 1.13 2003-01-22 00:27:58 pierre + * implement reloadfile if changed + + Revision 1.12 2002/11/30 01:53:02 pierre + cross-powerpc specific filenames Revision 1.11 2002/11/28 12:52:14 pierre diff --git a/ide/fphelp.pas b/ide/fphelp.pas index e11544ba8b..7ed3478ce6 100644 --- a/ide/fphelp.pas +++ b/ide/fphelp.pas @@ -201,6 +201,7 @@ begin hcTools : S:=hint_tools; hcRemoteDialog : S:=hint_remotedialog; hcTransferRemote: S:=hint_transferremote; + hcDoReload : S:=hint_reloadmodifiedfile; hcEnvironmentMenu:S:=hint_environmentmenu; hcPreferences : S:=hint_preferences; @@ -265,10 +266,21 @@ end; function TFPHTMLFileLinkScanner.CheckText(const Text: string): boolean; var OK: boolean; + i : sw_integer; S: string; begin S:=Trim(Text); - OK:=(S<>'') and (copy(S,1,1)<>'['); + OK:=(S<>'') and (S[1]<>'[') and (S[1]<>','); + { remove all Indexes } + if s[1] in ['0'..'9'] then + begin + i:=1; + while (i