TaskProperty.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/process/qt/TaskProperty.h
22 
23  \brief A QWidget to explore task properties
24 */
25 
26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_TASKPROPERTY_H
27 #define __TERRALIB_PROCESS_QT_INTERNAL_TASKPROPERTY_H
28 
29 #include "../../Config.h"
30 
32 
33 // STL Includes
34 #include <string>
35 
36 // Qt Includes
37 #include <QWidget>
38 
39 namespace te
40 {
41  namespace process
42  {
43  namespace qt
44  {
45  class AbstractGraphicsItem;
46  class GraphicsPropertyItem;
47  class ProcessManager;
48  class TaskPropertyItem;
49 
50  /*!
51  \class TaskProperty
52 
53  \brief A QWidget to explore task properties
54 
55  */
56  class TEPROCESSEXPORT TaskProperty : public QWidget, public TaskPropertyItemListener
57  {
58  Q_OBJECT
59 
60  public:
61 
62  /*! \brief Default constructor. */
63  TaskProperty(ProcessManager* manager, QWidget *parent = nullptr);
64 
65  /*! \brief Virtual destructor. */
67 
68  /*! \brief Function used to set the Task. */
69  void setTask(const std::string& taskId);
70 
72 
73  virtual void handleValueChanged(QtProperty* qProperty, const QVariant& qVariant) override;
74 
75  protected:
76 
77  te::process::qt::GraphicsPropertyItem* m_graphicsPropertyItem; // A property browser for graphical task properties
78  te::process::qt::TaskPropertyItem* m_traskPropertyItem; // A property browser for task properties
79  };
80  }
81  }
82 }
83 
84 #endif // __TERRALIB_PROCESS_QT_INTERNAL_TASKPROPERTY_H
te::process::qt::TaskProperty::setTask
void setTask(const std::string &taskId)
Function used to set the Task.
te::process::qt::ProcessManager
A QObject class to handle with process management.
Definition: ProcessManager.h:57
te::process::qt::TaskProperty::m_traskPropertyItem
te::process::qt::TaskPropertyItem * m_traskPropertyItem
Definition: TaskProperty.h:78
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::process::qt::TaskProperty::TaskProperty
TaskProperty(ProcessManager *manager, QWidget *parent=nullptr)
Default constructor.
te::process::qt::AbstractGraphicsItem
An Abstract graphicItem to represents a process Builder item.
Definition: AbstractGraphicsItem.h:53
TaskPropertyItemListener.h
A base item to represent the process task items in property listener.
te::process::qt::TaskPropertyItemListener
A base item to represent the process task items in property listener.
Definition: TaskPropertyItemListener.h:48
te::process::qt::TaskPropertyItem
A base item to represent the process task properties items in property tree.
Definition: TaskPropertyItem.h:64
te::process::qt::TaskProperty::setTaskItem
void setTaskItem(AbstractGraphicsItem *item)
te::process::qt::TaskProperty::m_graphicsPropertyItem
te::process::qt::GraphicsPropertyItem * m_graphicsPropertyItem
Definition: TaskProperty.h:77
te::process::qt::GraphicsPropertyItem
A base item to represent the graphical task item properties items in property tree.
Definition: GraphicsPropertyItem.h:58
TEPROCESSEXPORT
#define TEPROCESSEXPORT
Definition: Config.h:47
te::process::qt::TaskProperty::handleValueChanged
virtual void handleValueChanged(QtProperty *qProperty, const QVariant &qVariant) override
te::process::qt::TaskProperty::~TaskProperty
~TaskProperty()
Virtual destructor.
te::process::qt::TaskProperty
A QWidget to explore task properties.
Definition: TaskProperty.h:57