You've already forked lazarus-ccr
tvplanit: Misc
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4909 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -690,8 +690,8 @@ object MainForm: TMainForm
|
|||||||
DataStore = VpBufDSDataStore1
|
DataStore = VpBufDSDataStore1
|
||||||
LocalizationFile = '../../source/vplocalize.xml'
|
LocalizationFile = '../../source/vplocalize.xml'
|
||||||
Printer.BottomMargin = 5
|
Printer.BottomMargin = 5
|
||||||
Printer.DayStart = h_07
|
Printer.DayStart = h_02
|
||||||
Printer.DayEnd = h_18
|
Printer.DayEnd = h_16
|
||||||
Printer.Granularity = gr60Min
|
Printer.Granularity = gr60Min
|
||||||
Printer.LeftMargin = 5
|
Printer.LeftMargin = 5
|
||||||
Printer.MarginUnits = imPercent
|
Printer.MarginUnits = imPercent
|
||||||
|
@ -182,7 +182,7 @@ begin
|
|||||||
'ca' : Result := $0403; // Catalan
|
'ca' : Result := $0403; // Catalan
|
||||||
'cs' : Result := $0405; // Czech
|
'cs' : Result := $0405; // Czech
|
||||||
'de' : Result := $0407; // German
|
'de' : Result := $0407; // German
|
||||||
'en' : Result := $0409; // English (US)
|
'en' : Result := $0409; // English (US)
|
||||||
'es' : Result := $040A; // Spanisch
|
'es' : Result := $040A; // Spanisch
|
||||||
'fi' : Result := $040B; // Finnish
|
'fi' : Result := $040B; // Finnish
|
||||||
'fr' : Result := $040C; // French
|
'fr' : Result := $040C; // French
|
||||||
@ -190,7 +190,7 @@ begin
|
|||||||
'hu' : Result := $040E; // Hungarian
|
'hu' : Result := $040E; // Hungarian
|
||||||
'it' : Result := $0410; // Italian
|
'it' : Result := $0410; // Italian
|
||||||
'jp' : Result := $0411; // Japanese
|
'jp' : Result := $0411; // Japanese
|
||||||
'nl' : Result := $0413; // Netherlands
|
'nl' : Result := $0413; // Netherlands (Dutch)
|
||||||
'pl' : Result := $0415; // Polish
|
'pl' : Result := $0415; // Polish
|
||||||
'pt' : Result := $0816; // Portuguese (Portugal)
|
'pt' : Result := $0816; // Portuguese (Portugal)
|
||||||
'ru' : Result := $0419; // Russian
|
'ru' : Result := $0419; // Russian
|
||||||
@ -367,9 +367,15 @@ begin
|
|||||||
t1 := StartOfTheWeek(now);
|
t1 := StartOfTheWeek(now);
|
||||||
t2 := t1 + 7 - VpDayView1.NumDays mod 7; // + 7;
|
t2 := t1 + 7 - VpDayView1.NumDays mod 7; // + 7;
|
||||||
fmt.DayInc := VpDayView1.NumDays;
|
fmt.DayInc := VpDayView1.NumDays;
|
||||||
VpControlLink1.Printer.Granularity := VpDayView1.Granularity;
|
|
||||||
VpControlLink1.Printer.DayStart := h_08; //VpDayView1.DefaultTopHour;
|
|
||||||
VpControlLink1.Printer.DayEnd := h_17;
|
// wp: !!!!!!!!!!!!!!!!!!!!!!!!!!!! bring back in !!!!!!!!!!!!!
|
||||||
|
|
||||||
|
// VpControlLink1.Printer.Granularity := VpDayView1.Granularity;
|
||||||
|
// VpControlLink1.Printer.DayStart := h_08; //VpDayView1.DefaultTopHour;
|
||||||
|
// VpControlLink1.Printer.DayEnd := h_17;
|
||||||
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
1: begin // current week in WeekView
|
1: begin // current week in WeekView
|
||||||
t1 := StartOfTheWeek(now);
|
t1 := StartOfTheWeek(now);
|
||||||
@ -447,6 +453,7 @@ begin
|
|||||||
'he': po.Add('he - Hebrew');
|
'he': po.Add('he - Hebrew');
|
||||||
'hu': po.Add('hu - magyar');
|
'hu': po.Add('hu - magyar');
|
||||||
'it': po.Add('it - Italian');
|
'it': po.Add('it - Italian');
|
||||||
|
'nl': po.Add('nl - Dutch');
|
||||||
'ru': po.Add('ru - русский');
|
'ru': po.Add('ru - русский');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -359,7 +359,6 @@ type
|
|||||||
FLocalizationFile : string;
|
FLocalizationFile : string;
|
||||||
FDefaultCountry : string;
|
FDefaultCountry : string;
|
||||||
FCityStateZipFormat: String;
|
FCityStateZipFormat: String;
|
||||||
FScreenOutput : Boolean;
|
|
||||||
protected{private}
|
protected{private}
|
||||||
DependentList: TList;
|
DependentList: TList;
|
||||||
procedure Attach (Sender : TComponent);
|
procedure Attach (Sender : TComponent);
|
||||||
@ -380,7 +379,6 @@ type
|
|||||||
procedure TriggerOnPageEnd (Sender: TObject; PageNum: Integer; ADate: TDateTime; LastPage: Boolean);
|
procedure TriggerOnPageEnd (Sender: TObject; PageNum: Integer; ADate: TDateTime; LastPage: Boolean);
|
||||||
procedure TriggerOnPageStart (Sender: TObject; PageNum: Integer; ADate: TDateTime);
|
procedure TriggerOnPageStart (Sender: TObject; PageNum: Integer; ADate: TDateTime);
|
||||||
property Localization : TVpLocalization read FLocalization write FLocalization;
|
property Localization : TVpLocalization read FLocalization write FLocalization;
|
||||||
property ScreenOutput: Boolean read FScreenOutput write FScreenOutput;
|
|
||||||
published
|
published
|
||||||
property CityStateZipFormat: String read FCityStateZipFormat write SetCityStateZipFormat;
|
property CityStateZipFormat: String read FCityStateZipFormat write SetCityStateZipFormat;
|
||||||
// Use symbols @CITY, @STATE, @ZIP to define the order of these strings
|
// Use symbols @CITY, @STATE, @ZIP to define the order of these strings
|
||||||
@ -1201,7 +1199,6 @@ var
|
|||||||
I: Integer;
|
I: Integer;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FScreenOutput := true;
|
|
||||||
|
|
||||||
DependentList := TList.Create;
|
DependentList := TList.Create;
|
||||||
|
|
||||||
|
@ -1554,6 +1554,8 @@ end;
|
|||||||
procedure TVpDayViewPainter.RenderToCanvas(ARenderIn: TRect;
|
procedure TVpDayViewPainter.RenderToCanvas(ARenderIn: TRect;
|
||||||
AAngle: TVpRotationAngle; AScale: Extended; ARenderDate: TDateTime;
|
AAngle: TVpRotationAngle; AScale: Extended; ARenderDate: TDateTime;
|
||||||
AStartLine, AStopLine: Integer; AUseGran: TVpGranularity; ADisplayOnly: Boolean);
|
AStartLine, AStopLine: Integer; AUseGran: TVpGranularity; ADisplayOnly: Boolean);
|
||||||
|
{wp: DisplayOnly is poorly-named. It is false during screen output in the form,
|
||||||
|
it is true during printing and in print preview }
|
||||||
var
|
var
|
||||||
tmpRect: TRect;
|
tmpRect: TRect;
|
||||||
begin
|
begin
|
||||||
@ -1562,15 +1564,12 @@ begin
|
|||||||
// Make sure to use only the date part
|
// Make sure to use only the date part
|
||||||
ARenderDate := trunc(ARenderDate);
|
ARenderDate := trunc(ARenderDate);
|
||||||
|
|
||||||
// Here begins the original routine...
|
|
||||||
InitColors;
|
InitColors;
|
||||||
SavePenBrush;
|
SavePenBrush;
|
||||||
InitPenBrush;
|
InitPenBrush;
|
||||||
|
|
||||||
SetMeasurements;
|
SetMeasurements;
|
||||||
|
|
||||||
if StartLine < 0 then
|
|
||||||
StartLine := FDayView.TopLine;
|
|
||||||
{
|
{
|
||||||
if DisplayOnly then
|
if DisplayOnly then
|
||||||
ScrollBarOffset := 2
|
ScrollBarOffset := 2
|
||||||
@ -1579,9 +1578,22 @@ begin
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FDayView.VisibleLines < FDayView.LineCount) and FDayView.ControlLink.ScreenOutput then
|
ScrollbarOffset := 0;
|
||||||
ScrollbarOffset := 14 else
|
with TVpDayViewOpener(FDayView) do
|
||||||
ScrollbarOffset := 0;
|
if ADisplayOnly then begin
|
||||||
|
// use printer settings
|
||||||
|
SetTimeIntervals(ControlLink.Printer.Granularity);
|
||||||
|
TopLine := StartLine;
|
||||||
|
StartLine := TopLine;
|
||||||
|
end else
|
||||||
|
begin
|
||||||
|
// use screen settings
|
||||||
|
SetTimeIntervals(Granularity);
|
||||||
|
if StartLine < 0 then
|
||||||
|
StartLine := FDayView.TopLine;
|
||||||
|
if VisibleLines < LineCount then
|
||||||
|
ScrollbarOffset := 14;
|
||||||
|
end;
|
||||||
|
|
||||||
Rgn := CreateRectRgn(RenderIn.Left, RenderIn.Top, RenderIn.Right, RenderIn.Bottom);
|
Rgn := CreateRectRgn(RenderIn.Left, RenderIn.Top, RenderIn.Right, RenderIn.Bottom);
|
||||||
try
|
try
|
||||||
|
@ -706,7 +706,7 @@ begin
|
|||||||
PPageInfo.Contact := 0;
|
PPageInfo.Contact := 0;
|
||||||
PPageInfo.Task := 0;
|
PPageInfo.Task := 0;
|
||||||
PPageInfo.LastPage := False;
|
PPageInfo.LastPage := False;
|
||||||
FPageInfo.Add (PPageInfo);
|
FPageInfo.Add(PPageInfo);
|
||||||
i := 0;
|
i := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -222,13 +222,10 @@ end;
|
|||||||
function TVpPrintPreviewDialog.Execute: Boolean;
|
function TVpPrintPreviewDialog.Execute: Boolean;
|
||||||
var
|
var
|
||||||
EditForm: TfrmPrintPreview;
|
EditForm: TfrmPrintPreview;
|
||||||
scr: Boolean;
|
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
scr := ControlLink.ScreenOutput;
|
|
||||||
Application.CreateForm(TfrmPrintPreview, EditForm);
|
Application.CreateForm(TfrmPrintPreview, EditForm);
|
||||||
try
|
try
|
||||||
ControlLink.ScreenOutput := false;
|
|
||||||
DoFormPlacement(EditForm);
|
DoFormPlacement(EditForm);
|
||||||
EditForm.WindowState := WindowState;
|
EditForm.WindowState := WindowState;
|
||||||
EditForm.VpPrintPreview1.ControlLink := ControlLink;
|
EditForm.VpPrintPreview1.ControlLink := ControlLink;
|
||||||
@ -253,7 +250,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
ControlLink.ScreenOutput := scr;
|
|
||||||
EditForm.Release;
|
EditForm.Release;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Reference in New Issue
Block a user