Audio plugin host https://kx.studio/carla
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.

73 lines
2.4KB

  1. /*
  2. * DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
  3. * Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LICENSE file.
  15. */
  16. #ifndef DISTRHO_UI_3BANDSPLITTER_HPP_INCLUDED
  17. #define DISTRHO_UI_3BANDSPLITTER_HPP_INCLUDED
  18. #include "DistrhoUI.hpp"
  19. #include "ImageWidgets.hpp"
  20. #include "DistrhoArtwork3BandSplitter.hpp"
  21. START_NAMESPACE_DISTRHO
  22. // -----------------------------------------------------------------------
  23. class DistrhoUI3BandSplitter : public UI,
  24. public ImageButton::Callback,
  25. public ImageKnob::Callback,
  26. public ImageSlider::Callback
  27. {
  28. public:
  29. DistrhoUI3BandSplitter();
  30. protected:
  31. // -------------------------------------------------------------------
  32. // DSP Callbacks
  33. void parameterChanged(uint32_t index, float value) override;
  34. void programLoaded(uint32_t index) override;
  35. // -------------------------------------------------------------------
  36. // Widget Callbacks
  37. void imageButtonClicked(ImageButton* button, int) override;
  38. void imageKnobDragStarted(ImageKnob* knob) override;
  39. void imageKnobDragFinished(ImageKnob* knob) override;
  40. void imageKnobValueChanged(ImageKnob* knob, float value) override;
  41. void imageSliderDragStarted(ImageSlider* slider) override;
  42. void imageSliderDragFinished(ImageSlider* slider) override;
  43. void imageSliderValueChanged(ImageSlider* slider, float value) override;
  44. void onDisplay() override;
  45. private:
  46. Image fImgBackground;
  47. ImageAboutWindow fAboutWindow;
  48. ScopedPointer<ImageButton> fButtonAbout;
  49. ScopedPointer<ImageKnob> fKnobLowMid, fKnobMidHigh;
  50. ScopedPointer<ImageSlider> fSliderLow, fSliderMid, fSliderHigh, fSliderMaster;
  51. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUI3BandSplitter)
  52. };
  53. // -----------------------------------------------------------------------
  54. END_NAMESPACE_DISTRHO
  55. #endif // DISTRHO_UI_3BANDSPLITTER_HPP_INCLUDED