Loading...
Searching...
No Matches
ConnectorsProperty.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/ConnectorsProperty.h
22
23 \brief A QWidget to explore connectors from a task.
24*/
25
26#ifndef __TERRALIB_PROCESS_QT_INTERNAL_CONNECTORSPROPERTY_H
27#define __TERRALIB_PROCESS_QT_INTERNAL_CONNECTORSPROPERTY_H
28
29#include "../../Config.h"
30
31// STL Includes
32#include <string>
33
34// Qt Includes
35#include <QTableWidget>
36#include <QWidget>
37
38namespace te
39{
40 namespace process
41 {
42 class Connector;
43
44 namespace qt
45 {
46 class ProcessManager;
47
48 /*!
49 \class ConnectorsProperty
50
51 \brief A QWidget to explore connectors from a task.
52
53 */
54 class TEPROCESSEXPORT ConnectorsProperty : public QWidget
55 {
56 Q_OBJECT
57
58 public:
59
60 /*! \brief Default constructor. */
61 ConnectorsProperty(ProcessManager* manager, QWidget *parent = nullptr);
62
63 /*! \brief Virtual destructor. */
65
66 /*! \brief Function used to set the Task. */
67 void setTask(const std::string& taskId);
68
69 protected:
70
71 /*! \brief Function used to list connectors associated to internal task. */
73
74 /*! \brief Function used to list connectors associated to internal task. */
75 void listConnectorsVec(std::vector<te::process::Connector*>& connectors, bool inputConnectors);
76
77 /*! \brief Function used to remove a connector. */
79
80 protected:
81
83
84 std::string m_taskId; //!< Task object id.
85
86 QTableWidget* m_connectorsTable; //!< Qt table component used to list the task connectors.
87 };
88 }
89 }
90}
91
92#endif // __TERRALIB_PROCESS_QT_INTERNAL_CONNECTORSPROPERTY_H
Abstraction that represents a Connector between parameters of a Task.
Definition Connector.h:48
A QWidget to explore connectors from a task.
void setTask(const std::string &taskId)
Function used to set the Task.
ConnectorsProperty(ProcessManager *manager, QWidget *parent=nullptr)
Default constructor.
std::string m_taskId
Task object id.
~ConnectorsProperty()
Virtual destructor.
void listConnectorsVec(std::vector< te::process::Connector * > &connectors, bool inputConnectors)
Function used to list connectors associated to internal task.
void listConnectors()
Function used to list connectors associated to internal task.
QTableWidget * m_connectorsTable
Qt table component used to list the task connectors.
void removeConnector(te::process::Connector *connector)
Function used to remove a connector.
A QObject class to handle with process management.
TerraLib.
#define TEPROCESSEXPORT
Definition Config.h:47