IDEIntf/ImageListEditor: more consistent naming, dedicated icon set by Roland Hahn.
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
After Width: | Height: | Size: 622 B |
|
After Width: | Height: | Size: 1004 B |
|
After Width: | Height: | Size: 1.3 KiB |
BIN
components/ideintf/images/imagelisteditor/add_icon_multiple.png
Normal file
|
After Width: | Height: | Size: 550 B |
|
After Width: | Height: | Size: 928 B |
|
After Width: | Height: | Size: 1.0 KiB |
BIN
components/ideintf/images/imagelisteditor/add_icon_single.png
Normal file
|
After Width: | Height: | Size: 517 B |
|
After Width: | Height: | Size: 873 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 830 B |
|
After Width: | Height: | Size: 1.0 KiB |
BIN
components/ideintf/images/imagelisteditor/remove_icon_single.png
Normal file
|
After Width: | Height: | Size: 501 B |
|
After Width: | Height: | Size: 769 B |
|
After Width: | Height: | Size: 1008 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 769 B |
|
After Width: | Height: | Size: 871 B |
|
After Width: | Height: | Size: 452 B |
|
After Width: | Height: | Size: 696 B |
|
After Width: | Height: | Size: 827 B |
BIN
components/ideintf/images/imagelisteditor/resolution_add.png
Normal file
|
After Width: | Height: | Size: 422 B |
BIN
components/ideintf/images/imagelisteditor/resolution_add_150.png
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
components/ideintf/images/imagelisteditor/resolution_add_200.png
Normal file
|
After Width: | Height: | Size: 751 B |
BIN
components/ideintf/images/imagelisteditor/resolution_remove.png
Normal file
|
After Width: | Height: | Size: 425 B |
|
After Width: | Height: | Size: 652 B |
|
After Width: | Height: | Size: 762 B |
BIN
images/general_purpose/Arrow_49_16.png
Normal file
|
After Width: | Height: | Size: 346 B |
BIN
images/general_purpose/Arrow_49_24.png
Normal file
|
After Width: | Height: | Size: 462 B |
BIN
images/general_purpose/Arrow_49_32.png
Normal file
|
After Width: | Height: | Size: 444 B |
BIN
images/general_purpose/Arrow_49_36.png
Normal file
|
After Width: | Height: | Size: 528 B |
BIN
images/general_purpose/Arrow_49_48.png
Normal file
|
After Width: | Height: | Size: 659 B |
BIN
images/general_purpose/Arrow_49_64.png
Normal file
|
After Width: | Height: | Size: 874 B |
BIN
images/general_purpose/Arrow_50_16.png
Normal file
|
After Width: | Height: | Size: 344 B |
BIN
images/general_purpose/Arrow_50_24.png
Normal file
|
After Width: | Height: | Size: 460 B |
BIN
images/general_purpose/Arrow_50_32.png
Normal file
|
After Width: | Height: | Size: 444 B |
BIN
images/general_purpose/Arrow_50_36.png
Normal file
|
After Width: | Height: | Size: 527 B |
BIN
images/general_purpose/Arrow_50_48.png
Normal file
|
After Width: | Height: | Size: 648 B |
BIN
images/general_purpose/Arrow_50_64.png
Normal file
|
After Width: | Height: | Size: 883 B |
BIN
images/general_purpose/Arrow_51_16.png
Normal file
|
After Width: | Height: | Size: 333 B |
BIN
images/general_purpose/Arrow_51_24.png
Normal file
|
After Width: | Height: | Size: 448 B |
BIN
images/general_purpose/Arrow_51_32.png
Normal file
|
After Width: | Height: | Size: 460 B |
BIN
images/general_purpose/Arrow_51_36.png
Normal file
|
After Width: | Height: | Size: 525 B |
BIN
images/general_purpose/Arrow_51_48.png
Normal file
|
After Width: | Height: | Size: 647 B |
BIN
images/general_purpose/Arrow_51_64.png
Normal file
|
After Width: | Height: | Size: 894 B |
BIN
images/general_purpose/Arrow_52_16.png
Normal file
|
After Width: | Height: | Size: 342 B |
BIN
images/general_purpose/Arrow_52_24.png
Normal file
|
After Width: | Height: | Size: 459 B |
BIN
images/general_purpose/Arrow_52_32.png
Normal file
|
After Width: | Height: | Size: 485 B |
BIN
images/general_purpose/Arrow_52_36.png
Normal file
|
After Width: | Height: | Size: 555 B |
BIN
images/general_purpose/Arrow_52_48.png
Normal file
|
After Width: | Height: | Size: 705 B |
BIN
images/general_purpose/Arrow_52_64.png
Normal file
|
After Width: | Height: | Size: 886 B |
BIN
images/general_purpose/Arrow_53_16.png
Normal file
|
After Width: | Height: | Size: 364 B |
BIN
images/general_purpose/Arrow_53_24.png
Normal file
|
After Width: | Height: | Size: 392 B |
BIN
images/general_purpose/Arrow_53_32.png
Normal file
|
After Width: | Height: | Size: 425 B |
BIN
images/general_purpose/Arrow_53_36.png
Normal file
|
After Width: | Height: | Size: 443 B |
BIN
images/general_purpose/Arrow_53_48.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
images/general_purpose/Arrow_53_64.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
images/general_purpose/Remove_10_16.png
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
images/general_purpose/Remove_10_24.png
Normal file
|
After Width: | Height: | Size: 398 B |
BIN
images/general_purpose/Remove_10_32.png
Normal file
|
After Width: | Height: | Size: 496 B |
BIN
images/general_purpose/Remove_10_36.png
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
images/general_purpose/Remove_10_48.png
Normal file
|
After Width: | Height: | Size: 637 B |
BIN
images/general_purpose/Remove_10_64.png
Normal file
|
After Width: | Height: | Size: 820 B |
BIN
images/general_purpose/Replace_08_16.png
Normal file
|
After Width: | Height: | Size: 364 B |
BIN
images/general_purpose/Replace_08_24.png
Normal file
|
After Width: | Height: | Size: 503 B |
BIN
images/general_purpose/Replace_08_32.png
Normal file
|
After Width: | Height: | Size: 579 B |
BIN
images/general_purpose/Replace_08_36.png
Normal file
|
After Width: | Height: | Size: 717 B |
BIN
images/general_purpose/Replace_08_48.png
Normal file
|
After Width: | Height: | Size: 911 B |
BIN
images/general_purpose/Replace_08_64.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |