| 33 | } |
| 34 | |
| 35 | void ToolRemoveMods::beforeProcess(IdList ids) |
| 36 | { |
| 37 | _deletionType = DeletionGlobal; |
| 38 | if (!ids.empty()) |
| 39 | { |
| 40 | switch (ids[0].typeElement) |
| 41 | { |
| 42 | case elementInst: case elementInstSmpl: |
| 43 | _deletionType = DeletionForInstrument; |
| 44 | break; |
| 45 | case elementPrst: case elementPrstInst: |
| 46 | _deletionType = DeletionForPreset; |
| 47 | break; |
| 48 | default: |
| 49 | break; |
| 50 | } |
| 51 | } |
| 52 | _count = 0; |
| 53 | } |
| 54 | |
| 55 | void ToolRemoveMods::process(SoundfontManager * sm, EltID id, AbstractToolParameters *parameters) |
| 56 | { |
nothing calls this directly
no outgoing calls
no test coverage detected