DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
createshortestpathdialog.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 /* --------------------------------------------------------------------------
22  * DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
23  * AND EFFORT DISPLACEMENT
24  * Copyright (c) 2012, 2013, 2014, 2015 Francois Bastardie <fba@aqua.dtu.dk>
25  *
26  * This program is free software; you can redistribute it and/or modify
27  * it under the terms of the GNU General Public License as published by
28  * the Free Software Foundation; either version 2 of the License, or
29  * (at your option) any later version.
30  *
31  * This program is distributed in the hope that it will be useful,
32  * but WITHOUT ANY WARRANTY; without even the implied warranty of
33  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  * GNU General Public License for more details.
35  *
36  * You should have received a copy of the GNU General Public License along
37  * with this program; if not, write to the Free Software Foundation, Inc.,
38  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
39  * --------------------------------------------------------------------------
40  */
41 #ifndef CREATESHORTESTPATHDIALOG_H
42 #define CREATESHORTESTPATHDIALOG_H
43 
44 #include <QDialog>
45 
46 namespace Ui {
48 }
49 
50 class CreateShortestPathDialog : public QDialog
51 {
52  Q_OBJECT
53 
54 public:
55  explicit CreateShortestPathDialog(QWidget *parent = 0);
57 
58  void setShortestPathFolder (QString);
59  QString getShortestPathFolder() const;
60  void setRelevantNodesFolder(QString);
61  QString getRelevantNodesFolder() const;
62  void setRelevantInterNodesFolder(QString);
63  QString getRelevantInterNodesFolder() const;
64  bool isAllNodesAreRelevantChecked() const;
65  QString getOutputFolder() const;
66  void setOutputFolder (const QString &folder);
67  QString getGraphName() const;
68  void setGraphName(const QString &folder);
69 
70  bool isBinaryFormat() const;
71  bool isTextFormat() const;
72 
73  bool isAStarSelected() const;
74  bool isDijkstraSelected() const;
75 
76 private slots:
77  void on_browseShortestFolder_clicked();
78  void on_browseRelevantFolder_clicked();
79  void on_browseRelevantInterFolder_clicked();
80  void on_ok_clicked();
81  void on_browseOutFolder_clicked();
82  void on_graphName_textChanged(const QString &);
83  void on_checkAllRelevantNodes_toggled(bool);
84 
85 private:
87 };
88 
89 #endif // CREATESHORTESTPATHDIALOG_H
Definition: dteditorwindow.h:32
bool isAStarSelected() const
Definition: createshortestpathdialog.cpp:199
void setGraphName(const QString &folder)
Definition: createshortestpathdialog.cpp:96
void setOutputFolder(const QString &folder)
Definition: createshortestpathdialog.cpp:86
~CreateShortestPathDialog()
Definition: createshortestpathdialog.cpp:40
void setRelevantInterNodesFolder(QString)
Definition: createshortestpathdialog.cpp:65
bool isDijkstraSelected() const
Definition: createshortestpathdialog.cpp:204
Definition: createshortestpathdialog.h:50
QString getRelevantNodesFolder() const
Definition: createshortestpathdialog.cpp:60
bool isAllNodesAreRelevantChecked() const
Definition: createshortestpathdialog.cpp:76
QString getGraphName() const
Definition: createshortestpathdialog.cpp:91
void setShortestPathFolder(QString)
Definition: createshortestpathdialog.cpp:45
void setRelevantNodesFolder(QString)
Definition: createshortestpathdialog.cpp:55
bool isBinaryFormat() const
Definition: createshortestpathdialog.cpp:189
QString getOutputFolder() const
Definition: createshortestpathdialog.cpp:81
QString getRelevantInterNodesFolder() const
Definition: createshortestpathdialog.cpp:70
Definition: ui_createshortestpathdialog.h:197
bool isTextFormat() const
Definition: createshortestpathdialog.cpp:194
CreateShortestPathDialog(QWidget *parent=0)
Definition: createshortestpathdialog.cpp:29
QString getShortestPathFolder() const
Definition: createshortestpathdialog.cpp:50