Loading...
Searching...
No Matches
score-plugin-nodal/Nodal/View.hpp
1#pragma once
2#include <Process/LayerView.hpp>
3
4#include <QPointF>
5#include <QRectF>
6
7class QGraphicsRectItem;
8
9#include <score_plugin_nodal_export.h>
10
11#include <verdigris>
12
13namespace Nodal
14{
15class View final : public Process::LayerView
16{
17 W_OBJECT(View)
18public:
19 explicit View(QGraphicsItem* parent);
20 ~View() override;
21
22 void areaSelectRequested(QRectF area, bool cumulation)
23 E_SIGNAL(SCORE_PLUGIN_NODAL_EXPORT, areaSelectRequested, area, cumulation)
24
25private:
26 void paint_impl(QPainter*) const override;
27
28 void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
29 void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
30 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override;
31
32 void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override;
33 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override;
34 void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override;
35 void dropEvent(QGraphicsSceneDragDropEvent* event) override;
36
37 QGraphicsRectItem* m_selectionRect{};
38 QPointF m_rubberBandOrigin{};
39 QRectF m_rubberBandRect{};
40 bool m_rubberBanding{false};
41};
42}
Definition score-plugin-nodal/Nodal/View.hpp:16
Definition LayerView.hpp:21