You've already forked lazarus-ccr
tvplanit: In "demo" project, add menu item "Print" (not operational), update translations.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4933 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1948,6 +1948,10 @@ object MainForm: TMainForm
|
|||||||
Caption = 'Print preview...'
|
Caption = 'Print preview...'
|
||||||
OnClick = MnuPrintPreviewClick
|
OnClick = MnuPrintPreviewClick
|
||||||
end
|
end
|
||||||
|
object MnuPrint: TMenuItem
|
||||||
|
Caption = 'Print...'
|
||||||
|
OnClick = MnuPrintClick
|
||||||
|
end
|
||||||
object MenuItem3: TMenuItem
|
object MenuItem3: TMenuItem
|
||||||
Caption = '-'
|
Caption = '-'
|
||||||
end
|
end
|
||||||
|
@ -24,6 +24,7 @@ TMAINFORM.TITLELBL.CAPTION=TitleLbl
|
|||||||
TMAINFORM.MENUITEM1.CAPTION=File
|
TMAINFORM.MENUITEM1.CAPTION=File
|
||||||
TMAINFORM.MNUEDITPRINTFORMATS.CAPTION=Edit print formats...
|
TMAINFORM.MNUEDITPRINTFORMATS.CAPTION=Edit print formats...
|
||||||
TMAINFORM.MNUPRINTPREVIEW.CAPTION=Print preview...
|
TMAINFORM.MNUPRINTPREVIEW.CAPTION=Print preview...
|
||||||
|
TMAINFORM.MNUPRINT.CAPTION=Print...
|
||||||
TMAINFORM.MENUITEM3.CAPTION=-
|
TMAINFORM.MENUITEM3.CAPTION=-
|
||||||
TMAINFORM.MNUQUIT.CAPTION=Quit
|
TMAINFORM.MNUQUIT.CAPTION=Quit
|
||||||
TMAINFORM.MNUMAINTENANCE.CAPTION=Maintenance
|
TMAINFORM.MNUMAINTENANCE.CAPTION=Maintenance
|
||||||
|
@ -35,6 +35,7 @@ type
|
|||||||
LblLanguage: TLabel;
|
LblLanguage: TLabel;
|
||||||
LblVisibleDays: TLabel;
|
LblVisibleDays: TLabel;
|
||||||
MenuItem3: TMenuItem;
|
MenuItem3: TMenuItem;
|
||||||
|
MnuPrint: TMenuItem;
|
||||||
MnuEditPrintFormats: TMenuItem;
|
MnuEditPrintFormats: TMenuItem;
|
||||||
MnuPrintPreview: TMenuItem;
|
MnuPrintPreview: TMenuItem;
|
||||||
PrintDialog1: TPrintDialog;
|
PrintDialog1: TPrintDialog;
|
||||||
@ -92,6 +93,7 @@ type
|
|||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure MnuAboutClick(Sender: TObject);
|
procedure MnuAboutClick(Sender: TObject);
|
||||||
procedure MnuEditPrintFormatsClick(Sender: TObject);
|
procedure MnuEditPrintFormatsClick(Sender: TObject);
|
||||||
|
procedure MnuPrintClick(Sender: TObject);
|
||||||
procedure MnuPrintPreviewClick(Sender: TObject);
|
procedure MnuPrintPreviewClick(Sender: TObject);
|
||||||
procedure MnuQuitClick(Sender: TObject);
|
procedure MnuQuitClick(Sender: TObject);
|
||||||
procedure MnuResourcesClick(Sender: TObject);
|
procedure MnuResourcesClick(Sender: TObject);
|
||||||
@ -171,6 +173,9 @@ resourcestring
|
|||||||
RSThursday = 'Thursday';
|
RSThursday = 'Thursday';
|
||||||
RSFriday = 'Friday';
|
RSFriday = 'Friday';
|
||||||
RSSaturday = 'Saturday';
|
RSSaturday = 'Saturday';
|
||||||
|
RSFlat = 'flach';
|
||||||
|
RS3d = '3D';
|
||||||
|
RSBorderless = 'ohne Rand';
|
||||||
|
|
||||||
{$IFDEF WINDOWS}
|
{$IFDEF WINDOWS}
|
||||||
{ This function determines the LCID from the language code.
|
{ This function determines the LCID from the language code.
|
||||||
@ -362,6 +367,18 @@ begin
|
|||||||
VpPrintFormatEditDialog1.Execute;
|
VpPrintFormatEditDialog1.Execute;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TMainForm.MnuPrintClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
if PrintDialog1.Execute then begin
|
||||||
|
Printer.BeginDoc;
|
||||||
|
{
|
||||||
|
VpControlLink1.Printer.CurFormat := VpControlLink1.Printer.Find(ReportData.Format);
|
||||||
|
VpControlLink1.Printer.Print(Printer, ReportData.StartDate, ReportData.EndDate);
|
||||||
|
}
|
||||||
|
Printer.EndDoc;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TMainForm.MnuPrintPreviewClick(Sender: TObject);
|
procedure TMainForm.MnuPrintPreviewClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
t1, t2: TDateTime;
|
t1, t2: TDateTime;
|
||||||
@ -702,6 +719,10 @@ begin
|
|||||||
CbFirstDayOfWeek.Items.Add(RSFriday);
|
CbFirstDayOfWeek.Items.Add(RSFriday);
|
||||||
CbFirstDayOfWeek.Items.Add(RSSaturday);
|
CbFirstDayOfWeek.Items.Add(RSSaturday);
|
||||||
|
|
||||||
|
CbDrawingStyle.Items[0] := RSFlat;
|
||||||
|
CbDrawingStyle.Items[1] := RS3d;
|
||||||
|
CbDrawingStyle.Items[2] := RSBorderless;
|
||||||
|
|
||||||
DaysTrackbar.Left := GetLabelWidth(LblVisibleDays) + LblVisibleDays.Left + 8;
|
DaysTrackbar.Left := GetLabelWidth(LblVisibleDays) + LblVisibleDays.Left + 8;
|
||||||
LblGranularity.Left := DaysTrackbar.Left + DaysTrackbar.Width + 32;
|
LblGranularity.Left := DaysTrackbar.Left + DaysTrackbar.Width + 32;
|
||||||
CbGranularity.Left := LblGranularity.Left + GetLabelWidth(LblGranularity) + 8;
|
CbGranularity.Left := LblGranularity.Left + GetLabelWidth(LblGranularity) + 8;
|
||||||
|
@ -36,6 +36,10 @@ msgstr "24 Std."
|
|||||||
msgid "30 min"
|
msgid "30 min"
|
||||||
msgstr "30 Min."
|
msgstr "30 Min."
|
||||||
|
|
||||||
|
#: demomain.rs3d
|
||||||
|
msgid "3D"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rs5min
|
#: demomain.rs5min
|
||||||
msgid "5 min"
|
msgid "5 min"
|
||||||
msgstr "5 Min."
|
msgstr "5 Min."
|
||||||
@ -48,6 +52,10 @@ msgstr "60 Min."
|
|||||||
msgid "6 min"
|
msgid "6 min"
|
||||||
msgstr "6 Min."
|
msgstr "6 Min."
|
||||||
|
|
||||||
|
#: demomain.rsborderless
|
||||||
|
msgid "ohne Rand"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rsconfirmdeleteres
|
#: demomain.rsconfirmdeleteres
|
||||||
msgid "Do you really want to delete resource %s?"
|
msgid "Do you really want to delete resource %s?"
|
||||||
msgstr "Wollen Sie wirklich die Ressource %s löschen?"
|
msgstr "Wollen Sie wirklich die Ressource %s löschen?"
|
||||||
@ -73,6 +81,10 @@ msgstr "Termine pro Monat"
|
|||||||
msgid "Events per week"
|
msgid "Events per week"
|
||||||
msgstr "Termine pro Woche"
|
msgstr "Termine pro Woche"
|
||||||
|
|
||||||
|
#: demomain.rsflat
|
||||||
|
msgid "flach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rsfriday
|
#: demomain.rsfriday
|
||||||
msgid "Friday"
|
msgid "Friday"
|
||||||
msgstr "Freitag"
|
msgstr "Freitag"
|
||||||
@ -132,12 +144,12 @@ msgstr "Mittwoch"
|
|||||||
#: tfrmreportsetup.button1.caption
|
#: tfrmreportsetup.button1.caption
|
||||||
msgctxt "tfrmreportsetup.button1.caption"
|
msgctxt "tfrmreportsetup.button1.caption"
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr ""
|
msgstr "OK"
|
||||||
|
|
||||||
#: tfrmreportsetup.button2.caption
|
#: tfrmreportsetup.button2.caption
|
||||||
msgctxt "tfrmreportsetup.button2.caption"
|
msgctxt "tfrmreportsetup.button2.caption"
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
#: tfrmreportsetup.caption
|
#: tfrmreportsetup.caption
|
||||||
msgid "Report Setup"
|
msgid "Report Setup"
|
||||||
@ -146,12 +158,12 @@ msgstr ""
|
|||||||
#: tfrmreportsetup.dateedit1.cancelcaption
|
#: tfrmreportsetup.dateedit1.cancelcaption
|
||||||
msgctxt "tfrmreportsetup.dateedit1.cancelcaption"
|
msgctxt "tfrmreportsetup.dateedit1.cancelcaption"
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
#: tfrmreportsetup.dateedit1.okcaption
|
#: tfrmreportsetup.dateedit1.okcaption
|
||||||
msgctxt "tfrmreportsetup.dateedit1.okcaption"
|
msgctxt "tfrmreportsetup.dateedit1.okcaption"
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr ""
|
msgstr "OK"
|
||||||
|
|
||||||
#: tfrmreportsetup.dateedit1.text
|
#: tfrmreportsetup.dateedit1.text
|
||||||
msgid "DateEdit1"
|
msgid "DateEdit1"
|
||||||
@ -160,12 +172,12 @@ msgstr ""
|
|||||||
#: tfrmreportsetup.dateedit2.cancelcaption
|
#: tfrmreportsetup.dateedit2.cancelcaption
|
||||||
msgctxt "tfrmreportsetup.dateedit2.cancelcaption"
|
msgctxt "tfrmreportsetup.dateedit2.cancelcaption"
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr "Abbrechen"
|
||||||
|
|
||||||
#: tfrmreportsetup.dateedit2.okcaption
|
#: tfrmreportsetup.dateedit2.okcaption
|
||||||
msgctxt "tfrmreportsetup.dateedit2.okcaption"
|
msgctxt "tfrmreportsetup.dateedit2.okcaption"
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr ""
|
msgstr "OK"
|
||||||
|
|
||||||
#: tfrmreportsetup.dateedit2.text
|
#: tfrmreportsetup.dateedit2.text
|
||||||
msgid "DateEdit2"
|
msgid "DateEdit2"
|
||||||
@ -173,15 +185,15 @@ msgstr ""
|
|||||||
|
|
||||||
#: tfrmreportsetup.label1.caption
|
#: tfrmreportsetup.label1.caption
|
||||||
msgid "Start Date:"
|
msgid "Start Date:"
|
||||||
msgstr ""
|
msgstr "Startdatum:"
|
||||||
|
|
||||||
#: tfrmreportsetup.label2.caption
|
#: tfrmreportsetup.label2.caption
|
||||||
msgid "End Date:"
|
msgid "End Date:"
|
||||||
msgstr ""
|
msgstr "Enddatum:"
|
||||||
|
|
||||||
#: tfrmreportsetup.label3.caption
|
#: tfrmreportsetup.label3.caption
|
||||||
msgid "Format:"
|
msgid "Format:"
|
||||||
msgstr ""
|
msgstr "Format:"
|
||||||
|
|
||||||
#: tmainform.btndeleteres.caption
|
#: tmainform.btndeleteres.caption
|
||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
@ -201,7 +213,7 @@ msgstr "Turbo Power VisualPlanIt Demo"
|
|||||||
|
|
||||||
#: tmainform.cbaddressbuilder.text
|
#: tmainform.cbaddressbuilder.text
|
||||||
msgid "(default)"
|
msgid "(default)"
|
||||||
msgstr ""
|
msgstr "(Standard)"
|
||||||
|
|
||||||
#: tmainform.cballowinplaceediting.caption
|
#: tmainform.cballowinplaceediting.caption
|
||||||
msgid "Allow inplace editing"
|
msgid "Allow inplace editing"
|
||||||
@ -209,7 +221,7 @@ msgstr "Editieren an Ort und Stelle erlauben"
|
|||||||
|
|
||||||
#: tmainform.cbdrawingstyle.text
|
#: tmainform.cbdrawingstyle.text
|
||||||
msgid "flat"
|
msgid "flat"
|
||||||
msgstr ""
|
msgstr "flach"
|
||||||
|
|
||||||
#: tmainform.cbgranularity.text
|
#: tmainform.cbgranularity.text
|
||||||
msgid "30 Min"
|
msgid "30 Min"
|
||||||
@ -221,7 +233,7 @@ msgstr "Aufbau der Adresse:"
|
|||||||
|
|
||||||
#: tmainform.lbldrawingstyle.caption
|
#: tmainform.lbldrawingstyle.caption
|
||||||
msgid "Drawing style:"
|
msgid "Drawing style:"
|
||||||
msgstr ""
|
msgstr "Darstellungs-Stil:"
|
||||||
|
|
||||||
#: tmainform.lblfirstdayofweek.caption
|
#: tmainform.lblfirstdayofweek.caption
|
||||||
msgid "First day of week"
|
msgid "First day of week"
|
||||||
@ -262,16 +274,20 @@ msgstr "Über Visual PlanIt"
|
|||||||
|
|
||||||
#: tmainform.mnueditprintformats.caption
|
#: tmainform.mnueditprintformats.caption
|
||||||
msgid "Edit print formats..."
|
msgid "Edit print formats..."
|
||||||
msgstr ""
|
msgstr "Druckformate bearbeiten..."
|
||||||
|
|
||||||
#: tmainform.mnumaintenance.caption
|
#: tmainform.mnumaintenance.caption
|
||||||
msgctxt "tmainform.mnumaintenance.caption"
|
msgctxt "tmainform.mnumaintenance.caption"
|
||||||
msgid "Maintenance"
|
msgid "Maintenance"
|
||||||
msgstr "Wartung"
|
msgstr "Wartung"
|
||||||
|
|
||||||
|
#: tmainform.mnuprint.caption
|
||||||
|
msgid "Print..."
|
||||||
|
msgstr "Drucken..."
|
||||||
|
|
||||||
#: tmainform.mnuprintpreview.caption
|
#: tmainform.mnuprintpreview.caption
|
||||||
msgid "Print preview..."
|
msgid "Print preview..."
|
||||||
msgstr ""
|
msgstr "Druckvorschau..."
|
||||||
|
|
||||||
#: tmainform.mnuquit.caption
|
#: tmainform.mnuquit.caption
|
||||||
msgid "Quit"
|
msgid "Quit"
|
||||||
|
@ -25,6 +25,10 @@ msgstr ""
|
|||||||
msgid "30 min"
|
msgid "30 min"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: demomain.rs3d
|
||||||
|
msgid "3D"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rs5min
|
#: demomain.rs5min
|
||||||
msgid "5 min"
|
msgid "5 min"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -37,6 +41,10 @@ msgstr ""
|
|||||||
msgid "6 min"
|
msgid "6 min"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: demomain.rsborderless
|
||||||
|
msgid "ohne Rand"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rsconfirmdeleteres
|
#: demomain.rsconfirmdeleteres
|
||||||
msgid "Do you really want to delete resource %s?"
|
msgid "Do you really want to delete resource %s?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -62,6 +70,10 @@ msgstr ""
|
|||||||
msgid "Events per week"
|
msgid "Events per week"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: demomain.rsflat
|
||||||
|
msgid "flach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: demomain.rsfriday
|
#: demomain.rsfriday
|
||||||
msgid "Friday"
|
msgid "Friday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -258,6 +270,10 @@ msgctxt "TMAINFORM.MNUMAINTENANCE.CAPTION"
|
|||||||
msgid "Maintenance"
|
msgid "Maintenance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: tmainform.mnuprint.caption
|
||||||
|
msgid "Print..."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: tmainform.mnuprintpreview.caption
|
#: tmainform.mnuprintpreview.caption
|
||||||
msgid "Print preview..."
|
msgid "Print preview..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Reference in New Issue
Block a user