mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
23d38a982d
Even though hashes of image contents are calculated, the hashes are not compared to actual file contents in routine-operation. Therefore give the user the option to recalculate thumbnails, should they have edited the picture. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
38 lines
738 B
C++
38 lines
738 B
C++
// 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
|