InstrumentSoundShapingView.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * InstrumentSoundShapingView.h - view for InstrumentSoundShaping class
  3. *
  4. * Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
  5. *
  6. * This file is part of LMMS - https://lmms.io
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public
  19. * License along with this program (see COPYING); if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. * Boston, MA 02110-1301 USA.
  22. *
  23. */
  24. #ifndef INSTRUMENT_SOUND_SHAPING_VIEW_H
  25. #define INSTRUMENT_SOUND_SHAPING_VIEW_H
  26. #include <QWidget>
  27. #include "InstrumentSoundShaping.h"
  28. #include "ModelView.h"
  29. class QLabel;
  30. class EnvelopeAndLfoView;
  31. class ComboBox;
  32. class GroupBox;
  33. class Knob;
  34. class TabWidget;
  35. class InstrumentSoundShapingView : public QWidget, public ModelView
  36. {
  37. Q_OBJECT
  38. public:
  39. InstrumentSoundShapingView( QWidget * _parent );
  40. virtual ~InstrumentSoundShapingView();
  41. void setFunctionsHidden( bool hidden );
  42. private:
  43. void modelChanged() override;
  44. InstrumentSoundShaping * m_ss;
  45. TabWidget * m_targetsTabWidget;
  46. EnvelopeAndLfoView * m_envLfoViews[InstrumentSoundShaping::NumTargets];
  47. // filter-stuff
  48. GroupBox * m_filterGroupBox;
  49. ComboBox * m_filterComboBox;
  50. Knob * m_filterCutKnob;
  51. Knob * m_filterResKnob;
  52. QLabel* m_singleStreamInfoLabel;
  53. } ;
  54. #endif