editflight.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 EDITFLIGHT_H
  19. #define EDITFLIGHT_H
  20. #include <QDialog>
  21. namespace Ui {
  22. class EditFlight;
  23. }
  24. class EditFlight : public QDialog
  25. {
  26. Q_OBJECT
  27. public:
  28. explicit EditFlight(QWidget *parent = nullptr);
  29. ~EditFlight();
  30. private slots:
  31. void nope();//error box
  32. QVector<QString> collectInput();
  33. bool verifyInput();
  34. void returnInput(QVector<QString> flight);
  35. void on_verifyButton_clicked();
  36. void on_buttonBox_accepted();
  37. void on_buttonBox_rejected();
  38. void on_newDept_editingFinished();
  39. void on_newDoft_editingFinished();
  40. void on_newTofb_editingFinished();
  41. void on_newDest_editingFinished();
  42. void on_newTonb_editingFinished();
  43. void on_newAcft_editingFinished();
  44. void on_newPic_editingFinished();
  45. void on_newDept_textChanged(const QString &arg1);
  46. void on_newDest_textChanged(const QString &arg1);
  47. void on_newAcft_textChanged(const QString &arg1);
  48. void on_newPic_textChanged(const QString &arg1);
  49. private:
  50. Ui::EditFlight *ui;
  51. };
  52. #endif // EDITFLIGHT_H