DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
vesseleditormainwindow.h
Go to the documentation of this file.
1 #ifndef VESSELEDITORMAINWINDOW_H
2 #define VESSELEDITORMAINWINDOW_H
3 
4 #include <QMainWindow>
5 
6 #include <memory>
7 
8 namespace Ui {
10 }
11 
12 class CsvTableModel;
13 
14 QT_BEGIN_NAMESPACE
15 class QSortFilterProxyModel;
16 class QPushButton;
17 QT_END_NAMESPACE
18 
20 
21 class VesselEditorMainWindow : public QMainWindow
22 {
23  Q_OBJECT
24 
25 public:
26  explicit VesselEditorMainWindow(QWidget *parent = 0);
28 
29  static const QString VesselsSpecFilename;
30  static const QString VesselsSpec2Filename;
31  static const QString VesselsSpec3Filename;
32  static const QString VesselsSpec4Filename;
33  static const QString Pop1SpecFilename;
34  static const QString Pop2SpecFilename;
35  static const QString Pop3SpecFilename;
36  static const QString ShippingFeaturesFilename;
37  static const QString ShippingLanesCoordFilename;
38  static const QString FishfarmsFeaturesFilename;
39  static const QString WindmillsFeaturesFilename;
40  static const QString FirmsFeaturesFilename;
41 
42 private slots:
43  void on_browseInputPath_clicked();
44  void on_browseGISPath_clicked();
45  void on_browseBasePath_clicked();
46  void on_tabWidget_currentChanged(int index);
47 
48  void on_configRScript_clicked();
49 
50 private:
52  MapShapefileListAdapter *mVesMapListAdapter;
53  MapShapefileListAdapter *mPopMapListAdapter;
54  MapShapefileListAdapter *mBenthosMapListAdapter;
55 
56  bool runScript(QString script);
57  void fillRScriptsArgs(QStringList &args, const QString &script);
58 
59  void lightup (int id, bool on);
60  void setNext (int id, int next);
61 
62  QVector<QPushButton *> mButtons;
63 };
64 
65 #endif // VESSELEDITORMAINWINDOW_H
static const QString ShippingFeaturesFilename
Definition: vesseleditormainwindow.h:36
static const QString FishfarmsFeaturesFilename
Definition: vesseleditormainwindow.h:38
~VesselEditorMainWindow()
Definition: vesseleditormainwindow.cpp:227
static const QString ShippingLanesCoordFilename
Definition: vesseleditormainwindow.h:37
Definition: csvtablemodel.h:11
Definition: vesseleditormainwindow.h:21
Definition: dteditorwindow.h:32
VesselEditorMainWindow(QWidget *parent=0)
Definition: vesseleditormainwindow.cpp:57
Definition: ui_vesseleditormainwindow.h:807
static const QString VesselsSpecFilename
Definition: vesseleditormainwindow.h:29
static const QString FirmsFeaturesFilename
Definition: vesseleditormainwindow.h:40
static const QString VesselsSpec2Filename
Definition: vesseleditormainwindow.h:30
static const QString Pop3SpecFilename
Definition: vesseleditormainwindow.h:35
static const QString Pop2SpecFilename
Definition: vesseleditormainwindow.h:34
static const QString WindmillsFeaturesFilename
Definition: vesseleditormainwindow.h:39
static const QString VesselsSpec3Filename
Definition: vesseleditormainwindow.h:31
static const QString VesselsSpec4Filename
Definition: vesseleditormainwindow.h:32
Definition: mapshapefilelistadapter.h:12
static const QString Pop1SpecFilename
Definition: vesseleditormainwindow.h:33