File indexing completed on 2025-01-05 04:00:14
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2023-12-24 0007 * Description : geo-location setup page. 0008 * 0009 * SPDX-FileCopyrightText: 2023-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_SETUP_GEOLOCATION_H 0016 #define DIGIKAM_SETUP_GEOLOCATION_H 0017 0018 // Qt includes 0019 0020 #include <QScrollArea> 0021 0022 // Local includes 0023 0024 #include "digikam_export.h" 0025 0026 namespace Digikam 0027 { 0028 0029 class DIGIKAM_EXPORT SetupGeolocation : public QScrollArea 0030 { 0031 Q_OBJECT 0032 0033 public: 0034 0035 enum GeolocationTab 0036 { 0037 MarbleView = 0, 0038 MarblePlugins, 0039 GoogleMaps 0040 }; 0041 0042 public: 0043 0044 explicit SetupGeolocation(QWidget* const parent = nullptr); 0045 ~SetupGeolocation() override; 0046 0047 void applySettings(); 0048 void cancel(); 0049 0050 void setActiveTab(GeolocationTab tab); 0051 GeolocationTab activeTab() const; 0052 0053 private: 0054 0055 void readSettings(); 0056 0057 private: 0058 0059 class Private; 0060 Private* const d; 0061 }; 0062 0063 } // namespace Digikam 0064 0065 #endif // DIGIKAM_SETUP_GEOLOCATION_H