From 4099b4ed4bfa439a15044818f5238ba4239124b6 Mon Sep 17 00:00:00 2001 From: Matt Firth Date: Wed, 11 Oct 2023 16:13:48 +0100 Subject: [PATCH] Routing info tooltip on REAPER ("EPS_preferences")), propertiesFile(getPropertiesFile(propertiesFileLock.get())) { + + tooltipWindow.setLookAndFeel(&tooltipLookAndFeel); + tooltipWindow.setOpaque(false); + header->setText(" Direct Speakers"); onBoardingButton->setButtonText("?"); @@ -68,6 +73,7 @@ class DirectSpeakersComponent : public Component, addChildComponent(onBoardingOverlay.get()); //addAndMakeVisible(metadataValueBox.get()); + mainValueBox->showRoutingTooltip(p->getNumDawChannels() < 128); addAndMakeVisible(mainValueBox.get()); addAndMakeVisible(channelMetersBox.get()); @@ -110,8 +116,10 @@ class DirectSpeakersComponent : public Component, headingArea.removeFromRight(39).removeFromBottom(39)); header->setBounds(headingArea); - auto leftColumn = area.withTrimmedRight(area.getWidth() / 2); - auto rightColumn = area.withTrimmedLeft(area.getWidth() / 2); + auto leftColumnWidth = area.getWidth() / 2; + if (leftColumnWidth < 385) leftColumnWidth = 385; + auto leftColumn = area.removeFromLeft(leftColumnWidth); + auto rightColumn = area; // left column mainValueBox->setBounds(leftColumn.removeFromTop(223).reduced(5, 5)); @@ -161,6 +169,10 @@ class DirectSpeakersComponent : public Component, private: DirectSpeakersAudioProcessor* p_; + + TooltipWindow tooltipWindow{this}; + TooltipLookAndFeel tooltipLookAndFeel; + JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DirectSpeakersComponent) }; diff --git a/ear-production-suite-plugins/plugins/direct_speakers/src/value_box_main.hpp b/ear-production-suite-plugins/plugins/direct_speakers/src/value_box_main.hpp index 938d05417..0b3b5cde9 100644 --- a/ear-production-suite-plugins/plugins/direct_speakers/src/value_box_main.hpp +++ b/ear-production-suite-plugins/plugins/direct_speakers/src/value_box_main.hpp @@ -20,6 +20,7 @@ class ValueBoxMain : public Component { speakerSetupLabel_(std::make_unique