IDEIntf/ImageListEditor: more consistent naming, dedicated icon set by Roland Hahn.

This commit is contained in:
wp_xyz 2024-07-06 17:45:48 +02:00
parent ff3175bce6
commit e4372edcea
73 changed files with 70 additions and 36 deletions

View File

@ -10,9 +10,9 @@ object ImageListEditorDlg: TImageListEditorDlg
Position = poScreenCenter
ShowHint = True
LCLVersion = '3.99.0.0'
OnActivate = FormActivate
OnClose = FormClose
OnCreate = FormCreate
OnResize = FormResize
object GroupBoxR: TGroupBox
Left = 219
Height = 354
@ -233,10 +233,10 @@ object ImageListEditorDlg: TImageListEditorDlg
Caption = 'tbSeparator3'
Style = tbsDivider
end
object tbSizes: TToolButton
object tbResolutions: TToolButton
Left = 412
Top = 0
Caption = 'tbSizes'
Caption = 'tbResolutions'
DropdownMenu = SizesPopupMenu
Style = tbsButtonDrop
end
@ -317,10 +317,10 @@ object ImageListEditorDlg: TImageListEditorDlg
Left = 88
Top = 312
object mNewSize: TMenuItem
Action = acNewIconSize
Action = acNewResolution
end
object mDeleteSize: TMenuItem
Action = acDeleteIconSize
Action = acDeleteResolution
end
end
object ActionList: TActionList
@ -386,15 +386,15 @@ object ImageListEditorDlg: TImageListEditorDlg
Caption = 'acSaveAll'
OnExecute = acSaveOneOrAllExecute
end
object acNewIconSize: TAction
Category = 'Sizes'
object acNewResolution: TAction
Category = 'Resolutions'
Caption = 'acNewIconSize'
OnExecute = acNewIconSizeExecute
OnExecute = acNewResolutionExecute
end
object acDeleteIconSize: TAction
Category = 'Sizes'
object acDeleteResolution: TAction
Category = 'Resolutions'
Caption = 'acDeleteIconSize'
OnExecute = acDeleteIconSizeExecute
OnExecute = acDeleteResolutionExecute
end
end
end

View File

@ -67,8 +67,8 @@ type
acMoveDown: TAction;
acSave: TAction;
acSaveAll: TAction;
acNewIconSize: TAction;
acDeleteIconSize: TAction;
acNewResolution: TAction;
acDeleteResolution: TAction;
ActionList: TActionList;
BtnPanel: TButtonPanel;
ColorBoxTransparent: TColorBox;
@ -110,23 +110,23 @@ type
tbSeparator1: TToolButton;
tbSeparator2: TToolButton;
tbSeparator3: TToolButton;
tbSizes: TToolButton;
tbResolutions: TToolButton;
procedure acAddExecute(Sender: TObject);
procedure acAddSlicedExecute(Sender: TObject);
procedure acClearExecute(Sender: TObject);
procedure acDeleteExecute(Sender: TObject);
procedure acDeleteIconSizeExecute(Sender: TObject);
procedure acDeleteResolutionExecute(Sender: TObject);
procedure acMoveUpDownExecute(Sender: TObject);
procedure acNewIconSizeExecute(Sender: TObject);
procedure acNewResolutionExecute(Sender: TObject);
procedure acPasteFromClipboardExecute(Sender: TObject);
procedure acReplaceAllExecute(Sender: TObject);
procedure acReplaceSingleExecute(Sender: TObject);
procedure acSaveOneOrAllExecute(Sender: TObject);
procedure btnApplyClick(Sender: TObject);
procedure ColorBoxTransparentClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure FormClose(Sender: TObject; var {%H-}CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure ImageListBoxDrawItem(Control: TWinControl; Index: Integer;
ARect: TRect; {%H-}State: TOwnerDrawState);
procedure ImageListBoxSelectionChange(Sender: TObject; {%H-}User: boolean);
@ -280,6 +280,11 @@ end;
{ TImageListEditorDlg }
procedure TImageListEditorDlg.FormActivate(Sender: TObject);
begin
UpdateMenus;
end;
procedure TImageListEditorDlg.FormClose(Sender: TObject;
var CloseAction: TCloseAction);
begin
@ -302,7 +307,7 @@ begin
tbReplace.Caption := sccsILEdtReplace;
tbRemove.Caption := sccsILEdtRemove;
tbSave.Caption := sccsILEdtSaveBtn;
tbSizes.Caption := sccsILEdtResolutionsBtn;
tbResolutions.Caption := sccsILEdtResolutionsBtn;
acAddSingle.Caption := sccsILEdtAddSingleResolution;
acAddMultiple.Caption := sccsILEdtAddMoreResolutions;
acAddSliced.Caption := sccsILEdtAddSliced;
@ -315,20 +320,27 @@ begin
acMoveDown.Caption := sccsILEdtMoveDown;
acSave.Caption := sccsILEdtSave;
acSaveAll.Caption := sccsILEdtSaveAll;
acNewIconSize.Caption := sccsILEdtAddNewResolution;
acDeleteIconSize.Caption := sccsILEdtDeleteResolution;
acNewResolution.Caption := sccsILEdtAddNewResolution;
acDeleteResolution.Caption := sccsILEdtDeleteResolution;
tbAdd.ImageIndex := IDEImages.GetImageIndex('laz_add', 16);
acAddSingle.ImageIndex := IDEImages.GetImageIndex('add_icon_single', 16);
acAddMultiple.ImageIndex := IDEImages.GetImageIndex('add_icon_multiple', 16);
acPasteFromClipboard.ImageIndex := IDEImages.GetImageIndex('add_icon_from_clipboard', 16);
tbReplace.ImageIndex := IDEImages.GetImageIndex('laz_refresh', 16);
acReplaceSingle.ImageIndex := IDEImages.GetImageIndex('replace_icon_single', 16);
acReplaceAll.ImageIndex := IDEImages.GetImageIndex('replace_icon_multiple', 16);
tbRemove.ImageIndex := IDEImages.GetImageIndex('laz_delete', 16);
acDelete.ImageIndex := IDEImages.GetImageIndex('item_delete', 16);
acClear.ImageIndex := IDEImages.GetImageIndex('menu_clean', 16);
acMoveUp.ImageIndex := IDEImages.GetImageIndex('arrow_up', 16); //'item_up', 16);
acMoveDown.ImageIndex := IDEImages.GetImageIndex('arrow_down', 16); //'item_down', 16);
acDelete.ImageIndex := IDEImages.GetImageIndex('remove_icon_single', 16);
acClear.ImageIndex := IDEImages.GetImageIndex('remove_icon_multiple', 16);
acMoveUp.ImageIndex := IDEImages.GetImageIndex('arrow_up', 16);
acMoveDown.ImageIndex := IDEImages.GetImageIndex('arrow_down', 16);
tbSave.ImageIndex := IDEImages.GetImageIndex('laz_save', 16);
acSave.ImageIndex := IDEImages.GetImageIndex('menu_saveas', 16);
acSaveAll.ImageIndex := IDEImages.GetImageIndex('menu_save_all', 16);
tbSizes.ImageIndex := IDEImages.GetImageIndex('menu_compile', 16);
tbResolutions.ImageIndex := IDEImages.GetImageIndex('oi_options', 16);
acNewResolution.ImageIndex := IDEImages.GetImageIndex('resolution_add', 16);
acDeleteResolution.ImageIndex := IDEImages.GetImageIndex('resolution_remove', 16);
GroupBoxL.Caption := sccsILEdtGrpLCaption;
GroupBoxR.Caption := sccsILEdtGrpRCaption;
@ -354,13 +366,6 @@ begin
OpenDialog.Title := sccsILEdtOpenDialog;
SaveDialog.Title := sccsILEdtSaveDialog;
IDEDialogLayoutList.ApplyLayout(Self);
UpdateMenus;
end;
procedure TImageListEditorDlg.FormResize(Sender: TObject);
begin
// UpdateImagesGroupBoxWidth;
end;
procedure TImageListEditorDlg.FreeGlyphInfos;
@ -497,7 +502,7 @@ begin
ImageListBox.SetFocus;
end;
procedure TImageListEditorDlg.acDeleteIconSizeExecute(Sender: TObject);
procedure TImageListEditorDlg.acDeleteResolutionExecute(Sender: TObject);
var
TD: LCLTaskDialog.TTaskDialog;
R: TCustomImageListResolution;
@ -568,7 +573,7 @@ begin
end;
end;
procedure TImageListEditorDlg.acNewIconSizeExecute(Sender: TObject);
procedure TImageListEditorDlg.acNewResolutionExecute(Sender: TObject);
var
R: Longint;
Res: TDragImageListResolution;
@ -585,7 +590,6 @@ begin
Res.AutoCreatedInDesignTime := False;
RefreshItemHeight;
ImageListBox.Repaint;
// UpdateImagesGroupBoxWidth;
UpdateMenus;
end;
@ -860,8 +864,11 @@ end;
procedure TImageListEditorDlg.UpdateMenus;
var
multipleRes: Boolean;
nRes: Integer;
begin
multipleRes := ImageList.ResolutionCount > 1;
nRes := ImageList.ResolutionCount;
if (ImageList.Count = 0) then inc(nRes); // In this case ResolutionCount is not correct.
multipleRes := nRes > 1;
acAddMultiple.Visible := multipleRes;
acReplaceAll.Visible := multipleRes;
if multipleRes then

View File

@ -40,6 +40,33 @@ new_subitem_200.png
oi_options.png
oi_options_150.png
oi_options_200.png
imagelisteditor/add_icon_from_clipboard.png
imagelisteditor/add_icon_from_clipboard_150.png
imagelisteditor/add_icon_from_clipboard_200.png
imagelisteditor/add_icon_multiple.png
imagelisteditor/add_icon_multiple_150.png
imagelisteditor/add_icon_multiple_200.png
imagelisteditor/add_icon_single.png
imagelisteditor/add_icon_single_150.png
imagelisteditor/add_icon_single_200.png
imagelisteditor/remove_icon_multiple.png
imagelisteditor/remove_icon_multiple_150.png
imagelisteditor/remove_icon_multiple_200.png
imagelisteditor/remove_icon_single.png
imagelisteditor/remove_icon_single_150.png
imagelisteditor/remove_icon_single_200.png
imagelisteditor/replace_icon_multiple.png
imagelisteditor/replace_icon_multiple_150.png
imagelisteditor/replace_icon_multiple_200.png
imagelisteditor/replace_icon_single.png
imagelisteditor/replace_icon_single_150.png
imagelisteditor/replace_icon_single_200.png
imagelisteditor/resolution_add.png
imagelisteditor/resolution_add_150.png
imagelisteditor/resolution_add_200.png
imagelisteditor/resolution_remove.png
imagelisteditor/resolution_remove_150.png
imagelisteditor/resolution_remove_200.png
propertygrid/issue_carbon.png
propertygrid/issue_carbon_150.png
propertygrid/issue_carbon_200.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 928 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB