You've already forked lazarus-ccr
Extended language support from Laurent Jacques.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@200 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -50,6 +50,7 @@ resourcestring
|
|||||||
|
|
||||||
// Main Form
|
// Main Form
|
||||||
lieMain = 'Lazarus Icon Editor';
|
lieMain = 'Lazarus Icon Editor';
|
||||||
|
|
||||||
// main bar menu
|
// main bar menu
|
||||||
lieMenuFile = '&File';
|
lieMenuFile = '&File';
|
||||||
lieMenuEdit = '&Edit';
|
lieMenuEdit = '&Edit';
|
||||||
@ -169,7 +170,9 @@ resourcestring
|
|||||||
lieGroupBoxStretchMethod = 'Stretch method';
|
lieGroupBoxStretchMethod = 'Stretch method';
|
||||||
lieRadioButtonTruncate = 'Truncate';
|
lieRadioButtonTruncate = 'Truncate';
|
||||||
lieRadioButtonSmooth = 'Smooth:';
|
lieRadioButtonSmooth = 'Smooth:';
|
||||||
// Todo lieComboBoxSmooth = 'Area pixel';
|
lieAreapixel = 'Area pixel';
|
||||||
|
lieBilinear = 'Bilinear';
|
||||||
|
lieBicubic = 'Bicubic';
|
||||||
|
|
||||||
// Dialog Resize Paper
|
// Dialog Resize Paper
|
||||||
lielieResizePaperDialog = 'Resize paper';
|
lielieResizePaperDialog = 'Resize paper';
|
||||||
@ -179,10 +182,28 @@ resourcestring
|
|||||||
// lieCheckBoxAspectRatio = 'Preserve aspect ratio'; in dialog Resize
|
// lieCheckBoxAspectRatio = 'Preserve aspect ratio'; in dialog Resize
|
||||||
// lieLabelPaperColor = 'Paper color:'; in dialog New
|
// lieLabelPaperColor = 'Paper color:'; in dialog New
|
||||||
// lieColorButtonPaper = 'Change...'; in dialog New
|
// lieColorButtonPaper = 'Change...'; in dialog New
|
||||||
// Todo lieComboBoxPicturePosition = '';
|
lieTopLeft = 'Top Left';
|
||||||
|
lieTopCenter = 'Top Center';
|
||||||
|
lieTopRight = 'Top Right';
|
||||||
|
lieCenterLeft = 'Center Left';
|
||||||
|
lieCentered = 'Centered';
|
||||||
|
lieCenterRight = 'Center Right';
|
||||||
|
lieBottomLeft = 'Bottom Left';
|
||||||
|
lieBottomCenter = 'Bottom Center';
|
||||||
|
lieBottomRight = 'Bottom Right';
|
||||||
|
|
||||||
|
//File Dialogs
|
||||||
|
lieColorDialog = 'Select color';
|
||||||
|
lieOpenPictureDialog = 'Open existing file';
|
||||||
|
lieSavePictureDialog = 'Save file as';
|
||||||
|
lieExportResourceDialog = 'Export as lazarus resource';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<IconPath Value="./"/>
|
<IconPath Value="./"/>
|
||||||
<TargetFileExt Value=".exe"/>
|
<TargetFileExt Value=".exe"/>
|
||||||
<Title Value="Lazarus Icon Editor"/>
|
<Title Value="Lazarus Icon Editor"/>
|
||||||
<ActiveEditorIndexAtStart Value="5"/>
|
<ActiveEditorIndexAtStart Value="11"/>
|
||||||
</General>
|
</General>
|
||||||
<VersionInfo>
|
<VersionInfo>
|
||||||
<CurrentMajorRevNr Value="1"/>
|
<CurrentMajorRevNr Value="1"/>
|
||||||
@ -77,8 +77,8 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ResourceFilename Value="preview.lrs"/>
|
<ResourceFilename Value="preview.lrs"/>
|
||||||
<UnitName Value="Preview"/>
|
<UnitName Value="Preview"/>
|
||||||
<CursorPos X="22" Y="55"/>
|
<CursorPos X="23" Y="66"/>
|
||||||
<TopLine Value="38"/>
|
<TopLine Value="58"/>
|
||||||
<EditorIndex Value="5"/>
|
<EditorIndex Value="5"/>
|
||||||
<UsageCount Value="146"/>
|
<UsageCount Value="146"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
@ -449,8 +449,8 @@
|
|||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<ResourceFilename Value="resizepaperdialog.lrs"/>
|
<ResourceFilename Value="resizepaperdialog.lrs"/>
|
||||||
<UnitName Value="ResizePaperDialog"/>
|
<UnitName Value="ResizePaperDialog"/>
|
||||||
<CursorPos X="25" Y="38"/>
|
<CursorPos X="24" Y="75"/>
|
||||||
<TopLine Value="171"/>
|
<TopLine Value="69"/>
|
||||||
<EditorIndex Value="11"/>
|
<EditorIndex Value="11"/>
|
||||||
<UsageCount Value="102"/>
|
<UsageCount Value="102"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
@ -994,7 +994,24 @@
|
|||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit135>
|
</Unit135>
|
||||||
</Units>
|
</Units>
|
||||||
<JumpHistory Count="0" HistoryIndex="-1"/>
|
<JumpHistory Count="4" HistoryIndex="3">
|
||||||
|
<Position1>
|
||||||
|
<Filename Value="preview.pas"/>
|
||||||
|
<Caret Line="55" Column="31" TopLine="38"/>
|
||||||
|
</Position1>
|
||||||
|
<Position2>
|
||||||
|
<Filename Value="preview.pas"/>
|
||||||
|
<Caret Line="61" Column="3" TopLine="58"/>
|
||||||
|
</Position2>
|
||||||
|
<Position3>
|
||||||
|
<Filename Value="resizepaperdialog.pas"/>
|
||||||
|
<Caret Line="185" Column="60" TopLine="171"/>
|
||||||
|
</Position3>
|
||||||
|
<Position4>
|
||||||
|
<Filename Value="resizepaperdialog.pas"/>
|
||||||
|
<Caret Line="83" Column="26" TopLine="81"/>
|
||||||
|
</Position4>
|
||||||
|
</JumpHistory>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="5"/>
|
<Version Value="5"/>
|
||||||
|
@ -830,7 +830,9 @@ begin
|
|||||||
|
|
||||||
Palette.LoadPalette('../../default.pal');
|
Palette.LoadPalette('../../default.pal');
|
||||||
|
|
||||||
|
// Main Form
|
||||||
Caption:=lieMain;
|
Caption:=lieMain;
|
||||||
|
|
||||||
// Menus
|
// Menus
|
||||||
MenuItemFile.Caption := lieMenuFile;
|
MenuItemFile.Caption := lieMenuFile;
|
||||||
MenuItemEdit.Caption := lieMenuEdit;
|
MenuItemEdit.Caption := lieMenuEdit;
|
||||||
@ -925,6 +927,12 @@ begin
|
|||||||
ToolPolygon.Hint:=lieHintToolPolygon;
|
ToolPolygon.Hint:=lieHintToolPolygon;
|
||||||
ToolEllipse.Hint:=lieHintToolEllipse;
|
ToolEllipse.Hint:=lieHintToolEllipse;
|
||||||
ToolRectangle.Hint:=lieHintToolRectangle;
|
ToolRectangle.Hint:=lieHintToolRectangle;
|
||||||
|
|
||||||
|
//File Dialogs
|
||||||
|
ColorDialog.Title:=lieColorDialog;
|
||||||
|
OpenPictureDialog.Title:=lieOpenPictureDialog;
|
||||||
|
SavePictureDialog.Title:=lieSavePictureDialog;
|
||||||
|
ExportResourceDialog.Title:=lieExportResourceDialog;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMainForm.FormShow(Sender: TObject);
|
procedure TMainForm.FormShow(Sender: TObject);
|
||||||
@ -1136,3 +1144,4 @@ end.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ type
|
|||||||
LabelHeight: TLabel;
|
LabelHeight: TLabel;
|
||||||
UpDownWidth: TUpDown;
|
UpDownWidth: TUpDown;
|
||||||
UpDownHeight: TUpDown;
|
UpDownHeight: TUpDown;
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
private
|
private
|
||||||
public
|
public
|
||||||
end;
|
end;
|
||||||
@ -57,12 +58,23 @@ var
|
|||||||
NewDialogForm: TNewDialogForm;
|
NewDialogForm: TNewDialogForm;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
uses IconStrConsts;
|
||||||
{ TNewDialogForm }
|
{ TNewDialogForm }
|
||||||
|
|
||||||
|
procedure TNewDialogForm.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
Caption:=lieNewDialog;
|
||||||
|
LabelWidth.Caption:=lieLabelWidth;
|
||||||
|
LabelHeight.Caption:=lieLabelHeight;
|
||||||
|
LabelPaperColor.Caption:=lieLabelPaperColor;
|
||||||
|
ColorButtonPaper.Caption:=lieColorButtonPaper;
|
||||||
|
ButtonOK.Caption:=lieButtonOK;
|
||||||
|
ButtonCancel.Caption:=lieButtonCancel;
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
{$I newdialog.lrs}
|
{$I newdialog.lrs}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ object ResizeDialogForm: TResizeDialogForm
|
|||||||
Height = 300
|
Height = 300
|
||||||
Top = 155
|
Top = 155
|
||||||
Width = 246
|
Width = 246
|
||||||
|
OnCreate = FormCreate
|
||||||
object GroupBoxProperties: TGroupBox
|
object GroupBoxProperties: TGroupBox
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
Caption = 'Properties'
|
Caption = 'Properties'
|
||||||
|
@ -4,42 +4,42 @@ LazarusResources.Add('TResizeDialogForm','FORMDATA',[
|
|||||||
+#7'Caption'#6#14'Resize picture'#12'ClientHeight'#3','#1#11'ClientWidth'#3
|
+#7'Caption'#6#14'Resize picture'#12'ClientHeight'#3','#1#11'ClientWidth'#3
|
||||||
+#246#0#13'PixelsPerInch'#2'`'#8'Position'#7#16'poMainFormCenter'#18'HorzScro'
|
+#246#0#13'PixelsPerInch'#2'`'#8'Position'#7#16'poMainFormCenter'#18'HorzScro'
|
||||||
+'llBar.Page'#3#245#0#18'VertScrollBar.Page'#3'+'#1#4'Left'#3'-'#1#6'Height'#3
|
+'llBar.Page'#3#245#0#18'VertScrollBar.Page'#3'+'#1#4'Left'#3'-'#1#6'Height'#3
|
||||||
+','#1#3'Top'#3#155#0#5'Width'#3#246#0#0#9'TGroupBox'#18'GroupBoxProperties'#7
|
+','#1#3'Top'#3#155#0#5'Width'#3#246#0#8'OnCreate'#7#10'FormCreate'#0#9'TGrou'
|
||||||
+'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#7'Caption'#6#10'Pro'
|
+'pBox'#18'GroupBoxProperties'#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8
|
||||||
+'perties'#12'ClientHeight'#3#228#0#11'ClientWidth'#3#231#0#8'TabOrder'#2#0#4
|
+'akBottom'#0#7'Caption'#6#10'Properties'#12'ClientHeight'#3#228#0#11'ClientW'
|
||||||
+'Left'#2#6#6'Height'#3#246#0#3'Top'#2#6#5'Width'#3#235#0#0#6'TLabel'#11'Labe'
|
+'idth'#3#231#0#8'TabOrder'#2#0#4'Left'#2#6#6'Height'#3#246#0#3'Top'#2#6#5'Wi'
|
||||||
+'lHeight'#7'Caption'#6#11'New height:'#5'Color'#7#6'clNone'#11'ParentColor'#8
|
+'dth'#3#235#0#0#6'TLabel'#11'LabelHeight'#7'Caption'#6#11'New height:'#5'Col'
|
||||||
+#4'Left'#2#16#6'Height'#2#14#3'Top'#2'2'#5'Width'#2';'#0#0#6'TLabel'#10'Labe'
|
+'or'#7#6'clNone'#11'ParentColor'#8#4'Left'#2#16#6'Height'#2#14#3'Top'#2'2'#5
|
||||||
+'lWidth'#7'Caption'#6#10'New width:'#5'Color'#7#6'clNone'#11'ParentColor'#8#4
|
+'Width'#2';'#0#0#6'TLabel'#10'LabelWidth'#7'Caption'#6#10'New width:'#5'Colo'
|
||||||
+'Left'#2#16#6'Height'#2#14#3'Top'#2#14#5'Width'#2'7'#0#0#5'TEdit'#10'EditHei'
|
+'r'#7#6'clNone'#11'ParentColor'#8#4'Left'#2#16#6'Height'#2#14#3'Top'#2#14#5
|
||||||
+'ght'#8'OnChange'#7#16'EditHeightChange'#9'OnKeyDown'#13#8'TabOrder'#2#0#4'T'
|
+'Width'#2'7'#0#0#5'TEdit'#10'EditHeight'#8'OnChange'#7#16'EditHeightChange'#9
|
||||||
+'ext'#6#3'512'#4'Left'#2'j'#6'Height'#2#23#3'Top'#2','#5'Width'#2'P'#0#0#5'T'
|
+'OnKeyDown'#13#8'TabOrder'#2#0#4'Text'#6#3'512'#4'Left'#2'j'#6'Height'#2#23#3
|
||||||
+'Edit'#9'EditWidth'#8'OnChange'#7#15'EditWidthChange'#9'OnKeyDown'#13#8'TabO'
|
+'Top'#2','#5'Width'#2'P'#0#0#5'TEdit'#9'EditWidth'#8'OnChange'#7#15'EditWidt'
|
||||||
+'rder'#2#1#4'Text'#6#3'512'#4'Left'#2'j'#6'Height'#2#23#3'Top'#2#8#5'Width'#2
|
+'hChange'#9'OnKeyDown'#13#8'TabOrder'#2#1#4'Text'#6#3'512'#4'Left'#2'j'#6'He'
|
||||||
+'P'#0#0#7'TUpDown'#12'UpDownHeight'#9'Associate'#7#10'EditHeight'#3'Min'#2#1
|
+'ight'#2#23#3'Top'#2#8#5'Width'#2'P'#0#0#7'TUpDown'#12'UpDownHeight'#9'Assoc'
|
||||||
+#3'Max'#3#0#16#8'Position'#3#0#2#9'Thousands'#8#4'Left'#3#186#0#6'Height'#2
|
+'iate'#7#10'EditHeight'#3'Min'#2#1#3'Max'#3#0#16#8'Position'#3#0#2#9'Thousan'
|
||||||
+#23#3'Top'#2','#5'Width'#2#17#0#0#7'TUpDown'#11'UpDownWidth'#9'Associate'#7#9
|
+'ds'#8#4'Left'#3#186#0#6'Height'#2#23#3'Top'#2','#5'Width'#2#17#0#0#7'TUpDow'
|
||||||
+'EditWidth'#3'Min'#2#1#3'Max'#3#0#16#8'Position'#3#0#2#9'Thousands'#8#4'Left'
|
+'n'#11'UpDownWidth'#9'Associate'#7#9'EditWidth'#3'Min'#2#1#3'Max'#3#0#16#8'P'
|
||||||
+#3#186#0#6'Height'#2#23#3'Top'#2#8#5'Width'#2#17#0#0#9'TCheckBox'#19'CheckBo'
|
+'osition'#3#0#2#9'Thousands'#8#4'Left'#3#186#0#6'Height'#2#23#3'Top'#2#8#5'W'
|
||||||
+'xAspectRatio'#7'Caption'#6#21'Preserve aspect ratio'#7'Checked'#9#7'OnClick'
|
+'idth'#2#17#0#0#9'TCheckBox'#19'CheckBoxAspectRatio'#7'Caption'#6#21'Preserv'
|
||||||
+#7#24'CheckBoxAspectRatioClick'#5'State'#7#9'cbChecked'#8'TabOrder'#2#2#4'Le'
|
+'e aspect ratio'#7'Checked'#9#7'OnClick'#7#24'CheckBoxAspectRatioClick'#5'St'
|
||||||
+'ft'#2#16#6'Height'#2#13#3'Top'#2'U'#5'Width'#2'x'#0#0#9'TGroupBox'#21'Group'
|
+'ate'#7#9'cbChecked'#8'TabOrder'#2#2#4'Left'#2#16#6'Height'#2#13#3'Top'#2'U'
|
||||||
+'BoxStretchMethod'#7'Caption'#6#14'Stretch method'#12'ClientHeight'#2'T'#11
|
+#5'Width'#2'x'#0#0#9'TGroupBox'#21'GroupBoxStretchMethod'#7'Caption'#6#14'St'
|
||||||
+'ClientWidth'#3#206#0#8'TabOrder'#2#3#4'Left'#2#10#6'Height'#2'f'#3'Top'#2't'
|
+'retch method'#12'ClientHeight'#2'T'#11'ClientWidth'#3#206#0#8'TabOrder'#2#3
|
||||||
+#5'Width'#3#210#0#0#12'TRadioButton'#19'RadioButtonTruncate'#7'Caption'#6#8
|
+#4'Left'#2#10#6'Height'#2'f'#3'Top'#2't'#5'Width'#3#210#0#0#12'TRadioButton'
|
||||||
+'Truncate'#7'Checked'#9#5'State'#7#9'cbChecked'#8'TabOrder'#2#0#4'Left'#2#16
|
+#19'RadioButtonTruncate'#7'Caption'#6#8'Truncate'#7'Checked'#9#5'State'#7#9
|
||||||
+#6'Height'#2#13#3'Top'#2#13#5'Width'#2'?'#0#0#12'TRadioButton'#17'RadioButto'
|
+'cbChecked'#8'TabOrder'#2#0#4'Left'#2#16#6'Height'#2#13#3'Top'#2#13#5'Width'
|
||||||
+'nSmooth'#7'Caption'#6#7'Smooth:'#7'Enabled'#8#8'TabOrder'#2#1#4'Left'#2#16#6
|
+#2'?'#0#0#12'TRadioButton'#17'RadioButtonSmooth'#7'Caption'#6#7'Smooth:'#7'E'
|
||||||
+'Height'#2#13#3'Top'#2','#5'Width'#2';'#0#0#9'TComboBox'#14'ComboBoxSmooth'
|
+'nabled'#8#8'TabOrder'#2#1#4'Left'#2#16#6'Height'#2#13#3'Top'#2','#5'Width'#2
|
||||||
+#16'AutoCompleteText'#11#22'cbactEndOfLineComplete'#20'cbactSearchAscending'
|
+';'#0#0#9'TComboBox'#14'ComboBoxSmooth'#16'AutoCompleteText'#11#22'cbactEndO'
|
||||||
+#0#7'Enabled'#8#9'ItemIndex'#2#1#13'Items.Strings'#1#6#10'Area pixel'#6#8'Bi'
|
+'fLineComplete'#20'cbactSearchAscending'#0#7'Enabled'#8#9'ItemIndex'#2#1#13
|
||||||
+'linear'#6#7'Bicubic'#0#9'MaxLength'#2#0#5'Style'#7#14'csDropDownList'#8'Tab'
|
+'Items.Strings'#1#6#10'Area pixel'#6#8'Bilinear'#6#7'Bicubic'#0#9'MaxLength'
|
||||||
+'Order'#2#2#4'Text'#6#8'Bilinear'#4'Left'#2'd'#6'Height'#2#21#3'Top'#2'&'#5
|
+#2#0#5'Style'#7#14'csDropDownList'#8'TabOrder'#2#2#4'Text'#6#8'Bilinear'#4'L'
|
||||||
+'Width'#2'`'#0#0#0#0#7'TButton'#12'ButtonCancel'#7'Anchors'#11#7'akRight'#8
|
+'eft'#2'd'#6'Height'#2#21#3'Top'#2'&'#5'Width'#2'`'#0#0#0#0#7'TButton'#12'Bu'
|
||||||
+'akBottom'#0#25'BorderSpacing.InnerBorder'#2#4#6'Cancel'#9#7'Caption'#6#6'Ca'
|
+'ttonCancel'#7'Anchors'#11#7'akRight'#8'akBottom'#0#25'BorderSpacing.InnerBo'
|
||||||
+'ncel'#11'ModalResult'#2#2#8'TabOrder'#2#1#4'Left'#3#165#0#6'Height'#2#25#3
|
+'rder'#2#4#6'Cancel'#9#7'Caption'#6#6'Cancel'#11'ModalResult'#2#2#8'TabOrder'
|
||||||
+'Top'#3#8#1#5'Width'#2'K'#0#0#7'TButton'#8'ButtonOK'#7'Anchors'#11#7'akRight'
|
+#2#1#4'Left'#3#165#0#6'Height'#2#25#3'Top'#3#8#1#5'Width'#2'K'#0#0#7'TButton'
|
||||||
+#8'akBottom'#0#25'BorderSpacing.InnerBorder'#2#4#7'Caption'#6#2'OK'#7'Defaul'
|
+#8'ButtonOK'#7'Anchors'#11#7'akRight'#8'akBottom'#0#25'BorderSpacing.InnerBo'
|
||||||
+'t'#9#11'ModalResult'#2#1#8'TabOrder'#2#2#4'Left'#2'T'#6'Height'#2#25#3'Top'
|
+'rder'#2#4#7'Caption'#6#2'OK'#7'Default'#9#11'ModalResult'#2#1#8'TabOrder'#2
|
||||||
+#3#8#1#5'Width'#2'K'#0#0#0
|
+#2#4'Left'#2'T'#6'Height'#2#25#3'Top'#3#8#1#5'Width'#2'K'#0#0#0
|
||||||
]);
|
]);
|
||||||
|
@ -55,6 +55,7 @@ type
|
|||||||
procedure EditHeightChange(Sender: TObject);
|
procedure EditHeightChange(Sender: TObject);
|
||||||
procedure EditWidthChange(Sender: TObject);
|
procedure EditWidthChange(Sender: TObject);
|
||||||
procedure CheckBoxAspectRatioClick(Sender: TObject);
|
procedure CheckBoxAspectRatioClick(Sender: TObject);
|
||||||
|
procedure FormCreate(Sender: TObject);
|
||||||
protected
|
protected
|
||||||
procedure Initialize; override;
|
procedure Initialize; override;
|
||||||
public
|
public
|
||||||
@ -65,7 +66,7 @@ var
|
|||||||
ResizeDialogForm: TResizeDialogForm;
|
ResizeDialogForm: TResizeDialogForm;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
uses IconStrConsts;
|
||||||
{ TResizeDialogForm }
|
{ TResizeDialogForm }
|
||||||
|
|
||||||
procedure TResizeDialogForm.EditHeightChange(Sender: TObject);
|
procedure TResizeDialogForm.EditHeightChange(Sender: TObject);
|
||||||
@ -103,6 +104,24 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TResizeDialogForm.FormCreate(Sender: TObject);
|
||||||
|
begin
|
||||||
|
Caption:=lieResizeDialog;
|
||||||
|
GroupBoxProperties.Caption:=lieGroupBoxProperties;
|
||||||
|
LabelWidth.Caption:=lieLabelNewWidth;
|
||||||
|
LabelHeight.Caption:=lieLabelNewHeight;
|
||||||
|
CheckBoxAspectRatio.Caption:=lieCheckBoxAspectRatio;
|
||||||
|
GroupBoxStretchMethod.Caption:=lieGroupBoxStretchMethod;
|
||||||
|
RadioButtonTruncate.Caption:=lieRadioButtonTruncate;
|
||||||
|
RadioButtonSmooth.Caption:=lieRadioButtonSmooth;
|
||||||
|
ComboBoxSmooth.Items.Clear;
|
||||||
|
ComboBoxSmooth.Items.Add(lieAreapixel);
|
||||||
|
ComboBoxSmooth.Items.Add(lieBilinear);
|
||||||
|
ComboBoxSmooth.Items.Add(lieBicubic);
|
||||||
|
ButtonOK.Caption:=lieButtonOK;
|
||||||
|
ButtonCancel.Caption:=lieButtonCancel;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TResizeDialogForm.Initialize;
|
procedure TResizeDialogForm.Initialize;
|
||||||
begin
|
begin
|
||||||
UpDownWidth.Position := Picture.Width;
|
UpDownWidth.Position := Picture.Width;
|
||||||
@ -125,3 +144,4 @@ initialization
|
|||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ type
|
|||||||
|
|
||||||
var
|
var
|
||||||
ResizePaperDialogForm: TResizePaperDialogForm;
|
ResizePaperDialogForm: TResizePaperDialogForm;
|
||||||
Preview: TPictureEdit;
|
Preview: TPictureView;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
uses IconStrConsts;
|
uses IconStrConsts;
|
||||||
@ -80,7 +80,7 @@ uses IconStrConsts;
|
|||||||
|
|
||||||
procedure TResizePaperDialogForm.FormCreate(Sender: TObject);
|
procedure TResizePaperDialogForm.FormCreate(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
Preview := TPictureEdit.Create(PanelPreview);
|
Preview := TPictureView.Create(PanelPreview);
|
||||||
Preview.Parent := PanelPreview;
|
Preview.Parent := PanelPreview;
|
||||||
Preview.Align := alClient;
|
Preview.Align := alClient;
|
||||||
|
|
||||||
@ -93,8 +93,16 @@ begin
|
|||||||
ColorButtonPaper.Caption:=lieColorButtonPaper;
|
ColorButtonPaper.Caption:=lieColorButtonPaper;
|
||||||
ButtonOK.Caption:=lieButtonOK;
|
ButtonOK.Caption:=lieButtonOK;
|
||||||
ButtonCancel.Caption:=lieButtonCancel;
|
ButtonCancel.Caption:=lieButtonCancel;
|
||||||
// Todo ComboBoxPicturePosition
|
ComboBoxPicturePosition.Items.Clear;
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieTopLeft);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieTopCenter);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieTopRight);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieCenterLeft);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieCentered);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieCenterRight);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieBottomLeft);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieBottomCenter);
|
||||||
|
ComboBoxPicturePosition.Items.Add(lieBottomRight);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TResizePaperDialogForm.EditHeightChange(Sender: TObject);
|
procedure TResizePaperDialogForm.EditHeightChange(Sender: TObject);
|
||||||
@ -210,3 +218,4 @@ initialization
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user