diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 0a35222..2baf962 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -252,9 +252,10 @@ PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor() void PaulstretchpluginAudioProcessorEditor::showRenderDialog() { - auto content = new RenderSettingsComponent(&processor); - content->setSize(content->getWidth(), content->getPreferredHeight()); - /*CallOutBox& myBox =*/ CallOutBox::launchAsynchronously(content, m_render_button.getBounds(), this); + auto contentraw = new RenderSettingsComponent(&processor); + contentraw->setSize(contentraw->getWidth(), contentraw->getPreferredHeight()); + std::unique_ptr content(contentraw); + CallOutBox::launchAsynchronously(std::move(content), m_render_button.getBounds(), this); } void PaulstretchpluginAudioProcessorEditor::executeModalMenuAction(int menuid, int r) diff --git a/Source/PluginEditor.h b/Source/PluginEditor.h index f72da8e..c062d29 100644 --- a/Source/PluginEditor.h +++ b/Source/PluginEditor.h @@ -447,6 +447,20 @@ class PaulstretchpluginAudioProcessorEditor : public AudioProcessorEditor, public: PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor&); ~PaulstretchpluginAudioProcessorEditor(); + /* + void parentHierarchyChanged() override { + if (JUCEApplicationBase::isStandaloneApp()) { + auto* comp = getTopLevelComponent(); + + if (auto window = dynamic_cast(comp)) { + window->setUsingNativeTitleBar(true); + window->setResizable(true, false); + window->setTitleBarButtonsRequired(DocumentWindow::TitleBarButtons::allButtons, false); + window->setSize(800, 600); + } + } + } + */ void paint (Graphics&) override; void resized() override; void timerCallback(int id) override; diff --git a/Source/envelope_component.cpp b/Source/envelope_component.cpp index 1be8a5d..cd443bd 100644 --- a/Source/envelope_component.cpp +++ b/Source/envelope_component.cpp @@ -73,7 +73,7 @@ void EnvelopeComponent::paint(Graphics& g) g.drawText("No envelope set", 10, 10, getWidth(), getHeight(), Justification::centred); return; } - if (m_envelope.unique() == true) + if (m_envelope.use_count() == 1) { g.drawText("Envelope is orphaned (may be a bug)", 10, 10, getWidth(), getHeight(), Justification::centred); return; diff --git a/paulstretchplugin.jucer b/paulstretchplugin.jucer index b2126d7..f029f09 100644 --- a/paulstretchplugin.jucer +++ b/paulstretchplugin.jucer @@ -11,7 +11,8 @@ pluginWantsMidiIn="0" pluginProducesMidiOut="0" pluginIsMidiEffectPlugin="0" pluginEditorRequiresKeys="0" pluginAUExportPrefix="paulxstretchAU" aaxIdentifier="com.yourcompany.paulstretchplugin" pluginAAXCategory="2" - jucerVersion="5.4.7" headerPath=" " pluginFormats="buildVST,buildVST3,buildAU,buildStandalone"> + headerPath=" " pluginFormats="buildVST,buildVST3,buildAU,buildStandalone" + jucerFormatVersion="1">