#ifndef ONF_ACTIONAGGREGATEITEMS_H #define ONF_ACTIONAGGREGATEITEMS_H #include "views/actions/onf_actionaggregateitemsoptions.h" #include "ctlibaction/ct_actions/abstract/ct_abstractactionforgraphicsview.h" #include "ct_itemdrawable/abstract/ct_abstractsingularitemdrawable.h" #include class ONF_ActionAggregateItems_dataContainer { public: ONF_ActionAggregateItems_dataContainer(); QStringList _modalities; QList _items; QList _itemsModalities; }; class ONF_ActionAggregateItems : public CT_AbstractActionForGraphicsView { Q_OBJECT public: ONF_ActionAggregateItems(ONF_ActionAggregateItems_dataContainer* dataContainer); ~ONF_ActionAggregateItems(); QString uniqueName() const override; QString title() const override; QString description() const override; QIcon icon() const override; QString type() const override; void init() override; bool mousePressEvent(QMouseEvent *e) override; bool mouseMoveEvent(QMouseEvent *e) override; bool mouseReleaseEvent(QMouseEvent *e) override; bool wheelEvent(QWheelEvent *e) override; bool keyPressEvent(QKeyEvent *e) override; bool keyReleaseEvent(QKeyEvent *e) override; void draw(GraphicsViewInterface &view, PainterInterface &painter) override; void drawOverlay(GraphicsViewInterface &view, QPainter &painter) override; void redraw(); CT_AbstractAction* createInstance() const override; public slots: void modalityChanged(QString modality); private: ONF_ActionAggregateItems_dataContainer* _dataContainer; }; #endif // ONF_ACTIONAGGREGATEITEMS_H