fixed fpc 1.0.10 compilation

git-svn-id: trunk@5798 -
This commit is contained in:
mattias 2004-08-15 22:31:51 +00:00
parent 089b41a7db
commit 444c86b6f5
3 changed files with 23 additions and 9 deletions

View File

@ -521,7 +521,7 @@ Type
procedure SetDataSource(const AValue: TDataSource);
procedure SetReadOnly(const AValue: Boolean);
protected
function WordWrapIsStored: boolean; virtual;
function WordWrapIsStored: boolean; override;
procedure DataChange(Sender: TObject); virtual;
procedure EditingChange(Sender: TObject); virtual;
procedure Notification(AComponent: TComponent;
@ -1248,6 +1248,9 @@ end.
{ =============================================================================
$Log$
Revision 1.18 2004/08/15 22:31:51 mattias
fixed fpc 1.0.10 compilation
Revision 1.17 2004/08/13 16:40:47 mazen
+ TCharater type used to allow UTF8 keyboard with gtk2

View File

@ -34,7 +34,7 @@ unit LResources;
interface
uses
Classes, SysUtils, FPCAdds, TypInfo, RTLConst, LCLProc, LCLStrConsts;
Classes, SysUtils, FPCAdds, TypInfo, LCLProc, LCLStrConsts;
type
{ TLResourceList }
@ -1289,8 +1289,12 @@ procedure LRSObjectBinaryToText(Input, Output: TStream);
ext: Extended;
ASingle: single;
ADate: TDateTime;
{$ifdef HASCURRENCY}
ACurrency: Currency;
{$endif HASCURRENCY}
{$ifdef HASWIDESTRING}
AWideString: WideString;
{$endif HASWIDESTRING}
begin
case ValueType of
@ -1366,14 +1370,18 @@ procedure LRSObjectBinaryToText(Input, Output: TStream);
ADate:=TDateTime(ReadLRSDouble(Input));
OutLn(FloatToStr(ADate));
end;
{$ifdef HASCURRENCY}
vaCurrency: begin
ACurrency:=ReadLRSCurrency(Input);
OutLn(FloatToStr(ACurrency));
end;
{$endif HASCURRENCY}
{$ifdef HASWIDESTRING}
vaWString: begin
AWideString:=ReadLRSWideString(Input);
OutLn(AWideString);
end;
{$endif HASWIDESTRING}
else begin
debugln('Unknown ValueType=',dbgs(Ord(ValueType)),' vaInt16=',dbgs(Ord(vaInt16)));
Stop(IntToStr(Ord(ValueType)));
@ -1427,7 +1435,7 @@ procedure LRSObjectBinaryToText(Input, Output: TStream);
end;
begin
if Input.ReadDWord <> PLongWord(@FilerSignature[1])^ then
if Input.ReadDWord <> PCardinal(@FilerSignature[1])^ then
raise EReadError.Create('Illegal stream image' {###SInvalidImage});
ReadObject('');
end;
@ -1672,7 +1680,7 @@ var
parser.NextToken;
end;
else
parser.Error(SInvalidProperty);
parser.Error('Invalid Property');
end;
end;
@ -2160,7 +2168,7 @@ begin
begin
FBufEnd := FStream.Read(FBuffer^, FBufSize);
if FBufEnd = 0 then
raise EReadError.Create(SReadError);
raise EReadError.Create('Read Error');
FBufPos := 0;
end;
CopyNow := FBufEnd - FBufPos;
@ -2235,7 +2243,7 @@ begin
{ Read filer signature }
Read(Signature,4);
if Signature <> LongInt(FilerSignature) then
raise EReadError.Create(SInvalidImage);
raise EReadError.Create('Invalid Filer Signature');
end;
procedure TLRSObjectReader.BeginComponent(var Flags: TFilerFlags;
@ -2261,7 +2269,7 @@ begin
vaInt32:
AChildPos := ReadInt32;
else
raise EReadError.Create(SInvalidPropertyValue);
raise EReadError.Create('Invalid Property Value');
end;
end;
end;
@ -2392,7 +2400,7 @@ begin
break;
Value := GetEnumValue(PTypeInfo(EnumType), Name);
if Value = -1 then
raise EReadError.Create(SInvalidPropertyValue);
raise EReadError.Create('Invalid Property Value');
Result := Result or (1 shl Value);
end;
except

View File

@ -606,7 +606,7 @@ type
procedure SetScrollBars(const Value : TScrollStyle);
procedure InitializeWnd; override;
procedure Loaded; override;
function WordWrapIsStored: boolean;
function WordWrapIsStored: boolean; virtual;
procedure ControlKeyDown(var Key: Word; Shift : TShiftState); override;
public
constructor Create(AOwner: TComponent); override;
@ -1158,6 +1158,9 @@ end.
{ =============================================================================
$Log$
Revision 1.159 2004/08/15 22:31:51 mattias
fixed fpc 1.0.10 compilation
Revision 1.158 2004/08/13 16:40:47 mazen
+ TCharater type used to allow UTF8 keyboard with gtk2