26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICALCAPABILITIES_H
27 #define __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICALCAPABILITIES_H
29 #include "../../Config.h"
31 #include "../../../common/AbstractFactory.h"
35 #include <QPainterPath>
56 const std::string& operationName
57 ,
const std::string& description
58 ,
const std::string& iconName
59 ,
const std::string& iconPath
77 virtual QPainterPath
getShape(QList<QPointF>& inHotPoints, QList<QPointF>& outHotPoints)
const = 0;
This class defines the interface of abstract factories without initializing parameters.
TaskGraphicalCapabilitiesFactory(const std::string &factoryKey)
Constructor.
virtual ~TaskGraphicalCapabilitiesFactory()
Defines a task capabilities of a task used in graphical components.
std::string getName() const
Returns the description of the operation.
std::string m_description
The caption of the widget.
virtual QRectF shapeBoundingRect() const =0
TaskGraphicalCapabilities(const std::string &operationName, const std::string &description, const std::string &iconName, const std::string &iconPath)
Destructor.
virtual ~TaskGraphicalCapabilities()
Returns the name of the operation.
virtual QPainterPath getShape(QList< QPointF > &inHotPoints, QList< QPointF > &outHotPoints) const =0
std::string getDescription() const
Returns the icon path.
std::string m_iconName
The icon name of the operation.
QIcon m_qIcon
The icon of the operation.
std::string m_operationName
The name of the operation.
const QIcon & getIcon() const
std::string getIconPath() const
Returns the icon of the operation.
std::string m_iconPath
The icon path of the operation.