MidiCCRackView.h 807 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef MIDI_CC_RACK_VIEW_H
  2. #define MIDI_CC_RACK_VIEW_H
  3. #include <QWidget>
  4. #include "GroupBox.h"
  5. #include "Knob.h"
  6. #include "Midi.h"
  7. #include "SerializingObject.h"
  8. class InstrumentTrack;
  9. class MidiCCRackView : public QWidget, public SerializingObject
  10. {
  11. Q_OBJECT
  12. public:
  13. MidiCCRackView(InstrumentTrack * track);
  14. ~MidiCCRackView() override;
  15. void saveSettings(QDomDocument & doc, QDomElement & parent) override;
  16. void loadSettings(const QDomElement &) override;
  17. inline QString nodeName() const override
  18. {
  19. return "MidiCCRackView";
  20. }
  21. private slots:
  22. void renameWindow();
  23. private:
  24. InstrumentTrack *m_track;
  25. GroupBox *m_midiCCGroupBox; // MIDI CC GroupBox (used to enable disable MIDI CC)
  26. Knob *m_controllerKnob[MidiControllerCount]; // Holds the knob widgets for each controller
  27. };
  28. #endif