26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_TASKPROPERTYHANDLER_H
27 #define __TERRALIB_PROCESS_QT_INTERNAL_TASKPROPERTYHANDLER_H
29 #include "../../Config.h"
31 #include "../../ParameterDescriptor.h"
34 #include "../../../common/AbstractFactory.h"
38 #include <QtPropertyBrowser/QtProperty>
This class defines the interface of abstract factories without initializing parameters.
A base class for values that can be retrieved from the data access module.
A QObject class to handle with process management.
Wrapper function used to create taks. Used to avoid C++ to create multiple instances of the factory s...
virtual ~TaskPropertyHandlerFactory()
TaskPropertyHandlerFactory(const std::string &taskType)
Constructor.
A handler to list task properties into a property browser.
virtual te::dt::AbstractData * getParamData(const std::string ¶mName)
Function used to get a terralib object data from a Task param.
virtual QtProperty * createProperty(te::process::TaskSharedPtr task, te::process::ParameterDescriptor ¶mDesc)=0
Function used to create the right property type given a param descriptor.
QString getParameterToolTip(te::process::TaskSharedPtr task, te::process::ParameterDescriptor ¶mDesc)
ProcessManager * m_manager
TaskPropertyHandler(const std::string &taskType)
Default constructor.
const std::string & getType() const
virtual te::dt::AbstractData * createPropertyData(te::process::ParameterDescriptor ¶mDesc, const QVariant &var)
Function used to create a terralib object data from a QtProperty contents (QVariant).
virtual void setOutputProperties(QtProperty *parent)
virtual void setPropertyData(const te::dt::AbstractData *data, QtProperty *property, int dataType)=0
Function used to set into qt property a terralib data.
virtual ~TaskPropertyHandler()
Virtual destructor.
void setProperty(QtProperty *parent, te::process::ParameterDescriptor::Direction dir)
virtual void setDefaultProperties(QtProperty *parent)
std::map< std::string, QtProperty * > m_propertyMap
A map between string property name and property objects.
std::string m_taskType
The type of the task. Used by the factory.
virtual void setInputProperties(QtProperty *parent)
void valueChanged(QtProperty *p, const QVariant &qVariant)
void setTask(const std::string &taskId, ProcessManager *manager)
Gets the type of the task.
TEPROCESSEXPORT TaskPropertyHandler * CreateTaskPropertyHandler(const std::string &taskType, const std::string &taskId, ProcessManager *manager)