You've already forked lazarus-ccr
jvcllaz: Fix compilation of thumbnail and simscope demos with Laz 1.6.4
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6324 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<Version Value="11"/>
|
<Version Value="10"/>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<General>
|
<General>
|
||||||
<SessionStorage Value="InProjectDir"/>
|
<SessionStorage Value="InProjectDir"/>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<Title Value="SimpleTLTest1"/>
|
<Title Value="SimpleTLTest1"/>
|
||||||
<Scaled Value="True"/>
|
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
<XPManifest>
|
<XPManifest>
|
||||||
@@ -21,10 +20,9 @@
|
|||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
</PublishOptions>
|
</PublishOptions>
|
||||||
<RunParams>
|
<RunParams>
|
||||||
<FormatVersion Value="2"/>
|
<local>
|
||||||
<Modes Count="1">
|
<FormatVersion Value="1"/>
|
||||||
<Mode0 Name="default"/>
|
</local>
|
||||||
</Modes>
|
|
||||||
</RunParams>
|
</RunParams>
|
||||||
<RequiredPackages Count="3">
|
<RequiredPackages Count="3">
|
||||||
<Item1>
|
<Item1>
|
||||||
|
@@ -3,14 +3,16 @@
|
|||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Forms, datetimectrls, Interfaces,
|
Forms, datetimectrls, Interfaces, LCLVersion,
|
||||||
frmMemoEdit in 'frmMemoEdit.pas' {MemoEditFrm},
|
frmMemoEdit in 'frmMemoEdit.pas' {MemoEditFrm},
|
||||||
TMTimeLineMainFormU in 'TMTimeLineMainFormU.pas' {TMTimeLineMainForm};
|
TMTimeLineMainFormU in 'TMTimeLineMainFormU.pas' {TMTimeLineMainForm};
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
{$IF LCL_FULLVERSION >= 1080000}
|
||||||
Application.Scaled := True;
|
Application.Scaled := True;
|
||||||
|
{$ENDIF}
|
||||||
Application.Initialize;
|
Application.Initialize;
|
||||||
Application.CreateForm(TTMTimeLineMainForm, TMTimeLineMainForm);
|
Application.CreateForm(TTMTimeLineMainForm, TMTimeLineMainForm);
|
||||||
Application.Run;
|
Application.Run;
|
||||||
|
@@ -69,6 +69,11 @@ const
|
|||||||
BOM_LSB_FIRST = WideChar($FEFF);
|
BOM_LSB_FIRST = WideChar($FEFF);
|
||||||
BOM_MSB_FIRST = WideChar($FFFE);
|
BOM_MSB_FIRST = WideChar($FFFE);
|
||||||
|
|
||||||
|
{$IF FPC_FullVersion < 30000}
|
||||||
|
type
|
||||||
|
TSysCharSet = set of AnsiChar;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
(******************** NOT CONVERTED
|
(******************** NOT CONVERTED
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
type
|
type
|
||||||
@@ -199,7 +204,13 @@ function CurrencyToStr(const Cur: Currency): string;
|
|||||||
function HasChar(const Ch: Char; const S: string): Boolean;
|
function HasChar(const Ch: Char; const S: string): Boolean;
|
||||||
function HasCharW(const Ch: WideChar; const S: WideString): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
function HasCharW(const Ch: WideChar; const S: WideString): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
||||||
function HasAnyChar(const Chars: string; const S: string): Boolean;
|
function HasAnyChar(const Chars: string; const S: string): Boolean;
|
||||||
|
********************)
|
||||||
|
|
||||||
|
{$IF FPC_FullVersion < 30000}
|
||||||
function CharInSet(const Ch: Char; const SetOfChar: TSysCharSet): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
function CharInSet(const Ch: Char; const SetOfChar: TSysCharSet): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
(*********************
|
||||||
function CharInSetW(const Ch: WideChar; const SetOfChar: TSysCharSet): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
function CharInSetW(const Ch: WideChar; const SetOfChar: TSysCharSet): Boolean; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
||||||
function CountOfChar(const Ch: Char; const S: string): Integer;
|
function CountOfChar(const Ch: Char; const S: string): Integer;
|
||||||
function DefStr(const S: string; Default: string): string; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
function DefStr(const S: string; Default: string): string; {$IFDEF SUPPORTS_INLINE} inline; {$ENDIF SUPPORTS_INLINE}
|
||||||
@@ -2738,12 +2749,16 @@ function FileNewExt(const FileName, NewExt: TFileName): TFileName;
|
|||||||
begin
|
begin
|
||||||
Result := Copy(FileName, 1, Length(FileName) - Length(ExtractFileExt(FileName))) + NewExt;
|
Result := Copy(FileName, 1, Length(FileName) - Length(ExtractFileExt(FileName))) + NewExt;
|
||||||
end;
|
end;
|
||||||
|
*****************************)
|
||||||
|
|
||||||
|
{$IF FPC_FULLVERSION < 30000}
|
||||||
function CharInSet(const Ch: Char; const SetOfChar: TSysCharSet): Boolean;
|
function CharInSet(const Ch: Char; const SetOfChar: TSysCharSet): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := Ch in SetOfChar;
|
Result := Ch in SetOfChar;
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
(*****************************
|
||||||
function CharInSetW(const Ch: WideChar; const SetOfChar: TSysCharSet): Boolean;
|
function CharInSetW(const Ch: WideChar; const SetOfChar: TSysCharSet): Boolean;
|
||||||
begin
|
begin
|
||||||
if Word(Ch) > 255 then
|
if Word(Ch) > 255 then
|
||||||
|
@@ -38,7 +38,7 @@ uses
|
|||||||
Windows, // before Types!
|
Windows, // before Types!
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
Classes, Graphics, Controls, ImgList,
|
Classes, Graphics, Controls, ImgList,
|
||||||
LCLType, LCLProc, LMessages, Types,
|
LCLType, LCLProc, LCLVersion, LMessages, Types,
|
||||||
JvTypes;
|
JvTypes;
|
||||||
|
|
||||||
(******************** NOT CONVERTED
|
(******************** NOT CONVERTED
|
||||||
@@ -852,6 +852,10 @@ function ReplaceComponentReference(This, NewReference: TComponent; var VarRefere
|
|||||||
function ReplaceImageListReference(This: TComponent; NewReference: TCustomImageList;
|
function ReplaceImageListReference(This: TComponent; NewReference: TCustomImageList;
|
||||||
var VarReference: TCustomImageList; ChangeLink: TChangeLink): Boolean;
|
var VarReference: TCustomImageList; ChangeLink: TChangeLink): Boolean;
|
||||||
|
|
||||||
|
{$IF LCL_FullVersion < 3000000}
|
||||||
|
function Scale96ToForm(ASize: Integer): Integer;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
@@ -7842,6 +7846,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IF LCL_FullVersion < 3000000}
|
||||||
|
function Scale96ToForm(ASize: Integer): Integer;
|
||||||
|
begin
|
||||||
|
Result := MulDiv(ASize, ScreenInfo.PixelsPerInchX, 96);
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
|
||||||
(************
|
(************
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
@@ -31,7 +31,7 @@ unit JvThumbViews;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLType, LMessages, Types,
|
LCLIntf, LCLType, LMessages, Types,
|
||||||
Classes, Controls, Forms, ExtCtrls,
|
Classes, Controls, Forms, ExtCtrls,
|
||||||
SysUtils, Graphics,
|
SysUtils, Graphics,
|
||||||
JvThumbnails, JvBaseThumbnail, JvExControls;
|
JvThumbnails, JvBaseThumbnail, JvExControls;
|
||||||
|
@@ -166,6 +166,7 @@ type
|
|||||||
procedure DrawTimerTimer(Sender: TObject);
|
procedure DrawTimerTimer(Sender: TObject);
|
||||||
function GetLinePixelPosition(Line: TJvScopeLine; Position: Integer): Integer;
|
function GetLinePixelPosition(Line: TJvScopeLine; Position: Integer): Integer;
|
||||||
procedure Loaded; override;
|
procedure Loaded; override;
|
||||||
|
procedure Resize; override;
|
||||||
public
|
public
|
||||||
procedure Paint; override;
|
procedure Paint; override;
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
@@ -497,6 +498,12 @@ begin
|
|||||||
FAllowed := True;
|
FAllowed := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TJvSimScope.Resize;
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
SetBounds(Left, Top, Width, Height);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TJvSimScope.Clear;
|
procedure TJvSimScope.Clear;
|
||||||
var
|
var
|
||||||
A: Double;
|
A: Double;
|
||||||
|
Reference in New Issue
Block a user