18 #ifndef LOGBOOKWIDGET_H
19 #define LOGBOOKWIDGET_H
22 #include <QItemSelection>
23 #include <QSqlTableModel>
24 #include <QMessageBox>
29 #include "src/classes/asettings.h"
30 #include "src/database/db.h"
31 #include "src/classes/flight.h"
32 #include "src/gui/dialogues/newflightdialog.h"
33 #include "src/experimental/aflightentry.h"
48 void on_newFlightButton_clicked();
49 void on_editFlightButton_clicked();
50 void on_deleteFlightPushButton_clicked();
51 void on_showAllButton_clicked();
52 void flightsTableView_selectionChanged();
53 void on_tableView_customContextMenuRequested(
const QPoint &pos);
54 void on_actionDelete_Flight_triggered();
55 void on_actionEdit_Flight_triggered();
56 void on_tableView_doubleClicked();
57 void on_flightSearchLlineEdit_textChanged(
const QString &arg1);
58 void on_flightSearchComboBox_currentIndexChanged(
int);
61 void onDisplayModel_dataBaseUpdated();
62 void onLogbookWidget_viewSelectionChanged(
int);
65 Ui::LogbookWidget *ui;
69 QSqlTableModel* displayModel;
71 QItemSelectionModel* selectionModel;
75 QMessageBox* messageBox;
77 QVector<qint32> selectedFlights;
79 void prepareModelAndView(
int view_id);
80 void connectSignalsAndSlots();
81 void setupDefaultView();
85 #endif // LOGBOOKWIDGET_H