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 "bergamotengineutils.h"
0009 #include "libbergamot_private_export.h"
0010 
0011 #include <QWidget>
0012 class QComboBox;
0013 class QCheckBox;
0014 class LIBBERGAMOT_TESTS_EXPORT BergamotEngineSettingsWidget : public QWidget
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit BergamotEngineSettingsWidget(QWidget *parent = nullptr);
0019     ~BergamotEngineSettingsWidget() override;
0020 
0021     void setSettingsInfo(const BergamotEngineUtils::SettingsInfo &info);
0022     [[nodiscard]] BergamotEngineUtils::SettingsInfo settingsInfo() const;
0023 
0024 private:
0025     void fillCombobox();
0026     QComboBox *const mNumberThreads;
0027     QComboBox *const mMemoryByThreads;
0028     QCheckBox *const mUseLocalCache;
0029 };