QuantificationWidget.hpp
1 #pragma once
2 #include <ossia/editor/scenario/time_signature.hpp>
3 
4 #include <QComboBox>
5 #include <QLineEdit>
6 
7 #include <score_lib_base_export.h>
8 
9 #include <verdigris>
10 
11 namespace score
12 {
13 class SCORE_LIB_BASE_EXPORT QuantificationWidget : public QComboBox
14 {
15  W_OBJECT(QuantificationWidget)
16 public:
17  explicit QuantificationWidget(QWidget* parent = nullptr);
18 
19  double quantification() const noexcept;
20  void setQuantification(double d);
21 
22  void quantificationChanged(double d)
23  E_SIGNAL(SCORE_LIB_BASE_EXPORT, quantificationChanged, d)
24 };
25 
26 class SCORE_LIB_BASE_EXPORT TimeSignatureWidget : public QLineEdit
27 {
28 public:
29  explicit TimeSignatureWidget();
30 
31  void setSignature(std::optional<ossia::time_signature> t);
32 
33  std::optional<ossia::time_signature> signature() const;
34 };
35 
36 }
Definition: QuantificationWidget.hpp:14
Definition: QuantificationWidget.hpp:27
Base toolkit upon which the software is built.
Definition: Application.cpp:90