InstrumentFunctionViews.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * InstrumentFunctionViews.h - views for instrument-functions-tab
  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_FUNCTION_VIEWS_H
  25. #define INSTRUMENT_FUNCTION_VIEWS_H
  26. #include "ModelView.h"
  27. #include <QWidget>
  28. class QLabel;
  29. class ComboBox;
  30. class GroupBox;
  31. class Knob;
  32. class TempoSyncKnob;
  33. class InstrumentFunctionArpeggio;
  34. class InstrumentFunctionNoteStacking;
  35. class InstrumentFunctionNoteStackingView : public QWidget, public ModelView
  36. {
  37. Q_OBJECT
  38. public:
  39. InstrumentFunctionNoteStackingView( InstrumentFunctionNoteStacking* cc, QWidget* parent = nullptr );
  40. virtual ~InstrumentFunctionNoteStackingView();
  41. private:
  42. void modelChanged() override;
  43. InstrumentFunctionNoteStacking * m_cc;
  44. GroupBox * m_chordsGroupBox;
  45. ComboBox * m_chordsComboBox;
  46. Knob * m_chordRangeKnob;
  47. } ;
  48. class InstrumentFunctionArpeggioView : public QWidget, public ModelView
  49. {
  50. Q_OBJECT
  51. public:
  52. InstrumentFunctionArpeggioView( InstrumentFunctionArpeggio* arp, QWidget* parent = nullptr );
  53. virtual ~InstrumentFunctionArpeggioView();
  54. private:
  55. void modelChanged() override;
  56. InstrumentFunctionArpeggio * m_a;
  57. GroupBox * m_arpGroupBox;
  58. ComboBox * m_arpComboBox;
  59. Knob * m_arpRangeKnob;
  60. Knob * m_arpRepeatsKnob;
  61. Knob * m_arpCycleKnob;
  62. Knob * m_arpSkipKnob;
  63. Knob * m_arpMissKnob;
  64. TempoSyncKnob * m_arpTimeKnob;
  65. Knob * m_arpGateKnob;
  66. ComboBox * m_arpDirectionComboBox;
  67. ComboBox * m_arpModeComboBox;
  68. } ;
  69. #endif