File indexing completed on 2024-05-05 16:27:56
0001 // SPDX-FileCopyrightText: 2009-2013 Jesper K. Pedersen <jesper.pedersen@kdab.com> 0002 // SPDX-FileCopyrightText: 2013-2023 Johannes Zarl-Zierl <johannes@zarl-zierl.at> 0003 // SPDX-FileCopyrightText: 2018-2022 Tobias Leupold <tl@stonemx.de> 0004 // 0005 // SPDX-License-Identifier: GPL-2.0-or-later 0006 0007 #ifndef GEOPOSITIONPAGE_H 0008 #define GEOPOSITIONPAGE_H 0009 #include "BrowserPage.h" 0010 0011 #include <DB/Category.h> 0012 #include <DB/CategoryPtr.h> 0013 #include <DB/search/ImageSearchInfo.h> 0014 0015 class QAbstractItemModel; 0016 class FlatCategoryModel; 0017 class BrowserWidget; 0018 0019 namespace Browser 0020 { 0021 0022 /** 0023 * \brief The Browser page for categories. 0024 * 0025 * See \ref Browser for a detailed description of how this fits in with the rest of the classes in this module 0026 * 0027 */ 0028 class GeoPositionPage : public BrowserPage 0029 { 0030 Q_OBJECT 0031 public: 0032 GeoPositionPage(const DB::ImageSearchInfo &info, BrowserWidget *browser); 0033 Viewer viewer() override; 0034 void activate() override; 0035 void deactivate() override; 0036 bool isSearchable() const override; 0037 bool showDuringMovement() const override; 0038 0039 public Q_SLOTS: 0040 void slotNewRegionSelected(Map::GeoCoordinates::LatLonBox coordinates); 0041 0042 private: 0043 bool m_active; 0044 }; 0045 0046 } 0047 0048 #endif /* GEOPOSITIONPAGE_H */ 0049 0050 // vi:expandtab:tabstop=4 shiftwidth=4: