File indexing completed on 2024-05-05 16:27:56

0001 // SPDX-FileCopyrightText: 2003-2013 Jesper K. Pedersen <jesper.pedersen@kdab.com>
0002 // SPDX-FileCopyrightText: 2013-2023 Johannes Zarl-Zierl <johannes@zarl-zierl.at>
0003 //
0004 // SPDX-License-Identifier: GPL-2.0-or-later
0005 
0006 #ifndef IMAGEVIEWPAGE_H
0007 #define IMAGEVIEWPAGE_H
0008 #include "BrowserPage.h"
0009 
0010 #include <DB/search/ImageSearchInfo.h>
0011 #include <kpabase/FileName.h>
0012 
0013 namespace Browser
0014 {
0015 
0016 /**
0017  * \brief The page showing the actual images.
0018  *
0019  * See \ref Browser for a detailed description of how this fits in with the rest of the classes in this module
0020  */
0021 class ImageViewPage : public BrowserPage
0022 {
0023 public:
0024     ImageViewPage(const DB::ImageSearchInfo &info, BrowserWidget *browser);
0025     ImageViewPage(const DB::FileName &context, BrowserWidget *browser);
0026     void activate() override;
0027     Viewer viewer() override;
0028     bool isSearchable() const override;
0029     bool showDuringMovement() const override;
0030     Breadcrumb breadcrumb() const override;
0031 
0032 private:
0033     DB::FileName m_context;
0034 };
0035 
0036 }
0037 
0038 #endif /* IMAGEVIEWPAGE_H */
0039 
0040 // vi:expandtab:tabstop=4 shiftwidth=4: