File indexing completed on 2024-05-12 04:19:49
0001 /* 0002 Gwenview: an image viewer 0003 Copyright 2007 Aurélien Gâteau <agateau@kde.org> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public License 0007 as published by the Free Software Foundation; either version 2 0008 of the License, or (at your option) any later version. 0009 0010 This program is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 GNU General Public License for more details. 0014 0015 You should have received a copy of the GNU General Public License 0016 along with this program; if not, write to the Free Software 0017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 0019 */ 0020 #ifndef ABSTRACTTHUMBNAILVIEWHELPER_H 0021 #define ABSTRACTTHUMBNAILVIEWHELPER_H 0022 0023 #include <lib/gwenviewlib_export.h> 0024 0025 // Qt 0026 #include <QObject> 0027 #include <QUrl> 0028 0029 // KF 0030 0031 // Local 0032 0033 namespace Gwenview 0034 { 0035 /** 0036 * This class is used by the ThumbnailView to request various things. 0037 */ 0038 class GWENVIEWLIB_EXPORT AbstractThumbnailViewHelper : public QObject 0039 { 0040 Q_OBJECT 0041 public: 0042 explicit AbstractThumbnailViewHelper(QObject *parent); 0043 ~AbstractThumbnailViewHelper() override; 0044 0045 virtual void showContextMenu(QWidget *parent) = 0; 0046 0047 virtual void showMenuForUrlDroppedOnViewport(QWidget *parent, const QList<QUrl> &) = 0; 0048 0049 virtual void showMenuForUrlDroppedOnDir(QWidget *parent, const QList<QUrl> &, const QUrl &) = 0; 0050 }; 0051 0052 } // namespace 0053 0054 #endif /* ABSTRACTTHUMBNAILVIEWHELPER_H */