disassembly and new font

This commit is contained in:
T0b1
2023-06-03 21:58:56 +02:00
parent 4f0f320ac4
commit 343a30289c
15 changed files with 3631 additions and 32 deletions

View File

@@ -23,6 +23,7 @@ Frontend::Frontend()
_windows.push_back(Window::create_regs(window_id++));
_windows.push_back(Window::create_threads(window_id++));
_windows.push_back(Window::create_frames(window_id++));
_windows.push_back(Window::create_disas(window_id++));
}
void Frontend::run_frame()
@@ -68,14 +69,21 @@ void Frontend::run_frame()
ImGui::DockSpace(this->dock_id, ImVec2{0, 0},
ImGuiDockNodeFlags_PassthruCentralNode);
for (auto &window : _windows)
size_t window_idx = 0;
while (window_idx < _windows.size())
{
window.draw(*this);
auto &window = _windows[window_idx];
if (window.draw(*this))
{
_windows.erase(_windows.begin() + window_idx);
} else
{
window_idx++;
}
//this->dock_id = ImGui::GetWindowDockID();
}
ImGui::End();
}
ImGui::End();
this->draw_status();
}
@@ -225,8 +233,8 @@ void Frontend::draw_status()
ImGui::Text("Happy status bar");
ImGui::EndMenuBar();
}
ImGui::End();
}
ImGui::End();
}
void Frontend::draw_open_popup()
@@ -305,6 +313,15 @@ void Frontend::handle_msgs()
this->handle_frame_remove(
std::get<BackToFront::FrameRemoved>(msg->data));
break;
case data_result:
{
const auto &result = std::get<BackToFront::DataResult>(msg->data);
printf("Result ID: %lu\n", result.result.id);
for (auto &window : _windows)
{
window.handle_data_res(result);
}
}
}
}
}