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;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void addPhotosFromFile();
|
|
|
|
void addPhotosFromURL();
|
|
|
|
void removeAllPhotos();
|
|
|
|
void removeSelectedPhotos();
|
|
|
|
|
|
|
|
Ui::TabDivePhotos *ui;
|
|
|
|
DivePictureModel *divePictureModel;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|