DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
configdialog.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 CONFIGDIALOG_H
42 #define CONFIGDIALOG_H
43 
44 #include <config.h>
45 
46 #include <QDialog>
47 
48 namespace Ui {
49 class ConfigDialog;
50 }
51 
52 class DisplaceModel;
53 
54 class ConfigDialog : public QDialog
55 {
56  Q_OBJECT
57 
58 public:
59  explicit ConfigDialog(DisplaceModel *model, QWidget *parent = 0);
60  ~ConfigDialog();
61 
62  bool get(Config &config) const;
63  void set(const Config &config);
64 
65 private slots:
66  void on_readFromTree_clicked();
67 
68 private:
69  Ui::ConfigDialog *ui;
70  DisplaceModel *mModel;
71 };
72 
73 #endif // CONFIGDIALOG_H
void set(const Config &config)
Definition: configdialog.cpp:103
~ConfigDialog()
Definition: configdialog.cpp:34
Definition: dteditorwindow.h:32
Definition: ui_configdialog.h:211
ConfigDialog(DisplaceModel *model, QWidget *parent=0)
Definition: configdialog.cpp:26
Definition: config.h:49
Definition: displacemodel.h:71
Definition: configdialog.h:54
bool get(Config &config) const
Definition: configdialog.cpp:39