MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / NeuralNoteMainView

Class NeuralNoteMainView

NeuralNote/Source/Components/NeuralNoteMainView.h:20–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "UpdateCheck.h"
19
20class NeuralNoteMainView
21 : public Component
22 , public Timer
23 , public ValueTree::Listener
24{
25public:
26 explicit NeuralNoteMainView(NeuralNoteAudioProcessor& processor);
27
28 ~NeuralNoteMainView() override;
29
30 void resized() override;
31
32 void paint(Graphics& g) override;
33
34 void timerCallback() override;
35
36 void repaintPianoRoll();
37
38 bool keyPressed(const KeyPress& key) override;
39
40private:
41 void updateEnablements();
42
43 void valueTreePropertyChanged(ValueTree& treeWhosePropertyHasChanged, const Identifier& property) override;
44
45 void _updateSettingsMenuTicks();
46
47 void _updateTooltipVisibility();
48
49 NeuralNoteAudioProcessor& mProcessor;
50 NeuralNoteLNF mLNF;
51
52 State mPrevState = EmptyAudioAndMidiRegions;
53
54 VisualizationPanel mVisualizationPanel;
55 TranscriptionOptionsView mTranscriptionOptions;
56 NoteOptionsView mNoteOptions;
57 TimeQuantizeOptionsView mQuantizePanel;
58
59 std::unique_ptr<DrawableButton> mMuteButton;
60 std::unique_ptr<AudioProcessorValueTreeState::ButtonAttachment> mMuteButtonAttachment;
61
62 std::unique_ptr<DrawableButton> mRecordButton;
63 std::unique_ptr<DrawableButton> mClearButton;
64
65 std::unique_ptr<DrawableButton> mBackButton;
66 std::unique_ptr<DrawableButton> mPlayPauseButton;
67 std::unique_ptr<DrawableButton> mCenterButton;
68 std::unique_ptr<DrawableButton> mSettingsButton;
69
70 std::unique_ptr<TooltipWindow> mTooltipWindow;
71
72 class PopupMenuLookAndFeel : public LookAndFeel_V4
73 {
74 Font getPopupMenuFont() override { return UIDefines::LABEL_FONT(); }
75 };
76
77 std::unique_ptr<PopupMenuLookAndFeel> mPopupMenuLookAndFeel;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected