add undo to instrument editor (check for diffs on the current DivInstrument in insEdit, record them in a stack)

This commit is contained in:
Adam Lederer 2024-08-04 21:07:08 -07:00 committed by tildearrow
parent a318508b40
commit 5c9fd69ac1
8 changed files with 307 additions and 55 deletions

View file

@ -2256,6 +2256,8 @@ class FurnaceGUI {
std::vector<ImWchar> localeExtraRanges;
DivInstrument* prevInsData;
DivInstrument cachedCurIns;
DivInstrument* cachedCurInsPtr;
unsigned char* pendingLayoutImport;
size_t pendingLayoutImportLen;
@ -2922,6 +2924,9 @@ class FurnaceGUI {
void doUndoSample();
void doRedoSample();
void doUndoInstrument();
void doRedoInstrument();
void play(int row=0);
void setOrder(unsigned char order, bool forced=false);
void stop();