You've already forked lazarus-ccr
TvPlanIt: Fix compilation after Laz/main commit 74446557f6825c4ddadd9f6321a80147798dbf99. Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8836 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -721,41 +721,41 @@ object MainForm: TMainForm
|
|||||||
DrawingStyle = dsCoolTab
|
DrawingStyle = dsCoolTab
|
||||||
FolderCollection = <
|
FolderCollection = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Planner'
|
Caption = 'Planner'
|
||||||
Enabled = True
|
Enabled = True
|
||||||
FolderType = ftDefault
|
FolderType = ftDefault
|
||||||
ItemCollection = <
|
ItemCollection = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Events'
|
Caption = 'Events'
|
||||||
IconIndex = 0
|
IconIndex = 0
|
||||||
Name = 'NIEvents'
|
Name = 'NIEvents'
|
||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Month view'
|
Caption = 'Month view'
|
||||||
IconIndex = 5
|
IconIndex = 5
|
||||||
Name = 'NIEventsByMonth'
|
Name = 'NIEventsByMonth'
|
||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Week view'
|
Caption = 'Week view'
|
||||||
IconIndex = 4
|
IconIndex = 4
|
||||||
Name = 'NIEventsByWeek'
|
Name = 'NIEventsByWeek'
|
||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Day view'
|
Caption = 'Day view'
|
||||||
IconIndex = 3
|
IconIndex = 3
|
||||||
Name = 'NIEventsByDay'
|
Name = 'NIEventsByDay'
|
||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Tasks'
|
Caption = 'Tasks'
|
||||||
Description = 'Show tasks'
|
Description = 'Show tasks'
|
||||||
IconIndex = 1
|
IconIndex = 1
|
||||||
@ -763,7 +763,7 @@ object MainForm: TMainForm
|
|||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Contacts'
|
Caption = 'Contacts'
|
||||||
Description = 'Show address book'
|
Description = 'Show address book'
|
||||||
IconIndex = 2
|
IconIndex = 2
|
||||||
@ -775,20 +775,20 @@ object MainForm: TMainForm
|
|||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Maintenance'
|
Caption = 'Maintenance'
|
||||||
Enabled = True
|
Enabled = True
|
||||||
FolderType = ftDefault
|
FolderType = ftDefault
|
||||||
ItemCollection = <
|
ItemCollection = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Resources'
|
Caption = 'Resources'
|
||||||
IconIndex = 7
|
IconIndex = 7
|
||||||
Name = 'NIResources'
|
Name = 'NIResources'
|
||||||
Tag = 0
|
Tag = 0
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption = 'Settings'
|
Caption = 'Settings'
|
||||||
IconIndex = 8
|
IconIndex = 8
|
||||||
Name = 'NISettings'
|
Name = 'NISettings'
|
||||||
@ -825,12 +825,12 @@ object MainForm: TMainForm
|
|||||||
Printer.MarginUnits = imPercent
|
Printer.MarginUnits = imPercent
|
||||||
Printer.PrintFormats = <
|
Printer.PrintFormats = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayInc = 0
|
DayInc = 0
|
||||||
DayIncUnits = duDay
|
DayIncUnits = duDay
|
||||||
Elements = <
|
Elements = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Caption.Caption = 'Current week'
|
Caption.Caption = 'Current week'
|
||||||
Caption.Font.Style = [fsItalic]
|
Caption.Font.Style = [fsItalic]
|
||||||
DayOffset = 0
|
DayOffset = 0
|
||||||
@ -845,12 +845,12 @@ object MainForm: TMainForm
|
|||||||
FormatName = 'Events of current week (Day view)'
|
FormatName = 'Events of current week (Day view)'
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayInc = 0
|
DayInc = 0
|
||||||
DayIncUnits = duWeek
|
DayIncUnits = duWeek
|
||||||
Elements = <
|
Elements = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayOffset = 0
|
DayOffset = 0
|
||||||
DayOffsetUnits = duDay
|
DayOffsetUnits = duDay
|
||||||
ElementName = 'WeekView'
|
ElementName = 'WeekView'
|
||||||
@ -864,12 +864,12 @@ object MainForm: TMainForm
|
|||||||
FormatName = 'Events of current week (Week view)'
|
FormatName = 'Events of current week (Week view)'
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayInc = 0
|
DayInc = 0
|
||||||
DayIncUnits = duDay
|
DayIncUnits = duDay
|
||||||
Elements = <
|
Elements = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayOffset = 0
|
DayOffset = 0
|
||||||
DayOffsetUnits = duWeek
|
DayOffsetUnits = duWeek
|
||||||
ElementName = 'TaskList'
|
ElementName = 'TaskList'
|
||||||
@ -883,12 +883,12 @@ object MainForm: TMainForm
|
|||||||
FormatName = 'Tasks of current week'
|
FormatName = 'Tasks of current week'
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayInc = 0
|
DayInc = 0
|
||||||
DayIncUnits = duDay
|
DayIncUnits = duDay
|
||||||
Elements = <
|
Elements = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayOffset = 0
|
DayOffset = 0
|
||||||
DayOffsetUnits = duDay
|
DayOffsetUnits = duDay
|
||||||
ElementName = 'TaskList'
|
ElementName = 'TaskList'
|
||||||
@ -903,12 +903,12 @@ object MainForm: TMainForm
|
|||||||
FormatName = 'Tasks of current week (landscape)'
|
FormatName = 'Tasks of current week (landscape)'
|
||||||
end
|
end
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayInc = 1
|
DayInc = 1
|
||||||
DayIncUnits = duWeek
|
DayIncUnits = duWeek
|
||||||
Elements = <
|
Elements = <
|
||||||
item
|
item
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
DayOffset = 0
|
DayOffset = 0
|
||||||
DayOffsetUnits = duDay
|
DayOffsetUnits = duDay
|
||||||
ElementName = 'WeekView'
|
ElementName = 'WeekView'
|
||||||
@ -928,7 +928,7 @@ object MainForm: TMainForm
|
|||||||
Top = 200
|
Top = 200
|
||||||
end
|
end
|
||||||
object VpResourceEditDialog1: TVpResourceEditDialog
|
object VpResourceEditDialog1: TVpResourceEditDialog
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
Options = []
|
Options = []
|
||||||
Placement.Position = mpCenter
|
Placement.Position = mpCenter
|
||||||
Placement.Top = 10
|
Placement.Top = 10
|
||||||
@ -1350,7 +1350,7 @@ object MainForm: TMainForm
|
|||||||
Top = 344
|
Top = 344
|
||||||
end
|
end
|
||||||
object VpPrintPreviewDialog1: TVpPrintPreviewDialog
|
object VpPrintPreviewDialog1: TVpPrintPreviewDialog
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
ControlLink = VpControlLink1
|
ControlLink = VpControlLink1
|
||||||
EndDate = 42561.5151169907
|
EndDate = 42561.5151169907
|
||||||
MarginUnits = imPercent
|
MarginUnits = imPercent
|
||||||
@ -1365,7 +1365,7 @@ object MainForm: TMainForm
|
|||||||
Top = 432
|
Top = 432
|
||||||
end
|
end
|
||||||
object VpPrintFormatEditDialog1: TVpPrintFormatEditDialog
|
object VpPrintFormatEditDialog1: TVpPrintFormatEditDialog
|
||||||
Version = 'v1.7.0'
|
Version = 'v1.8.0'
|
||||||
ControlLink = VpControlLink1
|
ControlLink = VpControlLink1
|
||||||
Options = []
|
Options = []
|
||||||
Placement.Position = mpCenter
|
Placement.Position = mpCenter
|
||||||
|
@ -881,8 +881,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
CbLanguages.Items.Assign(po);
|
CbLanguages.Items.Assign(po);
|
||||||
// SetLanguage(lang);
|
SetLanguage(lang);
|
||||||
SetLanguage(GetDefaultLang);
|
|
||||||
|
|
||||||
finally
|
finally
|
||||||
po.Free;
|
po.Free;
|
||||||
|
@ -3,7 +3,7 @@ unit VpBasePainter;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, Types, Graphics, LCLType,
|
LCLIntf, Classes, Types, Graphics, LCLType,
|
||||||
VPBase;
|
VPBase;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -49,7 +49,6 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLIntf,
|
|
||||||
VpCanvasUtils;
|
VpCanvasUtils;
|
||||||
|
|
||||||
{ TBasePainter }
|
{ TBasePainter }
|
||||||
|
@ -5,7 +5,7 @@ unit VpCalendarPainter;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
SysUtils, Classes, Types, Graphics, Controls,
|
LCLIntf, SysUtils, Classes, Types, Graphics, Controls,
|
||||||
VpBase, VpMisc, VpBasePainter, VpCalendar;
|
VpBase, VpMisc, VpBasePainter, VpCalendar;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -55,7 +55,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLProc, LCLIntf, LazUtf8,
|
LazUtf8,
|
||||||
{%H-}VpConst, VpCanvasUtils;
|
{%H-}VpConst, VpCanvasUtils;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -886,7 +886,7 @@ var
|
|||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FScaledTextMargin := round(FContactGrid.TextMargin * Scale);
|
FScaledTextMargin := round(FContactGrid.TextMargin * Scale);
|
||||||
FAnchorMargin := round(Scale * MARGIN) + FScaledTextMargin * 2;
|
FAnchorMargin := round(Scale * MARGIN) {%H-}+ FScaledTextMargin * 2;
|
||||||
|
|
||||||
numCols := FContactGrid.PrintNumColumns;
|
numCols := FContactGrid.PrintNumColumns;
|
||||||
if DisplayOnly and (numCols > 0) then
|
if DisplayOnly and (numCols > 0) then
|
||||||
|
@ -7,6 +7,7 @@ object VpImportPreviewForm: TVpImportPreviewForm
|
|||||||
ClientHeight = 295
|
ClientHeight = 295
|
||||||
ClientWidth = 634
|
ClientWidth = 634
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
|
LCLVersion = '2.3.0.0'
|
||||||
object ButtonPanel: TPanel
|
object ButtonPanel: TPanel
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 25
|
Height = 25
|
||||||
|
@ -5,7 +5,7 @@ unit VpImportPreview;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Graphics, Types,
|
LCLIntf, LCLType, LCLVersion, Classes, SysUtils, Graphics, Types,
|
||||||
Forms, Controls, Dialogs, Grids, ExtCtrls, StdCtrls, VpBaseDS;
|
Forms, Controls, Dialogs, Grids, ExtCtrls, StdCtrls, VpBaseDS;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -67,7 +67,7 @@ implementation
|
|||||||
{$R *.lfm}
|
{$R *.lfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
LCLIntf, LCLType, Themes,
|
Themes,
|
||||||
VpSR;
|
VpSR;
|
||||||
|
|
||||||
{ TVpImportGrid }
|
{ TVpImportGrid }
|
||||||
@ -97,7 +97,11 @@ begin
|
|||||||
begin
|
begin
|
||||||
R := CellRect(cell.X, cell.Y);
|
R := CellRect(cell.X, cell.Y);
|
||||||
details := ThemeServices.GetElementDetails(tbCheckBoxCheckedNormal);
|
details := ThemeServices.GetElementDetails(tbCheckBoxCheckedNormal);
|
||||||
|
{$IF LCL_FullVersion >= 2030000}
|
||||||
|
lSize := ThemeServices.GetDetailSizeForPPI(Details, Font.PixelsPerInch);
|
||||||
|
{$ELSE}
|
||||||
lSize := ThemeServices.GetDetailSize(Details);
|
lSize := ThemeServices.GetDetailSize(Details);
|
||||||
|
{$ENDIF}
|
||||||
lSize.cx := MulDiv(lSize.cx, Font.PixelsPerInch, Screen.PixelsPerInch);
|
lSize.cx := MulDiv(lSize.cx, Font.PixelsPerInch, Screen.PixelsPerInch);
|
||||||
lSize.cy := MulDiv(lSize.cy, Font.PixelsPerInch, Screen.PixelsPerInch);
|
lSize.cy := MulDiv(lSize.cy, Font.PixelsPerInch, Screen.PixelsPerInch);
|
||||||
OffsetRect(R, (R.Left+R.Right-lSize.CX) div 2, (R.Top+R.Bottom-lSize.CY) div 2);
|
OffsetRect(R, (R.Left+R.Right-lSize.CX) div 2, (R.Top+R.Bottom-lSize.CY) div 2);
|
||||||
|
@ -39,7 +39,7 @@ uses
|
|||||||
{$ELSE}
|
{$ELSE}
|
||||||
Windows, Consts, Messages,
|
Windows, Consts, Messages,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
SysUtils, Graphics, Types, Classes, Controls, StdCtrls, ExtCtrls, Buttons, Forms, Menus,
|
SysUtils, Graphics, Classes, Controls, StdCtrls, ExtCtrls, Buttons, Forms, Menus,
|
||||||
VpBase, VpData, VpConst;
|
VpBase, VpData, VpConst;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -1064,7 +1064,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{ Returns the coordinate of the control's bottom boundary }
|
{ Returns the coordinate of the control's bottom boundary }
|
||||||
function Bottomof(AControl: TControl): Integer;
|
function BottomOf(AControl: TControl): Integer;
|
||||||
begin
|
begin
|
||||||
Result := AControl.Top + AControl.Height;
|
Result := AControl.Top + AControl.Height;
|
||||||
end;
|
end;
|
||||||
@ -1072,8 +1072,12 @@ end;
|
|||||||
{ Moves a rectangle ARect by ADelta.x in x, and by ADelta.y in y direction }
|
{ Moves a rectangle ARect by ADelta.x in x, and by ADelta.y in y direction }
|
||||||
function MoveRect(const ARect: TRect; const ADelta: TPoint): TRect;
|
function MoveRect(const ARect: TRect; const ADelta: TPoint): TRect;
|
||||||
begin
|
begin
|
||||||
Result := ARect;
|
Result := Rect(
|
||||||
OffsetRect(Result, ADelta.x, ADelta.y);
|
ARect.Left + ADelta.X,
|
||||||
|
ARect.Top + ADelta.Y,
|
||||||
|
ARect.Right + ADelta.X,
|
||||||
|
ARect.Bottom + ADelta.Y
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ Replaces embedded C-style line endings (\n) by FPC line endings (#13#10, #13,
|
{ Replaces embedded C-style line endings (\n) by FPC line endings (#13#10, #13,
|
||||||
|
@ -34,9 +34,6 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes,
|
Classes,
|
||||||
{$IFDEF LCL}
|
|
||||||
LazUTF8Classes,
|
|
||||||
{$ENDIF}
|
|
||||||
VpBase;
|
VpBase;
|
||||||
|
|
||||||
|
|
||||||
@ -58,16 +55,6 @@ type
|
|||||||
procedure SetPointer(Ptr: Pointer; Size: Longint);
|
procedure SetPointer(Ptr: Pointer; Size: Longint);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF LCL}
|
|
||||||
TVpFileStream = class(TFileStreamUTF8)
|
|
||||||
{$ELSE}
|
|
||||||
TVpFileStream = class(TFileStream)
|
|
||||||
{$ENDIF}
|
|
||||||
FFileName: string;
|
|
||||||
public
|
|
||||||
constructor CreateEx(Mode: Word; const FileName: string);
|
|
||||||
property Filename: string read FFileName;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ Utility methods }
|
{ Utility methods }
|
||||||
function VpPos(const aSubStr, aString: DOMString): Integer;
|
function VpPos(const aSubStr, aString: DOMString): Integer;
|
||||||
@ -671,11 +658,4 @@ begin
|
|||||||
// inherited SetPointer(Ptr);
|
// inherited SetPointer(Ptr);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{===TVpFileStream====================================================}
|
|
||||||
constructor TVpFileStream.CreateEx(Mode : Word; const FileName : string);
|
|
||||||
begin
|
|
||||||
inherited Create(FileName, Mode);
|
|
||||||
FFileName := FileName;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -892,7 +892,7 @@ end;
|
|||||||
|
|
||||||
function TVpParser.LoadDataSource(sSrcName: string; oErrors: TStringList): Boolean;
|
function TVpParser.LoadDataSource(sSrcName: string; oErrors: TStringList): Boolean;
|
||||||
var
|
var
|
||||||
aFileStream: TVpFileStream;
|
aFileStream: TFileStream;
|
||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
{ Must be a local or network file. Eliminate file:// prefix. }
|
{ Must be a local or network file. Eliminate file:// prefix. }
|
||||||
@ -902,7 +902,7 @@ begin
|
|||||||
if FileExists(sSrcName) then begin
|
if FileExists(sSrcName) then begin
|
||||||
FCurrentPath := ExtractFilePath(sSrcName);
|
FCurrentPath := ExtractFilePath(sSrcName);
|
||||||
{the stream and filter are destroyed after the document is parsed}
|
{the stream and filter are destroyed after the document is parsed}
|
||||||
aFileStream := TVpFileStream.CreateEx(fmOpenRead, sSrcName);
|
aFileStream := TFileStream.Create(sSrcName, fmOpenRead);
|
||||||
aFileStream.Position := 0;
|
aFileStream.Position := 0;
|
||||||
Result := True;
|
Result := True;
|
||||||
end else begin
|
end else begin
|
||||||
|
Reference in New Issue
Block a user