File indexing completed on 2025-01-05 03:59:34

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2023-12-21
0007  * Description : Marble Settings View.
0008  *
0009  * SPDX-FileCopyrightText: 2009      by Bastian Holst <bastianholst at gmx dot de>
0010  * SPDX-FileCopyrightText: 2022-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: LGPL-2.1-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef MARBLE_CONFIG_VIEW_H
0017 #define MARBLE_CONFIG_VIEW_H
0018 
0019 // Qt includes
0020 
0021 #include <QTabWidget>
0022 
0023 // Local includes
0024 
0025 #include "MarbleGlobal.h"
0026 #include "MarbleLocale.h"
0027 #include "digikam_export.h"
0028 
0029 namespace Marble
0030 {
0031 
0032 class MarbleWidget;
0033 
0034 class DIGIKAM_EXPORT MarbleConfigView : public QTabWidget
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     explicit MarbleConfigView(MarbleWidget* const marbleWidget,
0041                               QWidget* const parent = nullptr);
0042     ~MarbleConfigView() override;
0043 
0044     void readSettings();
0045     void applySettings();
0046     void cancel();
0047 
0048 private:
0049 
0050     Q_DISABLE_COPY(MarbleConfigView)
0051 
0052     class Private;
0053     Private* const d;
0054 };
0055 
0056 } // namespace Marble
0057 
0058 #endif // MARBLE_CONFIG_VIEW_H