ZoomItem.hpp
1 #pragma once
2 #include <QGraphicsItem>
3 
4 #include <score_lib_base_export.h>
5 
6 #include <verdigris>
7 
8 namespace score
9 {
10 
11 class SCORE_LIB_BASE_EXPORT ZoomItem
12  : public QObject
13  , public QGraphicsItem
14 {
15  W_OBJECT(ZoomItem)
16 public:
17  ZoomItem(QGraphicsItem* parent);
18  ~ZoomItem();
19 
20  QRectF boundingRect() const override;
21  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
22  override;
23 
24  void zoom() E_SIGNAL(SCORE_LIB_BASE_EXPORT, zoom)
25  void dezoom() E_SIGNAL(SCORE_LIB_BASE_EXPORT, dezoom)
26  void recenter() E_SIGNAL(SCORE_LIB_BASE_EXPORT, recenter)
27  void rescale() E_SIGNAL(SCORE_LIB_BASE_EXPORT, rescale)
28 };
29 
30 }
Definition: ZoomItem.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90