newflight.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. *openPilot Log - A FOSS Pilot Logbook Application
  3. *Copyright (C) 2020 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 NEWFLIGHT_H
  19. #define NEWFLIGHT_H
  20. #include <QDialog>
  21. namespace Ui {
  22. class NewFlight;
  23. }
  24. class NewFlight : public QDialog
  25. {
  26. Q_OBJECT
  27. public:
  28. explicit NewFlight(QWidget *parent = nullptr);
  29. ~NewFlight();
  30. private slots:
  31. void nope();//error box
  32. QString validateTimeInput(QString userinput);
  33. QVector<QString> collectInput();
  34. void fillExtrasLineEdits();
  35. void storeSettings();
  36. void restoreSettings();
  37. bool verifyInput();
  38. void returnInput(QVector<QString> flight);
  39. void on_deptTZ_currentTextChanged(const QString &arg1);
  40. void on_destTZ_currentIndexChanged(const QString &arg1);
  41. void on_newDept_textEdited(const QString &arg1);
  42. void on_newDept_editingFinished();
  43. void on_newDest_textEdited(const QString &arg1);
  44. void on_newDest_editingFinished();
  45. void on_newDoft_editingFinished();
  46. void on_newTofb_editingFinished();
  47. void on_newTonb_editingFinished();
  48. void on_newAcft_textEdited(const QString &arg1);
  49. void on_newAcft_editingFinished();
  50. void on_newPic_textEdited(const QString &arg1);
  51. void on_newPic_editingFinished();
  52. void on_verifyButton_clicked();
  53. void on_setAsDefaultButton_clicked();
  54. void on_restoreDefaultButton_clicked();
  55. void on_buttonBox_accepted();
  56. void on_buttonBox_rejected();
  57. void on_PilotFlyingCheckBox_stateChanged(int);
  58. void on_ApproachComboBox_currentTextChanged(const QString &arg1);
  59. void on_nightTimeLineEdit_editingFinished();
  60. private:
  61. Ui::NewFlight *ui;
  62. };
  63. #endif // NEWFLIGHT_H