/* * Copyright (c) 2023, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace GamesSettings { class ChessGamePreview; class ChessSettingsWidget final : public GUI::SettingsWindow::Tab { C_OBJECT_ABSTRACT(ChessSettingsWidget) public: static ErrorOr> try_create(); virtual ~ChessSettingsWidget() override = default; virtual void apply_settings() override; virtual void reset_default_values() override; private: ChessSettingsWidget() = default; ErrorOr initialize(); Vector m_piece_sets; RefPtr m_preview; RefPtr m_piece_set_combobox; RefPtr m_board_theme_combobox; RefPtr m_show_coordinates_checkbox; }; }