mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-29 13:40:20 +00:00
4f42e4fd50
Add a context-menu entry to TabDivePhotos which opens the folder(s) of all selected files. Fixes #1514. Suggested-by: Stefan Fuchs <sfuchs@gmx.de> Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
39 lines
773 B
C++
39 lines
773 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 openFolderOfSelectedFiles();
|
|
void changeZoomLevel(int delta);
|
|
|
|
private:
|
|
Ui::TabDivePhotos *ui;
|
|
DivePictureModel *divePictureModel;
|
|
QVector<QString> getSelectedFilenames() const;
|
|
};
|
|
|
|
#endif
|