diff --git a/core/app/items/digikamimageview.h b/core/app/items/digikamimageview.h index 3e57ed707c..41b3a40e1d 100644 --- a/core/app/items/digikamimageview.h +++ b/core/app/items/digikamimageview.h @@ -1,128 +1,127 @@ /* ============================================================ * * This file is a part of digiKam project * http://www.digikam.org * * Date : 2009-04-24 * Description : Qt item view for images * * Copyright (C) 2009-2011 by Marcel Wiesweg * Copyright (C) 2009-2018 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef DIGIKAM_IMAGE_VIEW_H #define DIGIKAM_IMAGE_VIEW_H // Local includes #include "applicationsettings.h" #include "imagecategorizedview.h" #include "imageviewutilities.h" #include "groupingviewimplementation.h" namespace Digikam { class ImageViewUtilities; class ImageInfoList; class DigikamImageView : public ImageCategorizedView, public GroupingViewImplementation { Q_OBJECT public: explicit DigikamImageView(QWidget* const parent = 0); ~DigikamImageView(); ImageViewUtilities* utilities() const; int fitToWidthIcons(); virtual void setThumbnailSize(const ThumbnailSize& size); ImageInfoList allImageInfos(bool grouping = false) const; ImageInfoList selectedImageInfos(bool grouping = false) const; ImageInfoList selectedImageInfosCurrentFirst(bool grouping = false) const; bool allNeedGroupResolving(const ApplicationSettings::OperationType type) const; bool selectedNeedGroupResolving(const ApplicationSettings::OperationType type) const; public Q_SLOTS: void openFile(const ImageInfo& info); void deleteSelected(const ImageViewUtilities::DeleteMode deleteMode = ImageViewUtilities::DeleteUseTrash); void deleteSelectedDirectly(const ImageViewUtilities::DeleteMode deleteMode = ImageViewUtilities::DeleteUseTrash); void rename(); void assignRating(const QList& index, int rating); void setFaceMode(bool on); void confirmFaces(const QList& indexes, int tagId); void removeFaces(const QList& indexes); Q_SIGNALS: void previewRequested(const ImageInfo& info); void fullscreenRequested(const ImageInfo& info); void signalShowContextMenu(QContextMenuEvent* event, const QList& actions = QList()); void signalShowContextMenuOnInfo(QContextMenuEvent* event, const ImageInfo& info, const QList& actions, ImageFilterModel* filterModel); void signalShowGroupContextMenu(QContextMenuEvent* event, const QList& selectedInfos, ImageFilterModel* filterModel); protected Q_SLOTS: void groupIndicatorClicked(const QModelIndex& index); void showGroupContextMenu(const QModelIndex& index, QContextMenuEvent* event); protected: void addRejectionOverlay(ImageDelegate* delegate = 0); void addAssignNameOverlay(ImageDelegate* delegate = 0); virtual void activated(const ImageInfo& info, Qt::KeyboardModifiers modifiers); virtual void showContextMenuOnInfo(QContextMenuEvent* event, const ImageInfo& info); virtual void showContextMenu(QContextMenuEvent* event); virtual void slotSetupChanged(); virtual bool hasHiddenGroupedImages(const ImageInfo& info) const; ImageInfoList imageInfos(const QList& indexes, - ApplicationSettings::OperationType type - = ApplicationSettings::Unspecified) const; + ApplicationSettings::OperationType type) const; private Q_SLOTS: void slotRotateLeft(const QList&); void slotRotateRight(const QList&); void slotFullscreen(const QList&); void slotInitProgressIndicator(); private: class Private; Private* const d; }; } // namespace Digikam #endif // DIGIKAM_IMAGE_VIEW_H