2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-04-04 17:21:30 +00:00
|
|
|
#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:
|
2017-04-04 18:01:47 +00:00
|
|
|
TabDivePhotos(QWidget *parent = 0);
|
2017-04-04 17:21:30 +00:00
|
|
|
~TabDivePhotos();
|
2018-09-29 20:13:44 +00:00
|
|
|
void updateData() override;
|
|
|
|
void clear() override;
|
2017-04-04 17:21:30 +00:00
|
|
|
|
|
|
|
protected:
|
2018-09-29 20:13:44 +00:00
|
|
|
void contextMenuEvent(QContextMenuEvent *ev) override;
|
2017-04-04 17:21:30 +00:00
|
|
|
|
2017-07-12 15:25:40 +00:00
|
|
|
private slots:
|
2017-04-04 17:21:30 +00:00
|
|
|
void addPhotosFromFile();
|
|
|
|
void addPhotosFromURL();
|
|
|
|
void removeAllPhotos();
|
|
|
|
void removeSelectedPhotos();
|
2018-05-27 12:03:29 +00:00
|
|
|
void recalculateSelectedThumbnails();
|
2018-07-18 21:09:31 +00:00
|
|
|
void openFolderOfSelectedFiles();
|
2017-12-17 15:17:38 +00:00
|
|
|
void changeZoomLevel(int delta);
|
2017-04-04 17:21:30 +00:00
|
|
|
|
2017-07-12 15:25:40 +00:00
|
|
|
private:
|
2017-04-04 17:21:30 +00:00
|
|
|
Ui::TabDivePhotos *ui;
|
|
|
|
DivePictureModel *divePictureModel;
|
2018-05-27 12:03:29 +00:00
|
|
|
QVector<QString> getSelectedFilenames() const;
|
2017-04-04 17:21:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|