newflight.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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. #include "newacft.h"
  22. #include "calc.h"
  23. #include "dbsettings.h"
  24. #include "dbflight.h"
  25. #include "dbpilots.h"
  26. #include "dbairport.h"
  27. #include "dbaircraft.h"
  28. namespace Ui {
  29. class NewFlight;
  30. }
  31. class NewFlight : public QDialog
  32. {
  33. Q_OBJECT
  34. public:
  35. explicit NewFlight(QWidget *parent = nullptr);
  36. ~NewFlight();
  37. private slots:
  38. void nope();//error box
  39. QString validateTimeInput(QString userinput);
  40. QVector<QString> collectInput();
  41. void fillExtrasLineEdits();
  42. void storeSettings();
  43. void restoreSettings();
  44. bool verifyInput();
  45. void returnInput(QVector<QString> flight);
  46. void on_deptTZ_currentTextChanged(const QString &arg1);
  47. void on_destTZ_currentIndexChanged(const QString &arg1);
  48. void on_newDept_textEdited(const QString &arg1);
  49. void on_newDept_editingFinished();
  50. void on_newDest_textEdited(const QString &arg1);
  51. void on_newDest_editingFinished();
  52. void on_newDoft_editingFinished();
  53. void on_newTofb_editingFinished();
  54. void on_newTonb_editingFinished();
  55. void on_newAcft_textEdited(const QString &arg1);
  56. void on_newAcft_editingFinished();
  57. void on_newPic_textEdited(const QString &arg1);
  58. void on_newPic_editingFinished();
  59. void on_verifyButton_clicked();
  60. void on_setAsDefaultButton_clicked();
  61. void on_restoreDefaultButton_clicked();
  62. void on_buttonBox_accepted();
  63. void on_buttonBox_rejected();
  64. void on_PilotFlyingCheckBox_stateChanged(int);
  65. void on_ApproachComboBox_currentTextChanged(const QString &arg1);
  66. void on_tabWidget_tabBarClicked(int index);
  67. void on_spseTimeLineEdit_editingFinished();
  68. void on_spmeTimeLineEdit_editingFinished();
  69. void on_mpTimeLineEdit_editingFinished();
  70. void on_totalTimeLineEdit_editingFinished();
  71. void on_ifrTimeLineEdit_editingFinished();
  72. void on_vfrTimeLineEdit_editingFinished();
  73. void on_nightTimeLineEdit_editingFinished();
  74. void on_xcTimeLineEdit_editingFinished();
  75. void on_picTimeLineEdit_editingFinished();
  76. void on_copTimeLineEdit_editingFinished();
  77. void on_dualTimeLineEdit_editingFinished();
  78. void on_fiTimeLineEdit_editingFinished();
  79. void on_simTimeLineEdit_editingFinished();
  80. void on_secondPilotLineEdit_textEdited(const QString &arg1);
  81. void on_secondPilotLineEdit_editingFinished();
  82. void on_thirdPilotLineEdit_textEdited(const QString &arg1);
  83. void on_thirdPilotLineEdit_editingFinished();
  84. void on_FlightNumberLineEdit_editingFinished();
  85. private:
  86. Ui::NewFlight *ui;
  87. };
  88. #endif // NEWFLIGHT_H