mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
e26548989a
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "ChessGamePreview.h"
|
|
#include <AK/Array.h>
|
|
#include <AK/StringView.h>
|
|
#include <LibGUI/SettingsWindow.h>
|
|
#include <LibGfx/Color.h>
|
|
|
|
namespace GamesSettings {
|
|
|
|
class ChessSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT_ABSTRACT(ChessSettingsWidget)
|
|
public:
|
|
static ErrorOr<NonnullRefPtr<ChessSettingsWidget>> try_create();
|
|
static ErrorOr<NonnullRefPtr<ChessSettingsWidget>> create();
|
|
virtual ~ChessSettingsWidget() override = default;
|
|
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
ChessSettingsWidget() = default;
|
|
ErrorOr<void> initialize();
|
|
|
|
Vector<DeprecatedString> m_piece_sets;
|
|
|
|
RefPtr<GamesSettings::ChessGamePreview> m_preview;
|
|
RefPtr<GUI::ComboBox> m_piece_set_combobox;
|
|
RefPtr<GUI::ComboBox> m_board_theme_combobox;
|
|
RefPtr<GUI::CheckBox> m_show_coordinates_checkbox;
|
|
RefPtr<GUI::CheckBox> m_highlight_checks_checkbox;
|
|
};
|
|
|
|
}
|