summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tripselectiondialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tripselectiondialog.h')
-rw-r--r--desktop-widgets/tripselectiondialog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/desktop-widgets/tripselectiondialog.h b/desktop-widgets/tripselectiondialog.h
new file mode 100644
index 000000000..9cef28e17
--- /dev/null
+++ b/desktop-widgets/tripselectiondialog.h
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TRIPSELECTIONDIALOG_H
+#define TRIPSELECTIONDIALOG_H
+
+#include <QDialog>
+#include "ui_tripselectiondialog.h"
+
+struct dive_trip;
+
+class TripSelectionDialog : public QDialog {
+ Q_OBJECT
+private
+slots:
+ void selectionChanged();
+public:
+ TripSelectionDialog(QWidget *parent); // Must pass in MainWindow for QShortcut hackery.
+ dive_trip *getTrip(); // NULL if user canceled.
+private:
+ dive_trip *selectedTrip() const;
+ Ui::TripSelectionDialog ui;
+};
+
+#endif // TRIPSELECTIONDIALOG_H