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
A base item to represent the process task items in property listener.
An Abstract graphicItem to represents a process Builder item.
A base item to represent the graphical task item properties items in property tree.
A QObject class to handle with process management.
A base item to represent the process task items in property listener.
A base item to represent the process task properties items in property tree.
A QWidget to explore task properties.
Definition: TaskProperty.h:57
void setTaskItem(AbstractGraphicsItem *item)
te::process::qt::GraphicsPropertyItem * m_graphicsPropertyItem
Definition: TaskProperty.h:77
te::process::qt::TaskPropertyItem * m_traskPropertyItem
Definition: TaskProperty.h:78
~TaskProperty()
Virtual destructor.
virtual void handleValueChanged(QtProperty *qProperty, const QVariant &qVariant) override
TaskProperty(ProcessManager *manager, QWidget *parent=nullptr)
Default constructor.
void setTask(const std::string &taskId)
Function used to set the Task.
TerraLib.
#define TEPROCESSEXPORT
Definition: Config.h:47