DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
nodemappingsdialog.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 
16 // You should have received a copy of the GNU General Public License along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 #ifndef NODEMAPPINGSDIALOG_H
22 #define NODEMAPPINGSDIALOG_H
23 
24 #include <QDialog>
25 #include <QVector>
26 #include <QComboBox>
27 #include <QGridLayout>
28 
29 #include <memory>
30 
31 namespace Ui {
32 class NodeMappingsDialog;
33 }
34 
35 namespace dtree {
36 class Node;
37 }
38 
39 class NodeMappingsDialog : public QDialog
40 {
41  Q_OBJECT
42 
43 public:
44  explicit NodeMappingsDialog(std::shared_ptr<dtree::Node> node, QWidget *parent = 0);
46 
47  int getMappingForIndex(int idx);
48 
49 private:
51  QGridLayout *mGroupLayout;
52  std::shared_ptr<dtree::Node> mNode;
53  QVector<QComboBox *> mCombos;
54 
55  void setupMappings();
56 };
57 
58 #endif // NODEMAPPINGSDIALOG_H
NodeMappingsDialog(std::shared_ptr< dtree::Node > node, QWidget *parent=0)
Definition: nodemappingsdialog.cpp:29
Definition: Node.h:39
Definition: dteditorwindow.h:32
int getMappingForIndex(int idx)
Definition: nodemappingsdialog.cpp:47
~NodeMappingsDialog()
Definition: nodemappingsdialog.cpp:42
Definition: commonstateevaluators.h:8
Definition: nodemappingsdialog.h:39
Definition: ui_nodemappingsdialog.h:123