widgets/Constants.hpp
1 #pragma once
2 #include <QGraphicsItem>
3 #include <QRectF>
4 
5 #include <score_lib_base_export.h>
6 namespace score
7 {
8 static const constexpr QRectF defaultSliderSize{0., 0., 60., 23.};
9 static const constexpr QRectF defaultKnobSize{0., 0., 35., 35.};
10 static const constexpr QRectF defaultCheckBoxSize{0., 0., 20., 20.};
11 static const constexpr QRectF defaultToggleSize{0., 0., 60., 20.};
12 static const constexpr QRectF defaultRangeSliderSize{0., 0., 60., 23.};
13 
14 struct DoubleSpinboxWithEnter;
15 struct DefaultControlImpl;
16 struct DefaultGraphicsSliderImpl;
17 struct DefaultGraphicsSpinboxImpl;
18 struct DefaultGraphicsKnobImpl;
19 
20 static constexpr auto GraphicsItemType = QGraphicsItem::UserType + 90000;
21 #define SCORE_GRAPHICS_ITEM_TYPE(value) \
22 private: \
23  Q_INTERFACES(QGraphicsItem) \
24 public: \
25  enum \
26  { \
27  Type = GraphicsItemType + value \
28  }; \
29  int type() const override \
30  { \
31  return Type; \
32  } \
33  \
34 private:
35 }
Base toolkit upon which the software is built.
Definition: Application.cpp:90