44 ImGui::Text(
"Command stack not initialized");
50 ImGui::Text(
"Undo Stack Size: %zu",
cmdStack->GetUndoStackSize());
51 ImGui::Text(
"Redo Stack Size: %zu",
cmdStack->GetRedoStackSize());
56 ImGui::Text(
"Undo History:");
57 ImGui::BeginChild(
"UndoHistory",
ImVec2(0, 200),
true);
69 ImGui::PopStyleColor();
81 ImGui::TextColored(
ImVec4(0.7f, 0.7f, 0.7f, 1.0f),
"No commands to undo");
89 ImGui::Text(
"Redo History:");
90 ImGui::BeginChild(
"RedoHistory",
ImVec2(0, 150),
true);
95 ImGui::PushID(
i + 1000);
102 ImGui::TextColored(
ImVec4(0.7f, 0.7f, 0.7f, 1.0f),
"No commands to redo");
110 ImGui::BeginDisabled(!
backend.CanUndo());
111 if (ImGui::Button(
"Undo",
ImVec2(120, 0)))
115 ImGui::EndDisabled();
119 ImGui::BeginDisabled(!
backend.CanRedo());
120 if (ImGui::Button(
"Redo",
ImVec2(120, 0)))
124 ImGui::EndDisabled();
128 if (ImGui::Button(
"Clear History",
ImVec2(120, 0)))