You've already forked lazarus-ccr
tvplanit: Translate PrintFormat item editor and auto-position controls.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4931 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -386,8 +386,10 @@ msgid "Delete"
|
|||||||
msgstr "Löschen"
|
msgstr "Löschen"
|
||||||
|
|
||||||
#: vpsr.rsdescriptionlbl
|
#: vpsr.rsdescriptionlbl
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Subject:"
|
||||||
msgctxt "vpsr.rsdescriptionlbl"
|
msgctxt "vpsr.rsdescriptionlbl"
|
||||||
msgid "Subject:"
|
msgid "Description:"
|
||||||
msgstr "Betreff:"
|
msgstr "Betreff:"
|
||||||
|
|
||||||
#: vpsr.rsdetails
|
#: vpsr.rsdetails
|
||||||
@ -436,6 +438,10 @@ msgstr "Fehler: Doppelte Ressource."
|
|||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr "Bearbeiten"
|
msgstr "Bearbeiten"
|
||||||
|
|
||||||
|
#: vpsr.rseditformatcaption
|
||||||
|
msgid "Edit format"
|
||||||
|
msgstr "Format bearbeiten"
|
||||||
|
|
||||||
#: vpsr.rseditingfolders
|
#: vpsr.rseditingfolders
|
||||||
msgid "Folder Editor."
|
msgid "Folder Editor."
|
||||||
msgstr "Ordner-Editor"
|
msgstr "Ordner-Editor"
|
||||||
@ -668,10 +674,18 @@ msgctxt "vpsr.rsmonthpopuptoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Heute"
|
msgstr "Heute"
|
||||||
|
|
||||||
|
#: vpsr.rsmonths
|
||||||
|
msgid "Months"
|
||||||
|
msgstr "Monate"
|
||||||
|
|
||||||
#: vpsr.rsnameisrequired
|
#: vpsr.rsnameisrequired
|
||||||
msgid "Error: Name cannot be empty."
|
msgid "Error: Name cannot be empty."
|
||||||
msgstr "Fehler: Name muss angegeben sein."
|
msgstr "Fehler: Name muss angegeben sein."
|
||||||
|
|
||||||
|
#: vpsr.rsnamelbl
|
||||||
|
msgid "Name:"
|
||||||
|
msgstr "Name:"
|
||||||
|
|
||||||
#: vpsr.rsneedelementname
|
#: vpsr.rsneedelementname
|
||||||
msgid "Please supply an Element Name"
|
msgid "Please supply an Element Name"
|
||||||
msgstr "Bitte geben Sie einen Element-Namen an."
|
msgstr "Bitte geben Sie einen Element-Namen an."
|
||||||
@ -1017,6 +1031,14 @@ msgstr "bis"
|
|||||||
msgid "Thursday"
|
msgid "Thursday"
|
||||||
msgstr "Donnerstag"
|
msgstr "Donnerstag"
|
||||||
|
|
||||||
|
#: vpsr.rstimeinclbl
|
||||||
|
msgid "Time increment:"
|
||||||
|
msgstr "Zeitintervall:"
|
||||||
|
|
||||||
|
#: vpsr.rstimeincunits
|
||||||
|
msgid "Time increment units:"
|
||||||
|
msgstr "Einheit:"
|
||||||
|
|
||||||
#: vpsr.rstitle
|
#: vpsr.rstitle
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr "Titel"
|
msgstr "Titel"
|
||||||
@ -1108,6 +1130,10 @@ msgctxt "vpsr.rsweekpopupnavtoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Heute"
|
msgstr "Heute"
|
||||||
|
|
||||||
|
#: vpsr.rsweeks
|
||||||
|
msgid "Weeks"
|
||||||
|
msgstr "Wochen"
|
||||||
|
|
||||||
#: vpsr.rsxdays
|
#: vpsr.rsxdays
|
||||||
msgid "%d days"
|
msgid "%d days"
|
||||||
msgstr "%d Tage"
|
msgstr "%d Tage"
|
||||||
@ -1132,6 +1158,10 @@ msgstr "Jährlich, nach Datum"
|
|||||||
msgid "Yearly By Day"
|
msgid "Yearly By Day"
|
||||||
msgstr "Jährlich, nach Wochentag"
|
msgstr "Jährlich, nach Wochentag"
|
||||||
|
|
||||||
|
#: vpsr.rsyears
|
||||||
|
msgid "Years"
|
||||||
|
msgstr "Jahre"
|
||||||
|
|
||||||
#: vpsr.rsyes
|
#: vpsr.rsyes
|
||||||
msgid "Y"
|
msgid "Y"
|
||||||
msgstr "Y"
|
msgstr "Y"
|
||||||
|
@ -387,8 +387,10 @@ msgid "Delete"
|
|||||||
msgstr "Wissen"
|
msgstr "Wissen"
|
||||||
|
|
||||||
#: vpsr.rsdescriptionlbl
|
#: vpsr.rsdescriptionlbl
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Subject:"
|
||||||
msgctxt "vpsr.rsdescriptionlbl"
|
msgctxt "vpsr.rsdescriptionlbl"
|
||||||
msgid "Subject:"
|
msgid "Description:"
|
||||||
msgstr "Onderwerp:"
|
msgstr "Onderwerp:"
|
||||||
|
|
||||||
#: vpsr.rsdetails
|
#: vpsr.rsdetails
|
||||||
@ -437,6 +439,10 @@ msgstr "Fout: Duplicaat Hulpmiddel."
|
|||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rseditformatcaption
|
||||||
|
msgid "Edit format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rseditingfolders
|
#: vpsr.rseditingfolders
|
||||||
msgid "Folder Editor."
|
msgid "Folder Editor."
|
||||||
msgstr "Map Editor."
|
msgstr "Map Editor."
|
||||||
@ -669,10 +675,18 @@ msgctxt "vpsr.rsmonthpopuptoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Vandaag"
|
msgstr "Vandaag"
|
||||||
|
|
||||||
|
#: vpsr.rsmonths
|
||||||
|
msgid "Months"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsnameisrequired
|
#: vpsr.rsnameisrequired
|
||||||
msgid "Error: Name cannot be empty."
|
msgid "Error: Name cannot be empty."
|
||||||
msgstr "Fout: Naam mag niet leeg zijn."
|
msgstr "Fout: Naam mag niet leeg zijn."
|
||||||
|
|
||||||
|
#: vpsr.rsnamelbl
|
||||||
|
msgid "Name:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsneedelementname
|
#: vpsr.rsneedelementname
|
||||||
msgid "Please supply an Element Name"
|
msgid "Please supply an Element Name"
|
||||||
msgstr "Geeft u aub een Element Naam op"
|
msgstr "Geeft u aub een Element Naam op"
|
||||||
@ -1018,6 +1032,14 @@ msgstr "t/m"
|
|||||||
msgid "Thursday"
|
msgid "Thursday"
|
||||||
msgstr "Donderdag"
|
msgstr "Donderdag"
|
||||||
|
|
||||||
|
#: vpsr.rstimeinclbl
|
||||||
|
msgid "Time increment:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rstimeincunits
|
||||||
|
msgid "Time increment units:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rstitle
|
#: vpsr.rstitle
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr "Titel"
|
msgstr "Titel"
|
||||||
@ -1109,6 +1131,10 @@ msgctxt "vpsr.rsweekpopupnavtoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Vandaag"
|
msgstr "Vandaag"
|
||||||
|
|
||||||
|
#: vpsr.rsweeks
|
||||||
|
msgid "Weeks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsxdays
|
#: vpsr.rsxdays
|
||||||
msgid "%d days"
|
msgid "%d days"
|
||||||
msgstr "%d dagen"
|
msgstr "%d dagen"
|
||||||
@ -1133,6 +1159,10 @@ msgstr "Jaarlijks, op Datum"
|
|||||||
msgid "Yearly By Day"
|
msgid "Yearly By Day"
|
||||||
msgstr "Jaarlijks, op dag"
|
msgstr "Jaarlijks, op dag"
|
||||||
|
|
||||||
|
#: vpsr.rsyears
|
||||||
|
msgid "Years"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsyes
|
#: vpsr.rsyes
|
||||||
msgid "Y"
|
msgid "Y"
|
||||||
msgstr "Y"
|
msgstr "Y"
|
||||||
|
@ -377,7 +377,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: vpsr.rsdescriptionlbl
|
#: vpsr.rsdescriptionlbl
|
||||||
msgctxt "vpsr.rsdescriptionlbl"
|
msgctxt "vpsr.rsdescriptionlbl"
|
||||||
msgid "Subject:"
|
msgid "Description:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsdetails
|
#: vpsr.rsdetails
|
||||||
@ -426,6 +426,10 @@ msgstr ""
|
|||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rseditformatcaption
|
||||||
|
msgid "Edit format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rseditingfolders
|
#: vpsr.rseditingfolders
|
||||||
msgid "Folder Editor."
|
msgid "Folder Editor."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -658,10 +662,18 @@ msgctxt "vpsr.rsmonthpopuptoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsmonths
|
||||||
|
msgid "Months"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsnameisrequired
|
#: vpsr.rsnameisrequired
|
||||||
msgid "Error: Name cannot be empty."
|
msgid "Error: Name cannot be empty."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsnamelbl
|
||||||
|
msgid "Name:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsneedelementname
|
#: vpsr.rsneedelementname
|
||||||
msgid "Please supply an Element Name"
|
msgid "Please supply an Element Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1007,6 +1019,14 @@ msgstr ""
|
|||||||
msgid "Thursday"
|
msgid "Thursday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rstimeinclbl
|
||||||
|
msgid "Time increment:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rstimeincunits
|
||||||
|
msgid "Time increment units:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rstitle
|
#: vpsr.rstitle
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1098,6 +1118,10 @@ msgctxt "vpsr.rsweekpopupnavtoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsweeks
|
||||||
|
msgid "Weeks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsxdays
|
#: vpsr.rsxdays
|
||||||
msgid "%d days"
|
msgid "%d days"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1122,6 +1146,10 @@ msgstr ""
|
|||||||
msgid "Yearly By Day"
|
msgid "Yearly By Day"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rsyears
|
||||||
|
msgid "Years"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsyes
|
#: vpsr.rsyes
|
||||||
msgid "Y"
|
msgid "Y"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -387,8 +387,10 @@ msgid "Delete"
|
|||||||
msgstr "Удалить"
|
msgstr "Удалить"
|
||||||
|
|
||||||
#: vpsr.rsdescriptionlbl
|
#: vpsr.rsdescriptionlbl
|
||||||
|
#, fuzzy
|
||||||
|
#| msgid "Subject:"
|
||||||
msgctxt "vpsr.rsdescriptionlbl"
|
msgctxt "vpsr.rsdescriptionlbl"
|
||||||
msgid "Subject:"
|
msgid "Description:"
|
||||||
msgstr "Тема:"
|
msgstr "Тема:"
|
||||||
|
|
||||||
#: vpsr.rsdetails
|
#: vpsr.rsdetails
|
||||||
@ -439,6 +441,10 @@ msgstr "Ошибка: Дубликат ресурсов."
|
|||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rseditformatcaption
|
||||||
|
msgid "Edit format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rseditingfolders
|
#: vpsr.rseditingfolders
|
||||||
msgid "Folder Editor."
|
msgid "Folder Editor."
|
||||||
msgstr "Редактор папки"
|
msgstr "Редактор папки"
|
||||||
@ -673,10 +679,18 @@ msgctxt "vpsr.rsmonthpopuptoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Сегодня"
|
msgstr "Сегодня"
|
||||||
|
|
||||||
|
#: vpsr.rsmonths
|
||||||
|
msgid "Months"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsnameisrequired
|
#: vpsr.rsnameisrequired
|
||||||
msgid "Error: Name cannot be empty."
|
msgid "Error: Name cannot be empty."
|
||||||
msgstr "Ошибка: Имя не может быть пустым."
|
msgstr "Ошибка: Имя не может быть пустым."
|
||||||
|
|
||||||
|
#: vpsr.rsnamelbl
|
||||||
|
msgid "Name:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsneedelementname
|
#: vpsr.rsneedelementname
|
||||||
msgid "Please supply an Element Name"
|
msgid "Please supply an Element Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1036,6 +1050,14 @@ msgstr "Через"
|
|||||||
msgid "Thursday"
|
msgid "Thursday"
|
||||||
msgstr "Четверг"
|
msgstr "Четверг"
|
||||||
|
|
||||||
|
#: vpsr.rstimeinclbl
|
||||||
|
msgid "Time increment:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: vpsr.rstimeincunits
|
||||||
|
msgid "Time increment units:"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rstitle
|
#: vpsr.rstitle
|
||||||
msgid "Title"
|
msgid "Title"
|
||||||
msgstr "Заголовок"
|
msgstr "Заголовок"
|
||||||
@ -1127,6 +1149,10 @@ msgctxt "vpsr.rsweekpopupnavtoday"
|
|||||||
msgid "Today"
|
msgid "Today"
|
||||||
msgstr "Сегодня"
|
msgstr "Сегодня"
|
||||||
|
|
||||||
|
#: vpsr.rsweeks
|
||||||
|
msgid "Weeks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsxdays
|
#: vpsr.rsxdays
|
||||||
msgid "%d days"
|
msgid "%d days"
|
||||||
msgstr "%d дней"
|
msgstr "%d дней"
|
||||||
@ -1151,6 +1177,10 @@ msgstr "Ежегодно по дате"
|
|||||||
msgid "Yearly By Day"
|
msgid "Yearly By Day"
|
||||||
msgstr "Ежегодно по дню"
|
msgstr "Ежегодно по дню"
|
||||||
|
|
||||||
|
#: vpsr.rsyears
|
||||||
|
msgid "Years"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: vpsr.rsyes
|
#: vpsr.rsyes
|
||||||
msgid "Y"
|
msgid "Y"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1,45 +1,49 @@
|
|||||||
object frmEditFormat: TfrmEditFormat
|
object frmEditFormat: TfrmEditFormat
|
||||||
Left = 403
|
Left = 403
|
||||||
Height = 199
|
Height = 193
|
||||||
Top = 199
|
Top = 199
|
||||||
Width = 329
|
Width = 329
|
||||||
HorzScrollBar.Page = 328
|
HorzScrollBar.Page = 328
|
||||||
VertScrollBar.Page = 188
|
VertScrollBar.Page = 188
|
||||||
BorderStyle = bsDialog
|
BorderStyle = bsDialog
|
||||||
Caption = 'Edit Format'
|
Caption = 'Edit Format'
|
||||||
ClientHeight = 199
|
ClientHeight = 193
|
||||||
ClientWidth = 329
|
ClientWidth = 329
|
||||||
|
OnCreate = FormCreate
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '1.7'
|
LCLVersion = '1.7'
|
||||||
object Label1: TLabel
|
object LblIncrement: TLabel
|
||||||
Left = 16
|
Left = 16
|
||||||
Height = 15
|
Height = 15
|
||||||
Top = 76
|
Top = 72
|
||||||
Width = 80
|
Width = 80
|
||||||
Caption = 'Day Increment:'
|
Caption = 'Day Increment:'
|
||||||
|
FocusControl = edIncrement
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object Label2: TLabel
|
object LblDescription: TLabel
|
||||||
Left = 16
|
Left = 16
|
||||||
Height = 15
|
Height = 15
|
||||||
Top = 44
|
Top = 44
|
||||||
Width = 66
|
Width = 66
|
||||||
Caption = 'Description: '
|
Caption = 'Description: '
|
||||||
|
FocusControl = edDescription
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object Label3: TLabel
|
object LblName: TLabel
|
||||||
Left = 16
|
Left = 16
|
||||||
Height = 15
|
Height = 15
|
||||||
Top = 16
|
Top = 16
|
||||||
Width = 38
|
Width = 38
|
||||||
Caption = 'Name: '
|
Caption = 'Name: '
|
||||||
|
FocusControl = edName
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
end
|
end
|
||||||
object btnOk: TButton
|
object btnOk: TButton
|
||||||
Left = 157
|
Left = 157
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 164
|
Top = 160
|
||||||
Width = 75
|
Width = 75
|
||||||
Caption = 'OK'
|
Caption = 'OK'
|
||||||
Default = True
|
Default = True
|
||||||
@ -49,7 +53,7 @@ object frmEditFormat: TfrmEditFormat
|
|||||||
object btnCancel: TButton
|
object btnCancel: TButton
|
||||||
Left = 237
|
Left = 237
|
||||||
Height = 25
|
Height = 25
|
||||||
Top = 164
|
Top = 160
|
||||||
Width = 75
|
Width = 75
|
||||||
Cancel = True
|
Cancel = True
|
||||||
Caption = 'Cancel'
|
Caption = 'Cancel'
|
||||||
@ -58,8 +62,8 @@ object frmEditFormat: TfrmEditFormat
|
|||||||
end
|
end
|
||||||
object rgDayIncrement: TRadioGroup
|
object rgDayIncrement: TRadioGroup
|
||||||
Left = 16
|
Left = 16
|
||||||
Height = 48
|
Height = 51
|
||||||
Top = 104
|
Top = 101
|
||||||
Width = 296
|
Width = 296
|
||||||
AutoFill = True
|
AutoFill = True
|
||||||
Caption = ' Day Increment Unit '
|
Caption = ' Day Increment Unit '
|
||||||
@ -71,7 +75,7 @@ object frmEditFormat: TfrmEditFormat
|
|||||||
ChildSizing.ShrinkVertical = crsScaleChilds
|
ChildSizing.ShrinkVertical = crsScaleChilds
|
||||||
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
||||||
ChildSizing.ControlsPerLine = 4
|
ChildSizing.ControlsPerLine = 4
|
||||||
ClientHeight = 28
|
ClientHeight = 31
|
||||||
ClientWidth = 292
|
ClientWidth = 292
|
||||||
Columns = 4
|
Columns = 4
|
||||||
ItemIndex = 0
|
ItemIndex = 0
|
||||||
@ -100,7 +104,7 @@ object frmEditFormat: TfrmEditFormat
|
|||||||
object udIncrement: TUpDown
|
object udIncrement: TUpDown
|
||||||
Left = 158
|
Left = 158
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 72
|
Top = 68
|
||||||
Width = 16
|
Width = 16
|
||||||
Associate = edIncrement
|
Associate = edIncrement
|
||||||
Max = 365
|
Max = 365
|
||||||
@ -112,7 +116,7 @@ object frmEditFormat: TfrmEditFormat
|
|||||||
object edIncrement: TEdit
|
object edIncrement: TEdit
|
||||||
Left = 104
|
Left = 104
|
||||||
Height = 23
|
Height = 23
|
||||||
Top = 72
|
Top = 68
|
||||||
Width = 54
|
Width = 54
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
Text = '0'
|
Text = '0'
|
||||||
|
@ -43,28 +43,32 @@ uses
|
|||||||
VpPrtFmt;
|
VpPrtFmt;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
{ TfrmEditFormat }
|
||||||
|
|
||||||
TfrmEditFormat = class(TForm)
|
TfrmEditFormat = class(TForm)
|
||||||
btnCancel: TButton;
|
btnCancel: TButton;
|
||||||
btnOk: TButton;
|
btnOk: TButton;
|
||||||
edDescription: TEdit;
|
edDescription: TEdit;
|
||||||
edName: TEdit;
|
edName: TEdit;
|
||||||
Label1: TLabel;
|
LblIncrement: TLabel;
|
||||||
Label2: TLabel;
|
LblDescription: TLabel;
|
||||||
Label3: TLabel;
|
LblName: TLabel;
|
||||||
rgDayIncrement: TRadioGroup;
|
rgDayIncrement: TRadioGroup;
|
||||||
udIncrement: TUpDown;
|
udIncrement: TUpDown;
|
||||||
edIncrement: TEdit;
|
edIncrement: TEdit;
|
||||||
procedure btnCancelClick(Sender: TObject);
|
procedure btnCancelClick(Sender: TObject);
|
||||||
procedure btnOkClick(Sender: TObject);
|
procedure btnOkClick(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
|
private
|
||||||
|
procedure SetCaptions;
|
||||||
protected
|
protected
|
||||||
procedure SaveData(AFormat: TVpPrintFormatItem);
|
procedure SaveData(AFormat: TVpPrintFormatItem);
|
||||||
procedure SetData(AFormat: TVpPrintFormatItem);
|
procedure SetData(AFormat: TVpPrintFormatItem);
|
||||||
function Validate: Boolean;
|
function Validate: Boolean;
|
||||||
{ Private declarations }
|
|
||||||
public
|
public
|
||||||
function Execute(AFormat: TVpPrintFormatItem) : Boolean;
|
function Execute(AFormat: TVpPrintFormatItem) : Boolean;
|
||||||
{ Public declarations }
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -76,6 +80,9 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
|
uses
|
||||||
|
Math, VpMisc, VpSR;
|
||||||
|
|
||||||
{ TfrmEditLayout }
|
{ TfrmEditLayout }
|
||||||
|
|
||||||
procedure TfrmEditFormat.FormShow(Sender: TObject);
|
procedure TfrmEditFormat.FormShow(Sender: TObject);
|
||||||
@ -106,6 +113,12 @@ begin
|
|||||||
if Result then
|
if Result then
|
||||||
SaveData(AFormat);
|
SaveData(AFormat);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrmEditFormat.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
SetCaptions;
|
||||||
|
end;
|
||||||
|
|
||||||
{=====}
|
{=====}
|
||||||
procedure TfrmEditFormat.SaveData(AFormat: TVpPrintFormatItem);
|
procedure TfrmEditFormat.SaveData(AFormat: TVpPrintFormatItem);
|
||||||
var
|
var
|
||||||
@ -121,7 +134,54 @@ begin
|
|||||||
else
|
else
|
||||||
AFormat.DayIncUnits := duDay;
|
AFormat.DayIncUnits := duDay;
|
||||||
end;
|
end;
|
||||||
{=====}
|
|
||||||
|
procedure TfrmEditFormat.SetCaptions;
|
||||||
|
const
|
||||||
|
DELTA = 8;
|
||||||
|
MARGIN = 16;
|
||||||
|
var
|
||||||
|
cnv: TControlCanvas;
|
||||||
|
w: Integer;
|
||||||
|
begin
|
||||||
|
Caption := RSEditFormatCaption;
|
||||||
|
LblName.Caption := RSNameLbl;
|
||||||
|
LblDescription.Caption := RSDescriptionLbl;
|
||||||
|
LblIncrement.Caption := RsTimeIncLbl;
|
||||||
|
rgDayIncrement.Caption := RsTimeIncUnits;
|
||||||
|
rgDayIncrement.Items[0] := RSDays;
|
||||||
|
rgDayIncrement.Items[1] := RSWeeks;
|
||||||
|
rgDayIncrement.Items[2] := RSMonths;
|
||||||
|
rgDayIncrement.Items[3] := RSYears;
|
||||||
|
btnOK.Caption := RSOKBtn;
|
||||||
|
btnCancel.Caption := RSCancelBtn;
|
||||||
|
|
||||||
|
w := MaxValue([GetLabelWidth(LblName), GetLabelWidth(LblDescription), GetLabelWidth(LblIncrement)]);
|
||||||
|
edName.Left := MARGIN + w + DELTA;
|
||||||
|
edDescription.Left := edName.Left;
|
||||||
|
edDescription.Width := edName.Width;
|
||||||
|
edIncrement.Left := edName.Left;
|
||||||
|
udIncrement.Left := edIncrement.Left + edIncrement.Width;
|
||||||
|
LblName.Left := edName.Left - GetLabelWidth(LblName) - DELTA;
|
||||||
|
LblDescription.Left := edDescription.Left - GetLabelWidth(lblDescription) - DELTA;
|
||||||
|
lblIncrement.Left := edIncrement.Left - GetLabelWidth(lblIncrement) - DELTA;
|
||||||
|
|
||||||
|
ClientWidth := MARGIN + w + DELTA + edName.Width + MARGIN;
|
||||||
|
rgDayIncrement.Width := ClientWidth - 2*MARGIN;
|
||||||
|
|
||||||
|
cnv := TControlCanvas.Create;
|
||||||
|
try
|
||||||
|
cnv.Control := btnOK;
|
||||||
|
cnv.Font.Assign(btnOK.Font);
|
||||||
|
w := Max(cnv.TextWidth(RSOKBtn), cnv.TextWidth(RSCancelBtn));
|
||||||
|
finally
|
||||||
|
cnv.Free;
|
||||||
|
end;
|
||||||
|
btnOK.Width := w + 16;
|
||||||
|
btnCancel.Width := w + 16;
|
||||||
|
btnCancel.Left := ClientWidth - MARGIN - btnCancel.Width;
|
||||||
|
btnOK.Left := btnCancel.Left - 8 - btnOK.Width;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrmEditFormat.SetData(AFormat: TVpPrintFormatItem);
|
procedure TfrmEditFormat.SetData(AFormat: TVpPrintFormatItem);
|
||||||
var
|
var
|
||||||
IncName : string;
|
IncName : string;
|
||||||
|
@ -122,6 +122,9 @@ resourcestring
|
|||||||
RSMinutes = 'Minutes';
|
RSMinutes = 'Minutes';
|
||||||
RSHours = 'Hours';
|
RSHours = 'Hours';
|
||||||
RSDays = 'Days';
|
RSDays = 'Days';
|
||||||
|
RSWeeks = 'Weeks';
|
||||||
|
RSMonths = 'Months';
|
||||||
|
RSYears = 'Years';
|
||||||
RSCalendarWeekAbbr = 'CW'; // Abbreviation of "calendar week"
|
RSCalendarWeekAbbr = 'CW'; // Abbreviation of "calendar week"
|
||||||
|
|
||||||
{WARNINGS}
|
{WARNINGS}
|
||||||
@ -235,7 +238,7 @@ resourcestring
|
|||||||
{ Event Edit Dialog Captions }
|
{ Event Edit Dialog Captions }
|
||||||
RSDlgEventEdit = 'Event';
|
RSDlgEventEdit = 'Event';
|
||||||
RSAppointmentGroupBox = 'Appointment';
|
RSAppointmentGroupBox = 'Appointment';
|
||||||
RSDescriptionLbl = 'Subject:';
|
RSDescriptionLbl = 'Description:';
|
||||||
RSLocationLbl = 'Location:';
|
RSLocationLbl = 'Location:';
|
||||||
RSCategoryLbl = 'Category:';
|
RSCategoryLbl = 'Category:';
|
||||||
RSStartTimeLbl = 'Start time:';
|
RSStartTimeLbl = 'Start time:';
|
||||||
@ -416,6 +419,13 @@ resourcestring
|
|||||||
RSLoadFileBtn = 'Load file...';
|
RSLoadFileBtn = 'Load file...';
|
||||||
RSSaveFileBtn = 'Save file...';
|
RSSaveFileBtn = 'Save file...';
|
||||||
|
|
||||||
|
{ Print Format Item Editor }
|
||||||
|
RSEditFormatCaption= 'Edit format';
|
||||||
|
RSNameLbl = 'Name:';
|
||||||
|
RSTimeIncLbl = 'Time increment:';
|
||||||
|
RSTimeIncUnits = 'Time increment units:';
|
||||||
|
|
||||||
|
|
||||||
{ Automatic resource adding/selection} {!!.01}
|
{ Automatic resource adding/selection} {!!.01}
|
||||||
RSAddNewResource = 'No resources have been defined. Would you ' + {!!.01}
|
RSAddNewResource = 'No resources have been defined. Would you ' + {!!.01}
|
||||||
'like to add one now?'; {!!.01}
|
'like to add one now?'; {!!.01}
|
||||||
|
Reference in New Issue
Block a user