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.

DistrhoUIPingPongPan.hpp 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * DISTRHO PingPongPan Plugin, based on PingPongPan 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_PINGPONGPAN_HPP_INCLUDED
  17. #define DISTRHO_UI_PINGPONGPAN_HPP_INCLUDED
  18. #include "DistrhoUI.hpp"
  19. #include "ImageWidgets.hpp"
  20. #include "DistrhoArtworkPingPongPan.hpp"
  21. START_NAMESPACE_DISTRHO
  22. // -----------------------------------------------------------------------
  23. class DistrhoUIPingPongPan : public UI,
  24. public ImageButton::Callback,
  25. public ImageKnob::Callback
  26. {
  27. public:
  28. DistrhoUIPingPongPan();
  29. protected:
  30. // -------------------------------------------------------------------
  31. // DSP Callbacks
  32. void parameterChanged(uint32_t index, float value) override;
  33. void programLoaded(uint32_t index) override;
  34. // -------------------------------------------------------------------
  35. // Widget Callbacks
  36. void imageButtonClicked(ImageButton* button, int) override;
  37. void imageKnobDragStarted(ImageKnob* knob) override;
  38. void imageKnobDragFinished(ImageKnob* knob) override;
  39. void imageKnobValueChanged(ImageKnob* knob, float value) override;
  40. void onDisplay() override;
  41. private:
  42. Image fImgBackground;
  43. ImageAboutWindow fAboutWindow;
  44. ScopedPointer<ImageButton> fButtonAbout;
  45. ScopedPointer<ImageKnob> fKnobFreq, fKnobWidth;
  46. DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(DistrhoUIPingPongPan)
  47. };
  48. // -----------------------------------------------------------------------
  49. END_NAMESPACE_DISTRHO
  50. #endif // DISTRHO_UI_PINGPONGPAN_HPP_INCLUDED