aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDivePhotos.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDivePhotos.h')
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.h b/desktop-widgets/tab-widgets/TabDivePhotos.h
new file mode 100644
index 000000000..f2c73b572
--- /dev/null
+++ b/desktop-widgets/tab-widgets/TabDivePhotos.h
@@ -0,0 +1,33 @@
+#ifndef TAB_DIVE_PHOTOS_H
+#define TAB_DIVE_PHOTOS_H
+
+#include "TabBase.h"
+
+namespace Ui {
+ class TabDivePhotos;
+};
+
+class DivePictureModel;
+
+class TabDivePhotos : public TabBase {
+ Q_OBJECT
+public:
+ TabDivePhotos(QWidget *parent);
+ ~TabDivePhotos();
+ void updateData() override;
+ void clear() override;
+
+protected:
+ void contextMenuEvent(QContextMenuEvent *ev) override;
+
+private:
+ void addPhotosFromFile();
+ void addPhotosFromURL();
+ void removeAllPhotos();
+ void removeSelectedPhotos();
+
+ Ui::TabDivePhotos *ui;
+ DivePictureModel *divePictureModel;
+};
+
+#endif