xtParts.h (438B)
1 #pragma once 2 3 #include "jucePluginEditorLib/partbutton.h" 4 5 #include "xtPartButton.h" 6 7 namespace xtJucePlugin 8 { 9 class PartName; 10 11 class Parts 12 { 13 public: 14 Parts(Editor& _editor); 15 16 bool selectPart(uint8_t _part) const; 17 18 private: 19 void updateUi() const; 20 21 Editor& m_editor; 22 23 struct Part 24 { 25 PartButton* m_button = nullptr; 26 PartName* m_name = nullptr; 27 juce::Button* m_led = nullptr; 28 }; 29 30 std::array<Part,8> m_parts; 31 }; 32 }