aboutsummaryrefslogblamecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDivePhotos.h
blob: 5298c703998a84920bd36981f265121852e3c596 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
                                   












                                      
                                           
                         
                          
          
                                                     
 
              


                                    
                                             
                                         
                                        
 
        
                                           
                                                      

      
// 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();
	void clear();

protected:
	void contextMenuEvent(QContextMenuEvent *ev);

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