ux: Added "Open Other" option to open other providers to File menu
This commit is contained in:
parent
b2a9965617
commit
caf9ee0c58
@ -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();
|
||||
}
|
||||
|
@ -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" },
|
||||
|
@ -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" },
|
||||
|
@ -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" },
|
||||
|
@ -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", "关闭" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user