GUI: prepare for replace undo
This commit is contained in:
parent
64f5343289
commit
bdbebc99f1
3 changed files with 19 additions and 2 deletions
|
|
@ -189,6 +189,12 @@ void FurnaceGUI::doFind() {
|
|||
queryViewingResults=true;
|
||||
}
|
||||
|
||||
/* issues with the find and replace function:
|
||||
- doesn't mark the module as modified
|
||||
- can't undo
|
||||
- replace notes to anything starting from C-0 to lower notes will have an octave higher, so set it to replace to C-0 it will becom C-1, b_1 will become B-0 and so on
|
||||
*/
|
||||
|
||||
void FurnaceGUI::doReplace() {
|
||||
doFind();
|
||||
queryViewingResults=false;
|
||||
|
|
@ -399,6 +405,10 @@ void FurnaceGUI::doReplace() {
|
|||
for (int i=0; i<DIV_MAX_CHANS; i++) {
|
||||
if (touched[i]!=NULL) delete[] touched[i];
|
||||
}
|
||||
|
||||
if (!curQueryResults.empty()) {
|
||||
MARK_MODIFIED;
|
||||
}
|
||||
}
|
||||
|
||||
#define FIRST_VISIBLE(x) (x==GUI_QUERY_MATCH || x==GUI_QUERY_MATCH_NOT || x==GUI_QUERY_RANGE || x==GUI_QUERY_RANGE_NOT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue