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:
|
2022-09-09 16:12:31 +00:00
|
|
|
TabDivePhotos(MainTab *parent);
|
2017-04-04 17:21:30 +00:00
|
|
|
~TabDivePhotos();
|
2022-09-04 09:04:01 +00:00
|
|
|
void updateData(const std::vector<dive *> &selection, dive *currentDive, int currentDC) override;
|
2018-09-29 20:13:44 +00:00
|
|
|
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);
|
2019-04-14 14:19:23 +00:00
|
|
|
void saveSubtitles();
|
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
|