mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Piano: Move octave controls into main widget
This is not related to the track controls and it may move into another separate widget in the future. The move also allows to simplify the octave slider callback logic.
This commit is contained in:
parent
376e7243a9
commit
7b3b743f88
4 changed files with 36 additions and 50 deletions
|
@ -24,19 +24,11 @@ class TrackControlsWidget final : public GUI::Frame {
|
|||
public:
|
||||
virtual ~TrackControlsWidget() override = default;
|
||||
|
||||
void update_knobs();
|
||||
|
||||
private:
|
||||
TrackControlsWidget(TrackManager&, MainWidget&);
|
||||
|
||||
TrackManager& m_track_manager;
|
||||
MainWidget& m_main_widget;
|
||||
|
||||
RefPtr<GUI::Widget> m_octave_container;
|
||||
RefPtr<GUI::Slider> m_octave_knob;
|
||||
RefPtr<GUI::Label> m_octave_value;
|
||||
|
||||
NonnullRefPtrVector<ProcessorParameterWidget> m_parameter_widgets;
|
||||
|
||||
bool m_change_underlying { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue