Build fixes for Juce 6

This commit is contained in:
xenakios 2020-12-11 04:02:36 +02:00
parent 8bfd8557b7
commit 7d9ed352a1
4 changed files with 21 additions and 5 deletions

View File

@ -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<Component> content(contentraw);
CallOutBox::launchAsynchronously(std::move(content), m_render_button.getBounds(), this);
}
void PaulstretchpluginAudioProcessorEditor::executeModalMenuAction(int menuid, int r)

View File

@ -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<DocumentWindow*>(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;

View File

@ -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;

View File

@ -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="&#10;&#10;" pluginFormats="buildVST,buildVST3,buildAU,buildStandalone">
headerPath="&#10;&#10;" pluginFormats="buildVST,buildVST3,buildAU,buildStandalone"
jucerFormatVersion="1">
<MAINGROUP id="nozXHl" name="PaulXStretch">
<GROUP id="{03DA6B32-F666-FF60-F168-4385D0847058}" name="Source">
<FILE id="RanaVV" name="RenderSettingsComponent.cpp" compile="1" resource="0"