openPilotLog
newsimdialog.h
1 #ifndef NEWSIMDIALOG_H
2 #define NEWSIMDIALOG_H
3 
4 #include <QDialog>
5 #include "src/database/row.h"
6 #include "src/database/database.h"
7 #include "src/database/dbcompletiondata.h"
8 
9 namespace Ui {
10 class NewSimDialog;
11 }
12 
22 class NewSimDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  explicit NewSimDialog(QWidget *parent = nullptr);
28  explicit NewSimDialog(int row_id, QWidget *parent = nullptr);
29  ~NewSimDialog();
30 
31 private slots:
32  void on_buttonBox_accepted();
33 
34  void on_dateLineEdit_editingFinished();
35 
36  void on_totalTimeLineEdit_editingFinished();
37 
38  void on_helpPushButton_clicked();
39 
40  void on_registrationLineEdit_textChanged(const QString &arg1);
41 
42 private:
43  Ui::NewSimDialog *ui;
44  void init();
45  void fillEntryData();
46  bool verifyInput(QString &error_msg);
47  RowData_T collectInput();
48 
49  OPL::SimulatorEntry entry;
50 };
51 
52 #endif // NEWSIMDIALOG_H
The NewSimDialog class enables adding a new Simulator Session to the database or editing an existing ...
Definition: newsimdialog.h:23
NewSimDialog(QWidget *parent=nullptr)
create a NewSimDialog to add a new Simulator Entry to the database
Definition: newsimdialog.cpp:10
Definition: row.h:73