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 3ea2fafc8bc0e0e1041823f19c1a7120a92e5bd9
parent e878f1f85bcfe3177f7cca3ace2d98716e8be5f5
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 14 Jul 2024 16:06:30 +0200

properly layout patch search & status bar in grid mode

Diffstat:
Msource/jucePluginEditorLib/patchmanager/patchmanager.cpp | 17+++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginEditorLib/patchmanager/patchmanager.cpp b/source/jucePluginEditorLib/patchmanager/patchmanager.cpp @@ -586,6 +586,7 @@ namespace jucePluginEditorLib::patchManager return; m_info->setVisible(m_layout == LayoutType::List); + m_resizerBarC.setVisible(m_layout == LayoutType::List); std::vector<Component*> comps = {m_treeDS, &m_resizerBarA, m_treeTags, &m_resizerBarB, dynamic_cast<juce::Component*>(getListModel())}; if(m_layout == LayoutType::List) @@ -604,8 +605,20 @@ namespace jucePluginEditorLib::patchManager layoutXAxis(m_searchTreeDS, m_treeDS); layoutXAxis(m_searchTreeTags, m_treeTags); - layoutXAxis(m_searchList, dynamic_cast<Component*>(getListModel())); - layoutXAxis(m_status, m_info); + + if(m_layout == LayoutType::List) + { + layoutXAxis(m_searchList, dynamic_cast<Component*>(getListModel())); + layoutXAxis(m_status, m_info); + } + else + { + m_searchList->setTopLeftPosition(m_grid->getX(), m_searchList->getY()); + m_searchList->setSize(m_grid->getWidth()/3 - g_padding, m_searchList->getHeight()); + + m_status->setTopLeftPosition(m_searchList->getX() + m_searchList->getWidth() + g_padding, m_searchList->getY()); + m_status->setSize(m_grid->getWidth()/3*2, m_status->getHeight()); + } } juce::Colour PatchManager::getResizerBarColor() const