ScenarioSettingsView.hpp
1 #pragma once
2 #include <Process/TimeValue.hpp>
3 
4 #include <score/plugins/settingsdelegate/SettingsDelegateView.hpp>
5 #include <score/widgets/SpinBoxes.hpp>
6 
7 #include <verdigris>
8 
9 class QComboBox;
10 class QSpinBox;
11 class QCheckBox;
12 
13 namespace score
14 {
15 class FormWidget;
16 class TimeSpinBox;
17 }
18 namespace Scenario
19 {
20 namespace Settings
21 {
22 
24 {
25  W_OBJECT(View)
26 public:
27  View();
28 
29  void setSkin(const QString&);
30  void setZoom(const int); // zoom percentage
31  void setSlotHeight(const qreal);
32  void setDefaultDuration(const TimeVal& t);
33  void setAutoSequence(bool);
34  void setDefaultEditor(QString);
35  SETTINGS_UI_SPINBOX_HPP(UpdateRate)
36  SETTINGS_UI_SPINBOX_HPP(ExecutionRefreshRate)
37  SETTINGS_UI_TOGGLE_HPP(TimeBar)
38  SETTINGS_UI_TOGGLE_HPP(MeasureBars)
39  SETTINGS_UI_TOGGLE_HPP(MagneticMeasures)
40 
41 public:
42  void SkinChanged(const QString& arg_1) W_SIGNAL(SkinChanged, arg_1);
43  void DefaultEditorChanged(QString arg_1) W_SIGNAL(DefaultEditorChanged, arg_1);
44 
45  void zoomChanged(int arg_1) W_SIGNAL(zoomChanged, arg_1);
46  void SlotHeightChanged(int arg_1) W_SIGNAL(SlotHeightChanged, arg_1);
47  void DefaultDurationChanged(const TimeVal& t) W_SIGNAL(DefaultDurationChanged, t);
48 
49  void AutoSequenceChanged(bool arg_1) W_SIGNAL(AutoSequenceChanged, arg_1);
50 
51 private:
52  QWidget* getWidget() override;
53  score::FormWidget* m_widg{};
54 
55  QComboBox* m_skin{};
56  QLineEdit* m_editor{};
57  QSpinBox* m_zoomSpinBox{};
58  QSpinBox* m_slotHeightBox{};
59  score::TimeSpinBox* m_defaultDur{};
60 
61  QCheckBox* m_sequence{};
62 };
63 }
64 }
Definition: ScenarioSettingsView.hpp:24
Definition: FormWidget.hpp:11
Definition: SettingsDelegateView.hpp:18
Definition: TimeSpinBox.hpp:25
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: TimeValue.hpp:21