DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
creategraphdialog.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 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 CREATEGRAPHDIALOG_H
42 #define CREATEGRAPHDIALOG_H
43 
44 #include <QDialog>
45 #include <graphbuilder_shp.h>
46 
47 namespace Ui {
48 class CreateGraphDialog;
49 }
50 
51 class CreateGraphDialog : public QDialog
52 {
53  Q_OBJECT
54 
55 public:
56  explicit CreateGraphDialog(QWidget *parent = 0);
58 
59  double defaultStep() const;
60  double step1() const;
61  double step2() const;
62  double minLon() const;
63  double minLat() const;
64  double maxLon() const;
65  double maxLat() const;
67 
68  void setShapefileList(QStringList list);
69  QString getIncludingSelectedShapefile1() const ;
70  QString getIncludingSelectedShapefile2() const ;
71  QString getExcludingSelectedShapefile() const ;
72 
73  bool isOutsideEnabled() const;
74  bool isRemoveLongEdgesEnabled() const;
76  double removeLongEdgesLimit() const;
77  bool isMaxLinksEnabled() const;
78  bool isMinLinksEnabled() const;
79  int getMaxLinks() const;
80  int getMinLinks() const;
81 
82  bool isCreateEnabled() const;
83  bool isLoadEnabled() const;
84  QString loadGraphPath() const;
85 
86 public slots:
87  void done(int) override;
88 
90  void onLoadRadioSelected(bool checked);
91  void onCreateRadioSelected(bool checked);
92 
93 private:
95 
96  void updateView() const;
97 };
98 
99 #endif // CREATEGRAPHDIALOG_H
bool isLoadEnabled() const
Definition: creategraphdialog.cpp:238
Definition: creategraphdialog.h:51
void onCreateRadioSelected(bool checked)
Definition: creategraphdialog.cpp:92
bool isRemoveLongEdgesEnabled() const
Definition: creategraphdialog.cpp:175
double maxLon() const
Definition: creategraphdialog.cpp:120
Definition: dteditorwindow.h:32
bool isOutsideEnabled() const
Definition: creategraphdialog.cpp:170
int getMinLinks() const
Definition: creategraphdialog.cpp:205
Definition: ui_creategraphdialog.h:403
void onLoadRadioSelected(bool checked)
Definition: creategraphdialog.cpp:73
bool isMinLinksEnabled() const
Definition: creategraphdialog.cpp:195
QString getIncludingSelectedShapefile1() const
Definition: creategraphdialog.cpp:154
double step2() const
Definition: creategraphdialog.cpp:110
GraphBuilder::Type getType() const
Definition: creategraphdialog.cpp:135
void onLoadBrowseButtonClicked()
Definition: creategraphdialog.cpp:57
~CreateGraphDialog()
Definition: creategraphdialog.cpp:51
bool isRemoveEdgesInExclusionZoneEnabled() const
Definition: creategraphdialog.cpp:180
QString loadGraphPath() const
Definition: creategraphdialog.cpp:243
double maxLat() const
Definition: creategraphdialog.cpp:130
void done(int) override
Definition: creategraphdialog.cpp:210
double removeLongEdgesLimit() const
Definition: creategraphdialog.cpp:185
QString getExcludingSelectedShapefile() const
Definition: creategraphdialog.cpp:165
bool isMaxLinksEnabled() const
Definition: creategraphdialog.cpp:190
double defaultStep() const
Definition: creategraphdialog.cpp:100
double minLon() const
Definition: creategraphdialog.cpp:115
Type
Definition: graphbuilder_shp.h:44
int getMaxLinks() const
Definition: creategraphdialog.cpp:200
CreateGraphDialog(QWidget *parent=0)
Definition: creategraphdialog.cpp:30
QString getIncludingSelectedShapefile2() const
Definition: creategraphdialog.cpp:159
bool isCreateEnabled() const
Definition: creategraphdialog.cpp:233
void setShapefileList(QStringList list)
Definition: creategraphdialog.cpp:147
double step1() const
Definition: creategraphdialog.cpp:105
double minLat() const
Definition: creategraphdialog.cpp:125