score-plugin-audio/Audio/Settings/View.hpp
1 #pragma once
2 #include <Audio/AudioInterface.hpp>
3 
4 #include <score/plugins/ProjectSettings/ProjectSettingsView.hpp>
5 #include <score/plugins/settingsdelegate/SettingsDelegateView.hpp>
6 
7 #include <verdigris>
8 class QStackedWidget;
9 class QCheckBox;
10 
11 namespace score
12 {
13 class FormWidget;
14 }
15 
16 namespace Audio::Settings
17 {
19 {
20  W_OBJECT(View)
21 public:
22  View();
23 
24  void addDriver(QString txt, QVariant data, Audio::AudioFactory* widg);
25 
26  void setDriver(AudioFactory::ConcreteKey k);
27  void setDriverWidget(QWidget* w);
28  void DriverChanged(AudioFactory::ConcreteKey arg_1) W_SIGNAL(DriverChanged, arg_1);
29 
30  void setBufferSize(int);
31  void BufferSizeChanged(int arg) W_SIGNAL(BufferSizeChanged, arg)
32  void setRate(int);
33  void RateChanged(int arg) W_SIGNAL(RateChanged, arg)
34 
35  SETTINGS_UI_TOGGLE_HPP(AutoStereo)
36 
37 private:
38  QWidget* getWidget() override;
39 
40  score::FormWidget* m_widg{};
41  QWidget* m_sw{};
42  QComboBox* m_Driver{};
43  QWidget* m_curDriver{};
44 };
45 }
Definition: AudioInterface.hpp:28
Definition: score-plugin-audio/Audio/Settings/View.hpp:19
Definition: FormWidget.hpp:11
Definition: SettingsDelegateView.hpp:18
Base toolkit upon which the software is built.
Definition: Application.cpp:90