openPilotLog
newairportdialog.h
1 #ifndef NEWAIRPORTDIALOG_H
2 #define NEWAIRPORTDIALOG_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7 class NewAirportDialog;
8 }
9 
10 class NewAirportDialog : public QDialog
11 {
12  Q_OBJECT
13 
14 public:
15  explicit NewAirportDialog(QWidget *parent = nullptr);
16  explicit NewAirportDialog(int row_id, QWidget* parent = nullptr);
18 
19 
20 private slots:
21  void on_buttonBox_accepted();
22 
23  void on_iataLineEdit_textChanged(const QString &arg1);
24 
25  void on_icaoLineEdit_textChanged(const QString &arg1);
26 
27  void on_buttonBox_rejected();
28 
29 private:
30  Ui::NewAirportDialog *ui;
31  void setValidators();
32  void loadTimeZones();
33  bool confirmTimezone();
34  void loadAirportData(int row_id);
35  bool verifyInput();
36  int rowId;
37 };
38 
39 #endif // NEWAIRPORTDIALOG_H
Definition: newairportdialog.h:11