// 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();
	void clear();

protected:
	void contextMenuEvent(QContextMenuEvent *ev);

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

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

#endif