// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) #pragma once #include "core/types.h" #include #include "ui_biossettingswidget.h" class SettingsDialog; enum class ConsoleRegion; namespace BIOS { struct ImageInfo; } class BIOSSettingsWidget : public QWidget { Q_OBJECT public: explicit BIOSSettingsWidget(SettingsDialog* dialog, QWidget* parent); ~BIOSSettingsWidget(); static void populateDropDownForRegion(ConsoleRegion region, QComboBox* cb, std::vector>& images, bool per_game); static void setDropDownValue(QComboBox* cb, const std::optional& name, bool per_game); static std::vector> getList(const char* directory); private Q_SLOTS: void refreshList(); private: Ui::BIOSSettingsWidget m_ui; SettingsDialog* m_dialog; };