openPilotLog
debugwidget.h
1 /*
2  *openPilotLog - A FOSS Pilot Logbook Application
3  *Copyright (C) 2020-2022 Felix Turowsky
4  *
5  *This program is free software: you can redistribute it and/or modify
6  *it under the terms of the GNU General Public License as published by
7  *the Free Software Foundation, either version 3 of the License, or
8  *(at your option) any later version.
9  *
10  *This program is distributed in the hope that it will be useful,
11  *but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *GNU General Public License for more details.
14  *
15  *You should have received a copy of the GNU General Public License
16  *along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 #ifndef DEBUGWIDGET_H
19 #define DEBUGWIDGET_H
20 
21 #include <QWidget>
22 #include <QDir>
23 #include <QStandardPaths>
24 #include <QFile>
25 #include <QFileDialog>
26 #include <QMessageBox>
27 #include <QProcess>
28 
29 namespace Ui {
30 class DebugWidget;
31 }
32 
33 class DebugWidget : public QWidget
34 {
35  Q_OBJECT
36 
37 public:
38  explicit DebugWidget(QWidget *parent = nullptr);
39  ~DebugWidget();
40 
41 private slots:
42  void on_resetUserTablesPushButton_clicked();
43 
44  void on_resetDatabasePushButton_clicked();
45 
46  void downloadFinished();
47 
48  void on_fillUserDataPushButton_clicked();
49 
50  void on_selectCsvPushButton_clicked();
51 
52  void on_importCsvPushButton_clicked();
53 
54  void on_debugPushButton_clicked();
55 
56 private:
57  Ui::DebugWidget *ui;
58 
59  bool downloadComplete = false;
60 
61 protected:
62  void changeEvent(QEvent* event) override;
63 };
64 
65 #endif // DEBUGWIDGET_H
Definition: debugwidget.h:34