paulxstretch/Source/RenderSettingsComponent.h

52 lines
1.8 KiB
C
Raw Normal View History

// 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
#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;
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;
ToggleButton m_shareAfterRenderToggle;
2019-01-20 13:24:30 +00:00
String ID_lastrenderpath{ "lastrenderpath" };
String ID_lastrendershare{ "lastrendershare" };
int prefHeight = 400;
int prefWidth = 480;
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)
};