GUI: highlight current macro position
not for op macros (yet)
This commit is contained in:
parent
24e3dec84f
commit
f01be34b5e
5 changed files with 162 additions and 15 deletions
|
|
@ -25,13 +25,13 @@
|
|||
class DivEngine;
|
||||
|
||||
struct DivMacroStruct {
|
||||
int pos;
|
||||
int pos, lastPos;
|
||||
int val;
|
||||
bool has, had, actualHad, finished, will, linger;
|
||||
unsigned int mode;
|
||||
void doMacro(DivInstrumentMacro& source, bool released, bool tick);
|
||||
void init() {
|
||||
pos=mode=0;
|
||||
pos=lastPos=mode=0;
|
||||
has=had=actualHad=will=false;
|
||||
linger=false;
|
||||
// TODO: test whether this breaks anything?
|
||||
|
|
@ -127,6 +127,13 @@ class DivMacroInt {
|
|||
*/
|
||||
void notifyInsDeletion(DivInstrument* which);
|
||||
|
||||
/**
|
||||
* get DivMacroStruct by macro name.
|
||||
* @param which the macro name.
|
||||
* @return a DivMacroStruct, or NULL if none found.
|
||||
*/
|
||||
DivMacroStruct* structByName(const String& name);
|
||||
|
||||
DivMacroInt():
|
||||
e(NULL),
|
||||
ins(NULL),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue