mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:07:44 +00:00
GamesSettings: Port GamesSettings to GML compilation
Co-Authored-By: Tim Schumacher <timschumi@gmx.de>
This commit is contained in:
parent
935aaab757
commit
e26548989a
10 changed files with 281 additions and 233 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "ChessGamePreview.h"
|
||||
#include <AK/Array.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibGUI/SettingsWindow.h>
|
||||
|
@ -13,12 +14,11 @@
|
|||
|
||||
namespace GamesSettings {
|
||||
|
||||
class ChessGamePreview;
|
||||
|
||||
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;
|
||||
|
@ -30,7 +30,7 @@ private:
|
|||
|
||||
Vector<DeprecatedString> m_piece_sets;
|
||||
|
||||
RefPtr<ChessGamePreview> m_preview;
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue