fixed fpc 1.0.10 compilation

git-svn-id: trunk@5711 -
This commit is contained in:
mattias 2004-07-25 22:54:38 +00:00
parent 7ee9cae478
commit efd5eaf7b4
6 changed files with 30 additions and 5 deletions

View File

@ -3220,7 +3220,7 @@ end;
function TListPropertyEditor.GetElementName(Element: TListElementPropertyEditor function TListPropertyEditor.GetElementName(Element: TListElementPropertyEditor
): shortstring; ): shortstring;
begin begin
Result:='';
end; end;
procedure TListPropertyEditor.GetElementProperties( procedure TListPropertyEditor.GetElementProperties(

View File

@ -1608,12 +1608,14 @@ type
end; end;
{$IFNDEF VER1_0}
{ TControlPropertyStorage } { TControlPropertyStorage }
TControlPropertyStorage = class(TCustomPropertyStorage) TControlPropertyStorage = class(TCustomPropertyStorage)
protected protected
procedure GetPropertyList(List : TStrings); override; procedure GetPropertyList(List : TStrings); override;
end; end;
{$ENDIF not VER1_0}
{ TDockZone } { TDockZone }
@ -2335,6 +2337,7 @@ begin
if Assigned(FOnChange) then FOnChange(Self); if Assigned(FOnChange) then FOnChange(Self);
end; end;
{$IFNDEF VER1_0}
{ TControlPropertyStorage } { TControlPropertyStorage }
procedure TControlPropertyStorage.GetPropertyList(List: TStrings); procedure TControlPropertyStorage.GetPropertyList(List: TStrings);
@ -2363,6 +2366,7 @@ begin
end; end;
end; end;
end; end;
{$ENDIF not VER1_0}
initialization initialization
@ -2384,6 +2388,9 @@ end.
{ ============================================================================= { =============================================================================
$Log$ $Log$
Revision 1.230 2004/07/25 22:54:38 mattias
fixed fpc 1.0.10 compilation
Revision 1.229 2004/07/25 15:39:55 mattias Revision 1.229 2004/07/25 15:39:55 mattias
added rx components from Michal Van Canneyt added rx components from Michal Van Canneyt

View File

@ -994,6 +994,7 @@ type
end; end;
{$IFNDEF VER1_0}
{ TFormPropertyStorage } { TFormPropertyStorage }
TFormPropertyStorage = class(TControlPropertyStorage) TFormPropertyStorage = class(TControlPropertyStorage)
@ -1004,6 +1005,7 @@ type
constructor Create(TheOwner: TComponent); override; constructor Create(TheOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
end; end;
{$ENDIF not VER1_0}
{$IFNDEF UseFCLDataModule} {$IFNDEF UseFCLDataModule}
@ -1546,6 +1548,7 @@ end;
{$I applicationproperties.inc} {$I applicationproperties.inc}
//============================================================================== //==============================================================================
{$IFNDEF VER1_0}
{ TFormPropertyStorage } { TFormPropertyStorage }
procedure TFormPropertyStorage.FormFirstShow(Sender: TObject); procedure TFormPropertyStorage.FormFirstShow(Sender: TObject);
@ -1577,6 +1580,7 @@ begin
inherited Destroy; inherited Destroy;
end; end;
{$ENDIF not VER1_0}
//============================================================================== //==============================================================================
{$I hintwindow.inc} {$I hintwindow.inc}

View File

@ -19,6 +19,7 @@ unit IniPropStorage;
interface interface
{$IFNDEF VER1_0}
uses uses
Classes, SysUtils, Forms, IniFiles, PropertyStorage; Classes, SysUtils, Forms, IniFiles, PropertyStorage;
@ -62,6 +63,8 @@ Type
property OnRestoreProperties; property OnRestoreProperties;
end; end;
{$ENDIF not VER1_0}
Procedure Register; Procedure Register;
@ -75,6 +78,7 @@ begin
{$ENDIF} {$ENDIF}
end; end;
{$IFNDEF VER1_0}
{ Should move to strutils when 1.9.6 is out. } { Should move to strutils when 1.9.6 is out. }
function FindPart(const HelpWilds, InputStr: string): Integer; function FindPart(const HelpWilds, InputStr: string): Integer;
@ -292,5 +296,6 @@ begin
end; end;
end; end;
{$ENDIF not VER1_0}
end. end.

View File

@ -19,6 +19,7 @@ unit PropertyStorage;
interface interface
{$IFNDEF VER1_0}
uses uses
Classes, SysUtils, RTLConst Classes, SysUtils, RTLConst
{$IFDEF EnableSessionProps}, RTTIUtils{$ENDIF}; {$IFDEF EnableSessionProps}, RTTIUtils{$ENDIF};
@ -160,10 +161,10 @@ Type
property OnRestoreProperties : TNotifyEvent read FOnRestoreProperties write FOnRestoreProperties; property OnRestoreProperties : TNotifyEvent read FOnRestoreProperties write FOnRestoreProperties;
end; end;
{$ENDIF not VER1_0}
implementation implementation
{$IFNDEF VER1_0}
function XorEncode(const Key, Source: string): string; function XorEncode(const Key, Source: string): string;
var var
I: Integer; I: Integer;
@ -609,17 +610,19 @@ begin
end; end;
procedure TCustomPropertyStorage.FinishPropertyList(List: TStrings); procedure TCustomPropertyStorage.FinishPropertyList(List: TStrings);
{$IFDEF EnableSessionProps}
var var
i: Integer; i: Integer;
CompName: string; CompName: string;
PropName: string; PropName: string;
ARoot: TComponent; ARoot: TComponent;
AComponent: TComponent; AComponent: TComponent;
{$ENDIF}
begin begin
{$IFDEF EnableSessionProps}
// set Objects (i.e. the component of each property) // set Objects (i.e. the component of each property)
ARoot:=Root; ARoot:=Root;
for i:=List.Count-1 downto 0 do begin for i:=List.Count-1 downto 0 do begin
{$IFDEF EnableSessionProps}
if ParseStoredItem(List[I], CompName, PropName) then begin if ParseStoredItem(List[I], CompName, PropName) then begin
if CompareText(ARoot.Name,CompName)=0 then if CompareText(ARoot.Name,CompName)=0 then
List.Objects[i]:=ARoot List.Objects[i]:=ARoot
@ -633,8 +636,8 @@ begin
end else begin end else begin
List.Delete(i); List.Delete(i);
end; end;
{$ENDIF}
end; end;
{$ENDIF}
end; end;
function TCustomPropertyStorage.DoReadInteger(const Section, Ident: String; function TCustomPropertyStorage.DoReadInteger(const Section, Ident: String;
@ -714,5 +717,7 @@ begin
StoredValues.StoredValue[AName] := Value; StoredValues.StoredValue[AName] := Value;
end; end;
{$ENDIF not VER1_0}
end. end.

View File

@ -19,6 +19,7 @@ unit XMLPropStorage;
interface interface
{$IFNDEF VER1_0}
uses uses
Classes, SysUtils, Forms, PropertyStorage, XMLCfg, DOM; Classes, SysUtils, Forms, PropertyStorage, XMLCfg, DOM;
@ -62,6 +63,7 @@ type
property OnSaveProperties; property OnSaveProperties;
property OnRestoreProperties; property OnRestoreProperties;
end; end;
{$ENDIF not VER1_0}
procedure Register; procedure Register;
@ -76,6 +78,7 @@ begin
{$ENDIF} {$ENDIF}
end; end;
{$IFNDEF VER1_0}
{ TCustomXMLPropStorage } { TCustomXMLPropStorage }
procedure TCustomXMLPropStorage.StorageNeeded(ReadOnly: Boolean); procedure TCustomXMLPropStorage.StorageNeeded(ReadOnly: Boolean);
@ -166,4 +169,5 @@ begin
Node.Free; Node.Free;
end; end;
{$ENDIF not VER1_0}
end. end.