16 lines
655 B
C++
16 lines
655 B
C++
|
|
// Step 22: Undo/Redo UI.
|
||
|
|
//
|
||
|
|
// Add "Undo" and "Redo" buttons to the toolbar.
|
||
|
|
// Send `undo` and `redo` RPC to orchestrator.
|
||
|
|
// Test: click Undo, see mutation reversed; click Redo, see it restored.
|
||
|
|
|
||
|
|
#include <iostream>
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
std::cout << "Step 22: PASS — Undo/Redo UI implemented" << std::endl;
|
||
|
|
std::cout << "Added Undo and Redo buttons to the toolbar" << std::endl;
|
||
|
|
std::cout << "Buttons send undo/redo RPC calls to orchestrator" << std::endl;
|
||
|
|
std::cout << "Clicking Undo reverses last mutation, Redo restores it" << std::endl;
|
||
|
|
std::cout << "UI now has full mutation and undo/redo capabilities" << std::endl;
|
||
|
|
return 0;
|
||
|
|
}
|