1
0
mirror of synced 2024-11-25 08:10:24 +01:00

feat: Added find view reset button

This commit is contained in:
WerWolv 2022-09-13 14:22:18 +02:00
parent bda4aadc54
commit 5b00c8ee08
9 changed files with 18 additions and 0 deletions

View File

@ -524,6 +524,16 @@ namespace hex::plugin::builtin {
ImGui::SameLine();
ImGui::TextFormatted("hex.builtin.view.find.search.entries"_lang, this->m_foundOccurrences[provider].size());
ImGui::BeginDisabled(this->m_foundOccurrences[provider].empty());
{
if (ImGui::Button("hex.builtin.view.find.search.reset"_lang)) {
this->m_foundOccurrences[provider].clear();
this->m_sortedOccurrences[provider].clear();
this->m_occurrenceTree[provider].clear();
}
}
ImGui::EndDisabled();
}
ImGui::EndDisabled();

View File

@ -421,6 +421,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.find.context.copy", "Wert Kopieren" },
{ "hex.builtin.view.find.context.copy_demangle", "Demangled Wert Kopieren" },
{ "hex.builtin.view.find.search.entries", "{} Einträge gefunden" },
{ "hex.builtin.view.find.search.reset", "Zurücksetzen" },
{ "hex.builtin.command.calc.desc", "Rechner" },
{ "hex.builtin.command.cmd.desc", "Command" },

View File

@ -427,6 +427,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.find.context.copy", "Copy Value" },
{ "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
{ "hex.builtin.view.find.search.entries", "{} entries found" },
{ "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "Calculator" },

View File

@ -426,6 +426,7 @@ namespace hex::plugin::builtin {
// { "hex.builtin.view.find.context.copy", "Copy Value" },
// { "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
// { "hex.builtin.view.find.search.entries", "{} entries found" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "Calcolatrice" },
{ "hex.builtin.command.cmd.desc", "Comando" },

View File

@ -429,6 +429,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.find.context.copy", "値をコピー" },
// { "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
{ "hex.builtin.view.find.search.entries", "一致件数: {}" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "電卓" },
{ "hex.builtin.command.cmd.desc", "コマンド" },

View File

@ -426,6 +426,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.find.context.copy", "값 복사" },
{ "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
{ "hex.builtin.view.find.search.entries", "{} 개 검색됨" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "계산기" },

View File

@ -424,6 +424,7 @@ namespace hex::plugin::builtin {
// { "hex.builtin.view.find.context.copy", "Copy Value" },
// { "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
// { "hex.builtin.view.find.search.entries", "{} entries found" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "Calculadora" },
{ "hex.builtin.command.cmd.desc", "Comando" },

View File

@ -427,6 +427,7 @@ namespace hex::plugin::builtin {
{ "hex.builtin.view.find.context.copy", "复制值" },
{ "hex.builtin.view.find.context.copy_demangle", "复制值的还原名" },
{ "hex.builtin.view.find.search.entries", "{} 个结果" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "计算器" },
{ "hex.builtin.command.cmd.desc", "指令" },

View File

@ -425,6 +425,7 @@ namespace hex::plugin::builtin {
// { "hex.builtin.view.find.context.copy", "Copy Value" },
// { "hex.builtin.view.find.context.copy_demangle", "Copy Demangled Value" },
// { "hex.builtin.view.find.search.entries", "{} entries found" },
// { "hex.builtin.view.find.search.reset", "Reset" },
{ "hex.builtin.command.calc.desc", "計算機" },
{ "hex.builtin.command.cmd.desc", "命令" },