Add undo/redo/copy/paste icons

This commit is contained in:
Ben Olden-Cooligan 2024-03-04 20:57:23 -08:00
parent 72bf30403b
commit 4af10c5e86
7 changed files with 56 additions and 1 deletions

View File

@ -308,22 +308,25 @@ public class DesktopCommands
Copy = new ActionCommand(desktopController.Copy)
{
Text = UiStrings.Copy,
Image = iconProvider.GetIcon("copy"),
Shortcut = Application.Instance.CommonModifier | Keys.C
};
Paste = new ActionCommand(desktopController.Paste)
{
Text = UiStrings.Paste,
Image = iconProvider.GetIcon("paste"),
Shortcut = Application.Instance.CommonModifier | Keys.V
};
// TODO: Undo/redo icons?
Undo = new ActionCommand(imageListActions.Undo)
{
Text = UiStrings.Undo,
Image = iconProvider.GetIcon("undo"),
Shortcut = Application.Instance.CommonModifier | Keys.Z
};
Redo = new ActionCommand(imageListActions.Redo)
{
Text = UiStrings.Redo,
Image = iconProvider.GetIcon("redo"),
Shortcut = EtoPlatform.Current.IsWinForms
? Application.Instance.CommonModifier | Keys.Y
: Application.Instance.CommonModifier | Keys.Shift | Keys.Z

View File

@ -419,6 +419,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] copy {
get {
object obj = ResourceManager.GetObject("copy", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
@ -619,6 +629,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] paste {
get {
object obj = ResourceManager.GetObject("paste", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
@ -709,6 +729,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] redo {
get {
object obj = ResourceManager.GetObject("redo", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
@ -879,6 +909,16 @@ namespace NAPS2 {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] undo {
get {
object obj = ResourceManager.GetObject("undo", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>

View File

@ -388,4 +388,16 @@
<data name="zoom_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\zoom-small.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\copy.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="paste" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\paste.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="undo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\undo.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="redo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>Icons\redo.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

BIN
NAPS2.Lib/Icons/copy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

BIN
NAPS2.Lib/Icons/paste.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

BIN
NAPS2.Lib/Icons/redo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
NAPS2.Lib/Icons/undo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB