26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICSITEM_H
27 #define __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICSITEM_H
29 #include "../../Config.h"
33 #include "../capabilities/TaskGraphicalCapabilities.h"
44 class ConnectorGraphicsItem;
98 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget =
nullptr);
118 virtual void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
An Abstract graphicItem to represents a process Builder item.
A GraphicItem to represents connector between two Tasks parameters (hot points).
A GraphicItem to represents Task parameters as hot point.
A QObject class to handle with process management.
A GraphicItem to represents a Task Process Builder item.
virtual void hotPointPressed(HotPointGraphicsItem *hotpoint)
Virtual function used to notify when user clicks over a hotpoint.
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent *event) override
Virtual function to reimplement qt event.
TaskGraphicsItem(ProcessManager *manager, const std::string &taskId)
Default constructor.
~TaskGraphicsItem()
Virtual destructor.
std::vector< ConnectorGraphicsItem * > m_connectors
All connectors that is linked with this task.
virtual QRectF boundingRect() const
Virtual function that defines the outer bounds of the item as a rectangle.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Function used to draw the process item.
std::string m_taskId
Task id that represents this item.
ProcessManager * m_manager
void resetTaskId(const std::string &newTaskId)
Function used to reset the task id.
void addConnector(ConnectorGraphicsItem *connector)
Function used to add a new connector item to this task.
const std::string getTaskId() const
Function used to get the task id.
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent *event) override
Virtual function to reimplement qt event.
virtual void dropEvent(QGraphicsSceneDragDropEvent *event) override
Virtual function to reimplement qt event.
std::unique_ptr< TaskGraphicalCapabilities > m_taskGraphicalCapabilities
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event) override
Virtual function to reimplement qt event.