mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:50:32 +02:00
projecttemplates: convert forms to use fpc resources
git-svn-id: trunk@23461 -
This commit is contained in:
parent
98518183b0
commit
fee235a3d1
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1711,10 +1711,8 @@ components/projecttemplates/Makefile svneol=native#text/plain
|
||||
components/projecttemplates/Makefile.fpc svneol=native#text/plain
|
||||
components/projecttemplates/README.txt svneol=native#text/plain
|
||||
components/projecttemplates/frmtemplatesettings.lfm svneol=native#text/plain
|
||||
components/projecttemplates/frmtemplatesettings.lrs svneol=native#text/pascal
|
||||
components/projecttemplates/frmtemplatesettings.pas svneol=native#text/plain
|
||||
components/projecttemplates/frmtemplatevariables.lfm svneol=native#text/plain
|
||||
components/projecttemplates/frmtemplatevariables.lrs svneol=native#text/pascal
|
||||
components/projecttemplates/frmtemplatevariables.pas svneol=native#text/plain
|
||||
components/projecttemplates/idetemplateproject.pp svneol=native#text/plain
|
||||
components/projecttemplates/languages/frmtemplatevariables.de.po svneol=native#text/plain
|
||||
|
@ -1,16 +0,0 @@
|
||||
LazarusResources.Add('TTemplateSettingsForm','FORMDATA',[
|
||||
'TPF0'#21'TTemplateSettingsForm'#20'TemplateSettingsForm'#7'Caption'#6#26'Pro'
|
||||
+'ject templates settings'#12'ClientHeight'#2''#11'ClientWidth'#3#144#1#13'P'
|
||||
+'ixelsPerInch'#2'Z'#8'Position'#7#14'poScreenCenter'#18'HorzScrollBar.Page'#3
|
||||
+#143#1#18'VertScrollBar.Page'#2'~'#4'Left'#3#214#1#6'Height'#2''#3'Top'#3
|
||||
+#175#0#5'Width'#3#144#1#0#6'TLabel'#6'Label1'#8'AutoSize'#8#7'Caption'#6#26
|
||||
+'&Directory with templates:'#5'Color'#7#6'clNone'#12'FocusControl'#7#11'DETe'
|
||||
+'mplates'#6'Layout'#7#8'tlCenter'#4'Left'#2#8#6'Height'#2#24#3'Top'#2#16#5'W'
|
||||
+'idth'#3#160#0#0#0#7'TButton'#3'BOK'#7'Caption'#6#3'&OK'#7'Default'#9#11'Mod'
|
||||
+'alResult'#2#1#7'OnClick'#7#8'BOKClick'#8'TabOrder'#2#0#4'Left'#3'('#1#6'Hei'
|
||||
+'ght'#2#25#3'Top'#2'`'#5'Width'#2'['#0#0#7'TButton'#7'BCancel'#6'Cancel'#9#7
|
||||
+'Caption'#6#7'&Cancel'#11'ModalResult'#2#2#8'TabOrder'#2#1#4'Left'#3#192#0#6
|
||||
+'Height'#2#25#3'Top'#2'`'#5'Width'#2'`'#0#0#14'TDirectoryEdit'#11'DETemplate'
|
||||
+'s'#11'ButtonWidth'#2#23#9'NumGlyphs'#2#1#8'TabOrder'#2#2#8'TabOrder'#2#2#4
|
||||
+'Left'#2#8#6'Height'#2#23#3'Top'#2')'#5'Width'#3'h'#1#0#0#0
|
||||
]);
|
@ -5,7 +5,7 @@ unit frmtemplatesettings;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
||||
Buttons, EditBtn, ProjectTemplates;
|
||||
|
||||
type
|
||||
@ -32,6 +32,8 @@ var
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
{ TTemplateSettingsForm }
|
||||
|
||||
procedure TTemplateSettingsForm.BOKClick(Sender: TObject);
|
||||
@ -47,8 +49,5 @@ begin
|
||||
DEtemplates.Directory:=Ftemplates.TemplateDir;
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$I frmtemplatesettings.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
@ -1,40 +0,0 @@
|
||||
{ This is an automatically generated lazarus resource file }
|
||||
|
||||
LazarusResources.Add('TProjectVariablesForm','FORMDATA',[
|
||||
'TPF0'#21'TProjectVariablesForm'#20'ProjectVariablesForm'#4'Left'#3#249#1#6'H'
|
||||
+'eight'#3'F'#1#3'Top'#3'2'#1#5'Width'#3'='#2#13'ActiveControl'#7#12'EProject'
|
||||
+'Name'#7'Caption'#6#25'New project from template'#12'ClientHeight'#3'F'#1#11
|
||||
+'ClientWidth'#3'='#2#6'OnShow'#7#24'ProjectVariablesFormShow'#8'Position'#7
|
||||
+#14'poScreenCenter'#10'LCLVersion'#6#6'0.9.27'#0#6'TLabel'#6'Label1'#4'Left'
|
||||
+#2#8#6'Height'#2#18#3'Top'#2#16#5'Width'#3#153#0#9'Alignment'#7#14'taRightJu'
|
||||
+'stify'#7'Caption'#6#22'&Name for new project:'#6'Layout'#7#8'tlCenter'#11'P'
|
||||
+'arentColor'#8#0#0#6'TLabel'#6'Label2'#4'Left'#2#8#6'Height'#2#18#3'Top'#2'0'
|
||||
+#5'Width'#3#133#0#9'Alignment'#7#14'taRightJustify'#7'Caption'#6#21'Create i'
|
||||
+'n &directory:'#6'Layout'#7#8'tlCenter'#11'ParentColor'#8#0#0#6'TPanel'#12'P'
|
||||
+'Description'#4'Left'#2#8#6'Height'#2':'#3'Top'#2'P'#5'Width'#3'/'#2#7'Ancho'
|
||||
+'rs'#11#5'akTop'#6'akLeft'#7'akRight'#0#10'BevelInner'#7#8'bvRaised'#10'Beve'
|
||||
+'lOuter'#7#9'bvLowered'#7'Caption'#6'ZThis project contains some additional '
|
||||
+'variables. Please provide values for these variables'#11'FullRepaint'#8#8'T'
|
||||
+'abOrder'#2#0#0#0#11'TStringGrid'#11'SGVariables'#4'Left'#2#10#6'Height'#3
|
||||
+#138#0#3'Top'#3#144#0#5'Width'#3'-'#2#7'Anchors'#11#5'akTop'#6'akLeft'#7'akR'
|
||||
+'ight'#8'akBottom'#0#15'AutoFillColumns'#9#8'ColCount'#2#3#15'DefaultColWidt'
|
||||
+'h'#2'x'#7'Options'#11#15'goFixedVertLine'#15'goFixedHorzLine'#10'goVertLine'
|
||||
+#10'goHorzLine'#13'goRangeSelect'#11'goColSizing'#9'goEditing'#18'goAlwaysSh'
|
||||
+'owEditor'#18'goDblClickAutoSize'#14'goSmoothScroll'#0#8'TabOrder'#2#5#9'Col'
|
||||
+'Widths'#1#2'x'#3#216#0#3#217#0#0#0#0#7'TButton'#3'BOK'#4'Left'#3#229#1#6'He'
|
||||
+'ight'#2#25#3'Top'#3'"'#1#5'Width'#2'K'#7'Anchors'#11#7'akRight'#8'akBottom'
|
||||
+#0#25'BorderSpacing.InnerBorder'#2#4#7'Caption'#6#3'&OK'#7'Default'#9#11'Mod'
|
||||
+'alResult'#2#1#7'OnClick'#7#8'BOKClick'#8'TabOrder'#2#1#0#0#7'TButton'#7'BCa'
|
||||
+'ncel'#4'Left'#3#141#1#6'Height'#2#25#3'Top'#3'"'#1#5'Width'#2'K'#7'Anchors'
|
||||
+#11#7'akRight'#8'akBottom'#0#25'BorderSpacing.InnerBorder'#2#4#6'Cancel'#9#7
|
||||
+'Caption'#6#7'&Cancel'#11'ModalResult'#2#2#8'TabOrder'#2#2#0#0#5'TEdit'#12'E'
|
||||
+'ProjectName'#22'AnchorSideLeft.Control'#7#6'Label1'#19'AnchorSideLeft.Side'
|
||||
+#7#9'asrBottom'#23'AnchorSideRight.Control'#7#5'Owner'#20'AnchorSideRight.Si'
|
||||
+'de'#7#9'asrBottom'#4'Left'#3#167#0#6'Height'#2#27#3'Top'#2#16#5'Width'#3#144
|
||||
+#1#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#18'BorderSpacing.Left'#2#6
|
||||
+#19'BorderSpacing.Right'#2#6#8'TabOrder'#2#3#0#0#14'TDirectoryEdit'#9'DEProj'
|
||||
+'ect'#22'AnchorSideLeft.Control'#7#12'EProjectName'#20'AnchorSideRight.Side'
|
||||
+#7#9'asrBottom'#4'Left'#3#167#0#6'Height'#2#27#3'Top'#2'0'#5'Width'#3'x'#1#10
|
||||
+'ShowHidden'#8#11'ButtonWidth'#2#23#9'NumGlyphs'#2#1#7'Anchors'#11#5'akTop'#6
|
||||
+'akLeft'#7'akRight'#0#8'TabOrder'#2#4#0#0#0
|
||||
]);
|
@ -5,7 +5,7 @@ unit frmTemplateVariables;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||||
Grids, ProjectTemplates, Buttons, StdCtrls, EditBtn;
|
||||
|
||||
type
|
||||
@ -45,6 +45,8 @@ var
|
||||
|
||||
implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
ResourceString
|
||||
SVariable = 'Variable';
|
||||
SValue = 'Value';
|
||||
@ -117,8 +119,5 @@ begin
|
||||
Result:=EProjectName.Text;
|
||||
end;
|
||||
|
||||
initialization
|
||||
{$I frmtemplatevariables.lrs}
|
||||
|
||||
end.
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
<License Value="Modified LGPL as per the FCL license
|
||||
"/>
|
||||
<Version Major="1"/>
|
||||
<Files Count="8">
|
||||
<Files Count="6">
|
||||
<Item1>
|
||||
<Filename Value="projecttemplates.pp"/>
|
||||
<UnitName Value="ProjectTemplates"/>
|
||||
@ -36,26 +36,18 @@
|
||||
<Type Value="LFM"/>
|
||||
</Item3>
|
||||
<Item4>
|
||||
<Filename Value="frmtemplatevariables.lrs"/>
|
||||
<Type Value="LRS"/>
|
||||
</Item4>
|
||||
<Item5>
|
||||
<Filename Value="frmtemplatevariables.pas"/>
|
||||
<UnitName Value="frmTemplateVariables"/>
|
||||
</Item5>
|
||||
<Item6>
|
||||
</Item4>
|
||||
<Item5>
|
||||
<Filename Value="frmtemplatesettings.lfm"/>
|
||||
<Type Value="LFM"/>
|
||||
</Item6>
|
||||
<Item7>
|
||||
<Filename Value="frmtemplatesettings.lrs"/>
|
||||
<Type Value="LRS"/>
|
||||
</Item7>
|
||||
<Item8>
|
||||
</Item5>
|
||||
<Item6>
|
||||
<Filename Value="frmtemplatesettings.pas"/>
|
||||
<AddToUsesPkgSection Value="False"/>
|
||||
<UnitName Value="frmtemplatesettings"/>
|
||||
</Item8>
|
||||
</Item6>
|
||||
</Files>
|
||||
<i18n>
|
||||
<EnableI18N Value="True"/>
|
||||
|
Loading…
Reference in New Issue
Block a user