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