From e99b62d3dee522376defa446d58b6c5d44996cbf Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 12 Mar 2004 15:48:57 +0000 Subject: [PATCH] fixed 1.0.x compilation git-svn-id: trunk@5296 - --- components/codetools/pascalparsertool.pas | 4 ++- lcl/filectrl.pp | 21 +++++++-------- lcl/stdctrls.pp | 31 +++++++++++++++++++++-- 3 files changed, 43 insertions(+), 13 deletions(-) diff --git a/components/codetools/pascalparsertool.pas b/components/codetools/pascalparsertool.pas index 52ead7a772..639b0103cb 100644 --- a/components/codetools/pascalparsertool.pas +++ b/components/codetools/pascalparsertool.pas @@ -482,7 +482,9 @@ begin CurNode.Desc:=CurSection; ReadNextAtom; // read source name AtomIsIdentifier(true); - ReadNextAtom; // read ';' + ReadNextAtom; // read ';' (or 'platform;') + if UpAtomIs('PLATFORM') then + ReadNextAtom; if (CurPos.Flag<>cafSemicolon) then RaiseCharExpectedButAtomFound(';'); if CurSection=ctnUnit then begin diff --git a/lcl/filectrl.pp b/lcl/filectrl.pp index ec23cd13e8..49824c9313 100644 --- a/lcl/filectrl.pp +++ b/lcl/filectrl.pp @@ -30,7 +30,7 @@ This unit contains file and directory controls and supporting handling functions. } -unit filectrl; +unit FileCtrl; {$mode objfpc}{$H+} @@ -42,12 +42,12 @@ interface uses Classes, SysUtils, -{$ifdef VER1_0} -// fpc 1.0.x needs unit in which redefined property originally is defined -// otherwise IE 55665566 occurs. - Controls, -{$endif} - StdCtrls; + {$ifdef VER1_0} + // fpc 1.0.x needs unit in which redefined property originally is defined + // otherwise IE 55665566 occurs. + Controls, + {$endif} + StdCtrls; Type @@ -265,7 +265,7 @@ function TCustomFileListBox.IndexOfFile(const AFilename: string): integer; begin Result:=0; while (Result0) do + and (CompareFilenames(AFilename,Items[Result])<>0) do inc(Result); Result:=-1; end; @@ -360,12 +360,13 @@ end; initialization InternalInit; -finalization - end. { $Log$ + Revision 1.25 2004/03/12 15:48:57 mattias + fixed 1.0.x compilation + Revision 1.24 2004/03/12 12:53:51 vincents fixed comment diff --git a/lcl/stdctrls.pp b/lcl/stdctrls.pp index 8b806afdf1..44d943355f 100644 --- a/lcl/stdctrls.pp +++ b/lcl/stdctrls.pp @@ -395,22 +395,46 @@ type procedure MakeCurrentVisible; procedure Clear; public + property Align; + property Anchors; property BorderStyle : TBorderStyle read FBorderStyle write SetBorderStyle default bsSingle; property Canvas: TCanvas read FCanvas; + property Constraints; property ExtendedSelect : boolean read FExtendedSelect write SetExtendedSelect; + property Font; property IntegralHeight: boolean read FIntegralHeight write FIntegralHeight; // not implemented property ItemHeight: Integer read GetItemHeight write SetItemHeight; property ItemIndex : integer read GetItemIndex write SetItemIndex; property Items : TStrings read FItems write SetItems; property MultiSelect: boolean read FMultiSelect write SetMultiSelect; + property OnChangeBounds; + property OnClick; + property OnDblClick; property OnDrawItem: TDrawItemEvent read FOnDrawItem write FOnDrawItem; + property OnEnter; + property OnExit; + property OnKeyDown; + property OnKeyPress; + property OnKeyUp; + property OnMouseDown; + property OnMouseMove; + property OnMouseUp; + property OnMouseWheel; + property OnMouseWheelDown; + property OnMouseWheelUp; + property OnResize; + property ParentFont; + property ParentShowHint; + property PopupMenu; property SelCount : integer read GetSelCount; property Selected[Index: integer]: boolean read GetSelected write SetSelected; + property ShowHint; property Sorted: boolean read FSorted write SetSorted; property Style: TListBoxStyle read FStyle write SetStyle; - property TopIndex: Integer read GetTopIndex write SetTopIndex; - published + property TabOrder; property TabStop default true; + property TopIndex: Integer read GetTopIndex write SetTopIndex; + property Visible; end; @@ -1520,6 +1544,9 @@ end. { ============================================================================= $Log$ + Revision 1.139 2004/03/12 15:48:57 mattias + fixed 1.0.x compilation + Revision 1.138 2004/03/08 22:36:01 mattias added TWinControl.ParentFormInitializeWnd