DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
mergedatadialog.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 MERGEDATADIALOG_H
22 #define MERGEDATADIALOG_H
23 
24 #include <QDialog>
25 
26 namespace Ui {
27 class MergeDataDialog;
28 }
29 
35 class MergeDataDialog : public QDialog
36 {
37  Q_OBJECT
38 
39 public:
40  explicit MergeDataDialog(QWidget *parent = 0);
42 
43  QString getInputFile() const;
44  QString getOutputFile() const;
45  void setInputFile (QString setInputFile);
46  void setOutputFile (QString setOutputFile);
47  void setDefaultOutputToInput(bool yes) {
48  mDefaultOutToIn = yes;
49  }
50  void setOutputRequiresTemplate(int numtemplates) {
51  mOutRequiresTemplate = numtemplates;
52  }
53 
54  double getDistance() const;
55 
56  QChar separator() const;
57 
58 private slots:
59  void on_ok_clicked();
60  void on_browseIn_clicked();
61  void on_browseOut_clicked();
62 
63 protected:
64  void insertPluggableComponent (QWidget *widget);
65 
66  virtual void inputFileSelected() {}
67 
68 private:
70 
71  bool mDefaultOutToIn = true;
72  int mOutRequiresTemplate = 0;
73 
74  static double lastDistance;
75 };
76 
77 #endif // MERGEDATADIALOG_H
void setOutputRequiresTemplate(int numtemplates)
Definition: mergedatadialog.h:50
QChar separator() const
Definition: mergedatadialog.cpp:59
QString getOutputFile() const
Definition: mergedatadialog.cpp:49
Definition: dteditorwindow.h:32
void setOutputFile(QString setOutputFile)
Definition: mergedatadialog.cpp:76
virtual void inputFileSelected()
Definition: mergedatadialog.h:66
Definition: ui_mergedatadialog.h:192
void setInputFile(QString setInputFile)
Definition: mergedatadialog.cpp:71
MergeDataDialog(QWidget *parent=0)
Definition: mergedatadialog.cpp:30
void setDefaultOutputToInput(bool yes)
Definition: mergedatadialog.h:47
double getDistance() const
Definition: mergedatadialog.cpp:54
QString getInputFile() const
Definition: mergedatadialog.cpp:44
void insertPluggableComponent(QWidget *widget)
Definition: mergedatadialog.cpp:178
~MergeDataDialog()
Definition: mergedatadialog.cpp:39
Implements the functionalities for mergedatadialog.ui.
Definition: mergedatadialog.h:35