1
0
mirror of synced 2025-02-17 18:59:21 +01:00

feat: Added Copy as -> Address option to Edit menu

Closes #725
This commit is contained in:
WerWolv 2022-09-04 14:23:09 +02:00
parent d9a47fe815
commit 22b6bdb5cf
10 changed files with 14 additions and 4 deletions

@ -1 +1 @@
Subproject commit b4e973c3103a9244f2f304d55a7720a956a67f4e
Subproject commit 912af51d2b8e8173f1861fc77f289a1501acb27f

View File

@ -1526,6 +1526,8 @@ namespace hex::plugin::builtin {
if (ImGui::BeginMenu("hex.builtin.view.hex_editor.menu.edit.copy_as"_lang, selection.has_value() && providerValid)) {
if (ImGui::MenuItem("hex.builtin.view.hex_editor.copy.hex"_lang, "CTRL + SHIFT + C"))
copyString(*selection);
if (ImGui::MenuItem("hex.builtin.view.hex_editor.copy.address"_lang))
ImGui::SetClipboardText(hex::format("0x{:08X}", selection->getStartAddress()).c_str());
ImGui::Separator();

View File

@ -285,7 +285,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.file.save_as", "Speichern unter..." },
{ "hex.builtin.view.hex_editor.menu.edit.copy", "Kopieren" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "Kopieren als..." },
{ "hex.builtin.view.hex_editor.copy.hex", "String" },
{ "hex.builtin.view.hex_editor.copy.hex", "Hex String" },
{ "hex.builtin.view.hex_editor.copy.address", "Adresse" },
{ "hex.builtin.view.hex_editor.copy.c", "C Array" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# Array" },

View File

@ -288,7 +288,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.file.save_as", "Save As..." },
{ "hex.builtin.view.hex_editor.menu.edit.copy", "Copy" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copy as..." },
{ "hex.builtin.view.hex_editor.copy.hex", "String" },
{ "hex.builtin.view.hex_editor.copy.hex", "Hex String" },
{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C Array" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# Array" },

View File

@ -289,7 +289,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.file.save_as", "Salva come..." },
{ "hex.builtin.view.hex_editor.menu.edit.copy", "Copia" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copia come..." },
{ "hex.builtin.view.hex_editor.copy.hex", "Stringa" },
{ "hex.builtin.view.hex_editor.copy.hex", "Hex Stringa" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C Array" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# Array" },

View File

@ -289,6 +289,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.edit.copy", "コピー" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "〜としてコピー…" },
{ "hex.builtin.view.hex_editor.copy.hex", "文字列" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C 配列" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ 配列" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# 配列" },

View File

@ -289,6 +289,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.edit.copy", "복사" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "다른 방법으로 복사..." },
{ "hex.builtin.view.hex_editor.copy.hex", "문자열" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C 배열" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ 배열" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# 배열" },

View File

@ -287,6 +287,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.edit.copy", "Copiar" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "Copiar como..." },
{ "hex.builtin.view.hex_editor.copy.hex", "String" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C Array" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ Array" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# Array" },

View File

@ -290,6 +290,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.edit.copy", "复制" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "复制为..." },
{ "hex.builtin.view.hex_editor.copy.hex", "字符串" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C 数组" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ 数组" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# 数组" },

View File

@ -287,6 +287,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hex_editor.menu.edit.copy", "複製" },
{ "hex.builtin.view.hex_editor.menu.edit.copy_as", "複製為..." },
{ "hex.builtin.view.hex_editor.copy.hex", "字串" },
//{ "hex.builtin.view.hex_editor.copy.address", "Address" },
{ "hex.builtin.view.hex_editor.copy.c", "C 陣列" },
{ "hex.builtin.view.hex_editor.copy.cpp", "C++ 陣列" },
{ "hex.builtin.view.hex_editor.copy.csharp", "C# 陣列" },