summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDivePhotos.h
blob: a752fef195836a23dfcdea82b427d4c0157c806e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: GPL-2.0
#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 = 0);
	~TabDivePhotos();
	void updateData() override;
	void clear() override;

protected:
	void contextMenuEvent(QContextMenuEvent *ev) override;

private slots:
	void addPhotosFromFile();
	void addPhotosFromURL();
	void removeAllPhotos();
	void removeSelectedPhotos();
	void recalculateSelectedThumbnails();
	void changeZoomLevel(int delta);

private:
	Ui::TabDivePhotos *ui;
	DivePictureModel *divePictureModel;
	QVector<QString> getSelectedFilenames() const;
};

#endif