gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit d532e2b1bfe9f9a3c9b3d5ccd26ebc9986e247dd
parent 6f41229358e7fc91b5dc1d2824d3dab8fb876ca3
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 14 Jul 2024 17:50:33 +0200

apply 128 patches grid layout when doubleclicking on a resizer

Diffstat:
Msource/jucePluginEditorLib/patchmanager/resizerbar.cpp | 10+++++++++-
Msource/jucePluginEditorLib/patchmanager/resizerbar.h | 1+
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/source/jucePluginEditorLib/patchmanager/resizerbar.cpp b/source/jucePluginEditorLib/patchmanager/resizerbar.cpp @@ -19,6 +19,14 @@ namespace jucePluginEditorLib::patchManager { // juce::StretchableLayoutResizerBar::paint(g); if (isMouseOver() || isMouseButtonDown()) - g.fillAll (m_patchManager.getResizerBarColor()); + g.fillAll (m_patchManager.getResizerBarColor()); + } + + void ResizerBar::mouseDoubleClick(const juce::MouseEvent& _e) + { + if(m_patchManager.setGridLayout128()) + return; + + StretchableLayoutResizerBar::mouseDoubleClick(_e); } } diff --git a/source/jucePluginEditorLib/patchmanager/resizerbar.h b/source/jucePluginEditorLib/patchmanager/resizerbar.h @@ -13,6 +13,7 @@ namespace jucePluginEditorLib::patchManager void hasBeenMoved() override; void paint(juce::Graphics& g) override; + void mouseDoubleClick(const juce::MouseEvent& _e) override; private: PatchManager& m_patchManager; };