| 415 | } |
| 416 | |
| 417 | void Multiband::mouseDrag(const juce::MouseEvent& e) |
| 418 | { |
| 419 | // moving lines by dragging mouse |
| 420 | if (e.mods.isLeftButtonDown()) |
| 421 | { |
| 422 | for (int i = 0; i < lineNum; i++) |
| 423 | { |
| 424 | if (e.eventComponent == &freqDividerGroup[i]->getVerticalLine()) |
| 425 | { |
| 426 | float targetXPercent = getMouseXYRelative().getX() / static_cast<float>(getWidth()); |
| 427 | dragLines(targetXPercent, i); |
| 428 | |
| 429 | sortLines(); |
| 430 | setLineRelatedBoundsByX(); |
| 431 | setSoloRelatedBounds(); |
| 432 | } |
| 433 | } |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | void Multiband::mouseDown(const juce::MouseEvent& e) |
| 438 | { |
nothing calls this directly
no outgoing calls
no test coverage detected