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