Vespucci  1.0.0
bulkconversiondialog.h
Go to the documentation of this file.
1 #ifndef BULKCONVERSIONDIALOG_H
2 #define BULKCONVERSIONDIALOG_H
3 
4 #include <QDialog>
6 #include "GUI/mainwindow.h"
7 #include <mlpack/core.hpp>
8 
9 
10 namespace Ui {
12 }
13 
14 class BulkConversionDialog : public QDialog
15 {
16  Q_OBJECT
17 
18 public:
19  explicit BulkConversionDialog(MainWindow *parent, QSharedPointer<VespucciWorkspace> ws);
21 
22 private slots:
23  void on_browsePushButton_clicked();
24  void DeleteItem();
25 
26  void on_buttonBox_accepted();
27 
28  void on_BrowsePushButton_clicked();
29 
30 private:
31  Ui::BulkConversionDialog *ui;
32  QSharedPointer<VespucciWorkspace> workspace_;
33 
34  bool SaveHDF5(string filename,
35  const mat &spectra,
36  const vec &abscissa,
37  const vec &x,
38  const vec &y) const;
39  enum infile_type{long_text, wide_text, binary, oldbinary};
40  enum outfile_type{v_binary, text};
41  vector<string> SaveFiles(vector<string> infile_names,
42  string outfile_path,
43  infile_type intype, arma::file_type outtype,
44  bool swap_spatial = false) const;
45 
46  const QString GetSep(const QString &filename) const;
47  void WriteFile(const arma::file_type &type,
48  const string filename,
49  const arma::mat &spectra,
50  const arma::vec &abscissa,
51  const arma::vec &x, const arma::vec &y) const;
52 
53 };
54 
55 #endif // BULKCONVERSIONDIALOG_H
Definition: ahcadialog.h:26
The MainWindow class The main window of the program, this is where the user performs most operations...
Definition: mainwindow.h:58