small ElfViewer display updates

This commit is contained in:
georgemoralis 2023-05-03 19:56:18 +03:00
parent dda7020ef4
commit 701278348d
1 changed files with 10 additions and 0 deletions

View File

@ -10,6 +10,8 @@ ElfViewer::ElfViewer(Elf* elf)
void ElfViewer::display(bool enabled) void ElfViewer::display(bool enabled)
{ {
ImGui::Begin("Self/Elf Viewer", &enabled); ImGui::Begin("Self/Elf Viewer", &enabled);
//
ImGui::BeginChild("Left Tree pane", ImVec2(150, 0), false);//left tree
if (elf->isSelfFile()) if (elf->isSelfFile())
{ {
if (ImGui::TreeNode("Self")) if (ImGui::TreeNode("Self"))
@ -56,6 +58,14 @@ void ElfViewer::display(bool enabled)
} }
ImGui::TreePop(); ImGui::TreePop();
} }
ImGui::EndChild();//end of left tree
ImGui::SameLine();
ImGui::BeginChild("Table View", ImVec2(0, -ImGui::GetFrameHeightWithSpacing())); // Leave room for 1 line below us
ImGui::EndChild();
ImGui::End(); ImGui::End();
} }