You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1KB

  1. #pragma once
  2. /*
  3. Copyright (C) 2017 Xenakios
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of version 2 of the GNU General Public License
  6. as published by the Free Software Foundation.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License (version 2) for more details.
  11. You should have received a copy of the GNU General Public License (version 2)
  12. along with this program; if not, write to the Free Software Foundation,
  13. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #include "../JuceLibraryCode/JuceHeader.h"
  16. class PaulstretchpluginAudioProcessor;
  17. class RenderSettingsComponent : public Component,
  18. public ComboBox::Listener,
  19. public Button::Listener,
  20. public TextEditor::Listener
  21. {
  22. public:
  23. //==============================================================================
  24. RenderSettingsComponent (PaulstretchpluginAudioProcessor* mc);
  25. ~RenderSettingsComponent();
  26. void paint (Graphics& g) override;
  27. void resized() override;
  28. void comboBoxChanged (ComboBox* comboBoxThatHasChanged) override;
  29. void buttonClicked (Button* buttonThatWasClicked) override;
  30. int getPreferredHeight();
  31. void textEditorTextChanged(TextEditor& ed) override;
  32. private:
  33. PaulstretchpluginAudioProcessor * m_proc = nullptr;
  34. Label labelSamplerate;
  35. ComboBox comboBoxSamplerate;
  36. Label labelBitDepth;
  37. ComboBox comboBoxBitDepth;
  38. TextButton buttonRender;
  39. Label label3;
  40. TextEditor numLoopsEditor;
  41. Label label4;
  42. TextEditor outfileNameEditor;
  43. TextButton buttonSelectFile;
  44. Label m_labelMaxOutDuration;
  45. TextEditor m_editorMaxOutDuration;
  46. ToggleButton m_toggleFloatClip;
  47. String ID_lastrenderpath{ "lastrenderpath" };
  48. //==============================================================================
  49. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (RenderSettingsComponent)
  50. };