peak_controller_effect_controls.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * peak_controller_EffectControls.h - controls for peakController effect
  3. *
  4. * Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail/dot/com>
  5. * Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  6. *
  7. * This file is part of LMMS - https://lmms.io
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2 of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public
  20. * License along with this program (see COPYING); if not, write to the
  21. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  22. * Boston, MA 02110-1301 USA.
  23. *
  24. */
  25. #ifndef _PEAK_CONTROLLER_EFFECT_CONTROLS_H
  26. #define _PEAK_CONTROLLER_EFFECT_CONTROLS_H
  27. #include "EffectControls.h"
  28. #include "peak_controller_effect_control_dialog.h"
  29. #include "Knob.h"
  30. class PeakControllerEffect;
  31. class PeakControllerEffectControls : public EffectControls
  32. {
  33. Q_OBJECT
  34. public:
  35. PeakControllerEffectControls( PeakControllerEffect * _eff );
  36. virtual ~PeakControllerEffectControls()
  37. {
  38. }
  39. void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
  40. void loadSettings( const QDomElement & _this ) override;
  41. inline QString nodeName() const override
  42. {
  43. return "peakcontrollereffectcontrols";
  44. }
  45. int controlCount() override
  46. {
  47. return 1;
  48. }
  49. EffectControlDialog * createView() override
  50. {
  51. return new PeakControllerEffectControlDialog( this );
  52. }
  53. private:
  54. PeakControllerEffect * m_effect;
  55. FloatModel m_baseModel;
  56. FloatModel m_amountModel;
  57. FloatModel m_attackModel;
  58. FloatModel m_decayModel;
  59. FloatModel m_tresholdModel;
  60. BoolModel m_muteModel;
  61. BoolModel m_absModel;
  62. FloatModel m_amountMultModel;
  63. friend class PeakControllerEffectControlDialog;
  64. friend class PeakControllerEffect;
  65. } ;
  66. #endif