/* * Copyright (c) 2021, Pedro Pereira * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include class Field; class CustomGameDialog : public GUI::Dialog { C_OBJECT(CustomGameDialog); public: static int show(GUI::Window* parent_window, Field& field); private: CustomGameDialog(GUI::Window* parent_window); virtual ~CustomGameDialog() override = default; void set_max_mines(); RefPtr m_ok_button; RefPtr m_cancel_button; RefPtr m_columns_spinbox; RefPtr m_rows_spinbox; RefPtr m_mines_spinbox; };