@@ -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) | ||||
@@ -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; | ||||
@@ -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; | ||||
@@ -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=" " pluginFormats="buildVST,buildVST3,buildAU,buildStandalone"> | |||||
headerPath=" " 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" | ||||