2022-04-22 03:04:30 +00:00
|
|
|
// SPDX-License-Identifier: GPLv3-or-later WITH Appstore-exception
|
|
|
|
// Copyright (C) 2017 Xenakios
|
|
|
|
// Copyright (C) 2020 Jesse Chappell
|
2018-05-07 17:43:27 +00:00
|
|
|
|
2022-04-22 03:04:30 +00:00
|
|
|
#pragma once
|
2018-05-07 17:43:27 +00:00
|
|
|
|
|
|
|
#include "../JuceLibraryCode/JuceHeader.h"
|
|
|
|
class PaulstretchpluginAudioProcessor;
|
|
|
|
|
|
|
|
class RenderSettingsComponent : public Component,
|
|
|
|
public ComboBox::Listener,
|
|
|
|
public Button::Listener,
|
|
|
|
public TextEditor::Listener
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//==============================================================================
|
|
|
|
RenderSettingsComponent (PaulstretchpluginAudioProcessor* mc);
|
|
|
|
~RenderSettingsComponent();
|
|
|
|
|
|
|
|
void paint (Graphics& g) override;
|
|
|
|
void resized() override;
|
|
|
|
void comboBoxChanged (ComboBox* comboBoxThatHasChanged) override;
|
|
|
|
void buttonClicked (Button* buttonThatWasClicked) override;
|
2022-04-12 22:47:43 +00:00
|
|
|
int getPreferredHeight() const;
|
|
|
|
int getPreferredWidth() const;
|
2018-05-07 17:43:27 +00:00
|
|
|
void textEditorTextChanged(TextEditor& ed) override;
|
|
|
|
private:
|
|
|
|
PaulstretchpluginAudioProcessor * m_proc = nullptr;
|
|
|
|
Label labelSamplerate;
|
|
|
|
ComboBox comboBoxSamplerate;
|
|
|
|
Label labelBitDepth;
|
|
|
|
ComboBox comboBoxBitDepth;
|
|
|
|
TextButton buttonRender;
|
|
|
|
Label label3;
|
|
|
|
TextEditor numLoopsEditor;
|
|
|
|
Label label4;
|
|
|
|
TextEditor outfileNameEditor;
|
|
|
|
TextButton buttonSelectFile;
|
|
|
|
Label m_labelMaxOutDuration;
|
|
|
|
TextEditor m_editorMaxOutDuration;
|
|
|
|
ToggleButton m_toggleFloatClip;
|
2022-04-12 22:47:43 +00:00
|
|
|
ToggleButton m_shareAfterRenderToggle;
|
2019-01-20 13:24:30 +00:00
|
|
|
String ID_lastrenderpath{ "lastrenderpath" };
|
2022-04-12 22:47:43 +00:00
|
|
|
String ID_lastrendershare{ "lastrendershare" };
|
|
|
|
int prefHeight = 400;
|
2022-04-15 23:13:55 +00:00
|
|
|
int prefWidth = 480;
|
2022-04-12 22:47:43 +00:00
|
|
|
std::unique_ptr<FileChooser> m_filechooser;
|
|
|
|
bool pendingRender = false;
|
2018-05-07 17:43:27 +00:00
|
|
|
//==============================================================================
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (RenderSettingsComponent)
|
|
|
|
};
|