DISTRHO Plugin Framework
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.

82 lines
2.2KB

  1. /*
  2. * DISTRHO Nekobi Plugin, based on Nekobee by Sean Bolton and others.
  3. * Copyright (C) 2013 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 General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #ifndef DISTRHO_UI_NEKOBI_HPP_INCLUDED
  18. #define DISTRHO_UI_NEKOBI_HPP_INCLUDED
  19. #include "ImageAboutWindow.hpp"
  20. #include "ImageButton.hpp"
  21. #include "ImageKnob.hpp"
  22. #include "ImageSlider.hpp"
  23. #include "DistrhoArtworkNekobi.hpp"
  24. #include "NekoWidget.hpp"
  25. using DGL::ImageAboutWindow;
  26. using DGL::ImageButton;
  27. using DGL::ImageKnob;
  28. using DGL::ImageSlider;
  29. // -----------------------------------------------------------------------
  30. class DistrhoUINekobi : public DGL::Widget,
  31. public ImageButton::Callback
  32. {
  33. public:
  34. DistrhoUINekobi(DGL::Window& parent);
  35. ~DistrhoUINekobi() override;
  36. unsigned int getWidth() const noexcept
  37. {
  38. return DistrhoArtworkNekobi::backgroundWidth;
  39. }
  40. unsigned int getHeight() const noexcept
  41. {
  42. return DistrhoArtworkNekobi::backgroundHeight;
  43. }
  44. void idle();
  45. protected:
  46. // -------------------------------------------------------------------
  47. // Widget Callbacks
  48. void imageButtonClicked(ImageButton* button, int) override;
  49. void onDisplay() override;
  50. private:
  51. Image fImgBackground;
  52. NekoWidget fNeko;
  53. ImageKnob* fKnobTuning;
  54. ImageKnob* fKnobCutoff;
  55. ImageKnob* fKnobResonance;
  56. ImageKnob* fKnobEnvMod;
  57. ImageKnob* fKnobDecay;
  58. ImageKnob* fKnobAccent;
  59. ImageKnob* fKnobVolume;
  60. ImageButton* fButtonAbout;
  61. ImageSlider* fSliderWaveform;
  62. ImageAboutWindow fAboutWindow;
  63. };
  64. // -----------------------------------------------------------------------
  65. #endif // DISTRHO_UI_NEKOBI_HPP_INCLUDED