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();
|
|
|
|
void updateData() override;
|
|
|
|
void clear() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void contextMenuEvent(QContextMenuEvent *ev) override;
|
|
|
|
|
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();
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|