1
0
mirror of synced 2025-02-20 04:01:01 +01:00

ux: Added "Open Other" option to open other providers to File menu

This commit is contained in:
WerWolv 2021-12-12 11:53:56 +01:00
parent b2a9965617
commit caf9ee0c58
5 changed files with 18 additions and 3 deletions

View File

@ -462,6 +462,17 @@ namespace hex::plugin::builtin {
ImGui::EndMenu();
}
if (ImGui::BeginMenu("hex.builtin.view.hexeditor.menu.file.open_other"_lang)) {
for (const auto &unlocalizedProviderName : ContentRegistry::Provider::getEntries()) {
if (ImGui::MenuItem(LangEntry(unlocalizedProviderName))) {
EventManager::post<RequestCreateProvider>(unlocalizedProviderName, nullptr);
}
}
ImGui::EndMenu();
}
if (ImGui::MenuItem("hex.builtin.view.hexeditor.menu.file.save"_lang, "CTRL + S", false, providerValid && provider->isWritable())) {
save();
}

View File

@ -184,7 +184,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hexeditor.script.file.title", "Loader Script: Datei öffnen" },
{ "hex.builtin.view.hexeditor.menu.file.open_file", "Datei öffnen..." },
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "Kürzlich geöffnete Dateien"},
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "Kürzlich geöffnete Dateien" },
{ "hex.builtin.view.hexeditor.menu.file.open_other", "Provider öffnen..." },
{ "hex.builtin.view.hexeditor.menu.file.save", "Speichern" },
{ "hex.builtin.view.hexeditor.menu.file.save_as", "Speichern unter..." },
{ "hex.builtin.view.hexeditor.menu.file.close", "Schliessen" },

View File

@ -187,7 +187,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hexeditor.script.file.title", "Loader Script: Open File" },
{ "hex.builtin.view.hexeditor.menu.file.open_file", "Open File..." },
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "Open Recent"},
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "Open Recent" },
{ "hex.builtin.view.hexeditor.menu.file.open_other", "Open Other..." },
{ "hex.builtin.view.hexeditor.menu.file.save", "Save" },
{ "hex.builtin.view.hexeditor.menu.file.save_as", "Save As..." },
{ "hex.builtin.view.hexeditor.menu.file.close", "Close" },

View File

@ -168,6 +168,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hexeditor.create_file", "Nuovo" },
{ "hex.builtin.view.hexeditor.open_file", "Apri" },
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "File recenti" },
//{ "hex.builtin.view.hexeditor.menu.file.open_other", "Open Other..." },
{ "hex.builtin.view.hexeditor.open_project", "Apri i Progetti" },
{ "hex.builtin.view.hexeditor.save_project", "Salva i Progetti" },
{ "hex.builtin.view.hexeditor.save_data", "Salva i Dati" },

View File

@ -184,7 +184,8 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.hexeditor.script.file.title", "加载器脚本:打开文件" },
{ "hex.builtin.view.hexeditor.menu.file.open_file", "打开文件..." },
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "打开最近"},
{ "hex.builtin.view.hexeditor.menu.file.open_recent", "打开最近" },
//{ "hex.builtin.view.hexeditor.menu.file.open_other", "Open Other..." },
{ "hex.builtin.view.hexeditor.menu.file.save", "保存" },
{ "hex.builtin.view.hexeditor.menu.file.save_as", "另存为..." },
{ "hex.builtin.view.hexeditor.menu.file.close", "关闭" },