The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
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.

64 lines
2.0KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE 6 technical preview.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. You may use this code under the terms of the GPL v3
  6. (see www.gnu.org/licenses).
  7. For this technical preview, this file is not subject to commercial licensing.
  8. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  9. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  10. DISCLAIMED.
  11. ==============================================================================
  12. */
  13. namespace juce
  14. {
  15. /**
  16. This abstract base class is used by some AudioProcessorParameter helper classes.
  17. @see AudioParameterFloat, AudioParameterInt, AudioParameterBool, AudioParameterChoice
  18. @tags{Audio}
  19. */
  20. class JUCE_API AudioProcessorParameterWithID : public AudioProcessorParameter
  21. {
  22. public:
  23. /** The creation of this object requires providing a name and ID which will be
  24. constant for its lifetime.
  25. */
  26. AudioProcessorParameterWithID (const String& parameterID,
  27. const String& parameterName,
  28. const String& parameterLabel = {},
  29. Category parameterCategory = AudioProcessorParameter::genericParameter);
  30. /** Destructor. */
  31. ~AudioProcessorParameterWithID() override;
  32. /** Provides access to the parameter's ID string. */
  33. const String paramID;
  34. /** Provides access to the parameter's name. */
  35. const String name;
  36. /** Provides access to the parameter's label. */
  37. const String label;
  38. /** Provides access to the parameter's category. */
  39. const Category category;
  40. String getName (int) const override;
  41. String getLabel() const override;
  42. Category getCategory() const override;
  43. private:
  44. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioProcessorParameterWithID)
  45. };
  46. } // namespace juce