/* * Copyright (c) 2022, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace GamesSettings { class Preview; class CardSettingsWidget final : public GUI::SettingsWindow::Tab { C_OBJECT(CardSettingsWidget) public: virtual ~CardSettingsWidget() override = default; virtual void apply_settings() override; virtual void reset_default_values() override; private: CardSettingsWidget(); bool set_card_back_image_path(DeprecatedString const&); DeprecatedString card_back_image_path() const; RefPtr m_preview_frame; RefPtr m_background_color_input; RefPtr m_card_back_image_view; GUI::ModelIndex m_last_selected_card_back; }; }