mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 09:40:28 +02:00
implemented filename case check before adding to project
git-svn-id: trunk@4243 -
This commit is contained in:
parent
063492dc1c
commit
0da8d34560
@ -257,6 +257,7 @@ resourcestring
|
|||||||
lisThereAreOtherFilesInTheDirectoryWithTheSameName = 'There are other files '
|
lisThereAreOtherFilesInTheDirectoryWithTheSameName = 'There are other files '
|
||||||
+'in the directory with the same name,%swhich only differ in case:%s%s%'
|
+'in the directory with the same name,%swhich only differ in case:%s%s%'
|
||||||
+'sDelete them?';
|
+'sDelete them?';
|
||||||
|
lisDeleteOldFile = 'Delete old file %s%s%s?';
|
||||||
lisDeletingOfFileFailed = 'Deleting of file %s%s%s failed.';
|
lisDeletingOfFileFailed = 'Deleting of file %s%s%s failed.';
|
||||||
lisStreamingError = 'Streaming error';
|
lisStreamingError = 'Streaming error';
|
||||||
lisUnableToStreamT = 'Unable to stream %s:T%s.';
|
lisUnableToStreamT = 'Unable to stream %s:T%s.';
|
||||||
@ -371,6 +372,11 @@ resourcestring
|
|||||||
lisUnableToRenameFileTo = 'Unable to rename file %s%s%s to %s%s%s!';
|
lisUnableToRenameFileTo = 'Unable to rename file %s%s%s to %s%s%s!';
|
||||||
lisBackupFileFailed = 'Backup file failed';
|
lisBackupFileFailed = 'Backup file failed';
|
||||||
lisUnableToBackupFileTo = 'Unable to backup file %s%s%s to %s%s%s!';
|
lisUnableToBackupFileTo = 'Unable to backup file %s%s%s to %s%s%s!';
|
||||||
|
lisFileNotLowercase = 'File not lowercase';
|
||||||
|
lisTheUnitIsNotLowercaseTheFreePascalCompiler10XNeeds = 'The unit %s%s%s is '
|
||||||
|
+'not lowercase.%sThe FreePascal compiler 1.0.x needs lowercase '
|
||||||
|
+'filenames. If you do not use the fpc 1.0.x to compile this unit, you '
|
||||||
|
+'can ignore this message.%s%sRename file?';
|
||||||
lisDeleteAmbigiousFile = 'Delete ambigious file?';
|
lisDeleteAmbigiousFile = 'Delete ambigious file?';
|
||||||
lisAmbigiousFileFoundThisFileCanBeMistakenWithDelete = 'Ambigious file '
|
lisAmbigiousFileFoundThisFileCanBeMistakenWithDelete = 'Ambigious file '
|
||||||
+'found: %s%s%s%sThis file can be mistaken with %s%s%s%s%sDelete the '
|
+'found: %s%s%s%sThis file can be mistaken with %s%s%s%s%sDelete the '
|
||||||
|
@ -150,12 +150,13 @@ type
|
|||||||
function WriteUnitSourceToFile(const AFileName: string): TModalResult;
|
function WriteUnitSourceToFile(const AFileName: string): TModalResult;
|
||||||
procedure Clear;
|
procedure Clear;
|
||||||
procedure CreateStartCode(NewUnitType: TNewUnitType;
|
procedure CreateStartCode(NewUnitType: TNewUnitType;
|
||||||
const NewUnitName: string);
|
const NewUnitName: string);
|
||||||
procedure DecreaseAutoRevertLock;
|
procedure DecreaseAutoRevertLock;
|
||||||
procedure IgnoreCurrentFileDateOnDisk;
|
procedure IgnoreCurrentFileDateOnDisk;
|
||||||
procedure IncreaseAutoRevertLock;
|
procedure IncreaseAutoRevertLock;
|
||||||
procedure LoadFromXMLConfig(XMLConfig: TXMLConfig; const Path: string);
|
procedure LoadFromXMLConfig(XMLConfig: TXMLConfig; const Path: string);
|
||||||
procedure ReadUnitNameFromSource;
|
procedure ReadUnitNameFromSource;
|
||||||
|
function CreateUnitName: string;
|
||||||
procedure SaveToXMLConfig(XMLConfig: TXMLConfig; const Path: string);
|
procedure SaveToXMLConfig(XMLConfig: TXMLConfig; const Path: string);
|
||||||
procedure UpdateUsageCount(Min, IfBelowThis, IncIfBelow: extended);
|
procedure UpdateUsageCount(Min, IfBelowThis, IncIfBelow: extended);
|
||||||
procedure UpdateUsageCount(TheUsage: TUnitUsage; Factor: extended);
|
procedure UpdateUsageCount(TheUsage: TUnitUsage; Factor: extended);
|
||||||
@ -666,6 +667,13 @@ begin
|
|||||||
fUnitName:=CodeToolBoss.GetSourceName(fSource,false);
|
fUnitName:=CodeToolBoss.GetSourceName(fSource,false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TUnitInfo.CreateUnitName: string;
|
||||||
|
begin
|
||||||
|
Result:=UnitName;
|
||||||
|
if (Result='') and FilenameIsPascalUnit(Filename) then
|
||||||
|
Result:=ExtractFilenameOnly(Filename);
|
||||||
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
TUnitInfo Clear
|
TUnitInfo Clear
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
@ -2639,6 +2647,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.128 2003/06/08 11:05:45 mattias
|
||||||
|
implemented filename case check before adding to project
|
||||||
|
|
||||||
Revision 1.127 2003/06/03 16:12:14 mattias
|
Revision 1.127 2003/06/03 16:12:14 mattias
|
||||||
fixed loading bookmarks for editor index 0
|
fixed loading bookmarks for editor index 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user