Browse Source

Build fixes for Juce 6

master
xenakios 4 years ago
parent
commit
7d9ed352a1
4 changed files with 21 additions and 5 deletions
  1. +4
    -3
      Source/PluginEditor.cpp
  2. +14
    -0
      Source/PluginEditor.h
  3. +1
    -1
      Source/envelope_component.cpp
  4. +2
    -1
      paulstretchplugin.jucer

+ 4
- 3
Source/PluginEditor.cpp View File

@@ -252,9 +252,10 @@ PaulstretchpluginAudioProcessorEditor::~PaulstretchpluginAudioProcessorEditor()


void PaulstretchpluginAudioProcessorEditor::showRenderDialog() 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) void PaulstretchpluginAudioProcessorEditor::executeModalMenuAction(int menuid, int r)


+ 14
- 0
Source/PluginEditor.h View File

@@ -447,6 +447,20 @@ class PaulstretchpluginAudioProcessorEditor : public AudioProcessorEditor,
public: public:
PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor&); PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor&);
~PaulstretchpluginAudioProcessorEditor(); ~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 paint (Graphics&) override;
void resized() override; void resized() override;
void timerCallback(int id) override; void timerCallback(int id) override;


+ 1
- 1
Source/envelope_component.cpp View File

@@ -73,7 +73,7 @@ void EnvelopeComponent::paint(Graphics& g)
g.drawText("No envelope set", 10, 10, getWidth(), getHeight(), Justification::centred); g.drawText("No envelope set", 10, 10, getWidth(), getHeight(), Justification::centred);
return; 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); g.drawText("Envelope is orphaned (may be a bug)", 10, 10, getWidth(), getHeight(), Justification::centred);
return; return;


+ 2
- 1
paulstretchplugin.jucer View File

@@ -11,7 +11,8 @@
pluginWantsMidiIn="0" pluginProducesMidiOut="0" pluginIsMidiEffectPlugin="0" pluginWantsMidiIn="0" pluginProducesMidiOut="0" pluginIsMidiEffectPlugin="0"
pluginEditorRequiresKeys="0" pluginAUExportPrefix="paulxstretchAU" pluginEditorRequiresKeys="0" pluginAUExportPrefix="paulxstretchAU"
aaxIdentifier="com.yourcompany.paulstretchplugin" pluginAAXCategory="2" 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"> <MAINGROUP id="nozXHl" name="PaulXStretch">
<GROUP id="{03DA6B32-F666-FF60-F168-4385D0847058}" name="Source"> <GROUP id="{03DA6B32-F666-FF60-F168-4385D0847058}" name="Source">
<FILE id="RanaVV" name="RenderSettingsComponent.cpp" compile="1" resource="0" <FILE id="RanaVV" name="RenderSettingsComponent.cpp" compile="1" resource="0"


Loading…
Cancel
Save