File indexing completed on 2024-11-24 04:16:54
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "bergamotenginesettingswidget.h" 0009 #include "bergamotengineutils.h" 0010 #include "libbergamot_export.h" 0011 #include <QWidget> 0012 class QTabWidget; 0013 class BergamotEngineLanguageWidget; 0014 class LIBBERGAMOT_EXPORT BergamotEngineWidget : public QWidget 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit BergamotEngineWidget(QWidget *parent = nullptr); 0019 ~BergamotEngineWidget() override; 0020 0021 void setSettingsInfo(const BergamotEngineUtils::SettingsInfo &info); 0022 [[nodiscard]] BergamotEngineUtils::SettingsInfo settingsInfo() const; 0023 0024 private: 0025 QTabWidget *const mTabWidget; 0026 BergamotEngineLanguageWidget *const mLanguageWidget; 0027 BergamotEngineSettingsWidget *const mSettingsWidget; 0028 };