/* * Copyright (c) 2018-2023, Andreas Kling * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace GUI { class AboutDialog final : public Dialog { C_OBJECT_ABSTRACT(AboutDialog) public: static ErrorOr> try_create(String name, String version, RefPtr icon = nullptr, Window* parent_window = nullptr); virtual ~AboutDialog() override = default; static ErrorOr show(String name, String version, RefPtr icon = nullptr, Window* parent_window = nullptr, RefPtr window_icon = nullptr); private: AboutDialog(String name, String version, RefPtr icon = nullptr, Window* parent_window = nullptr); String m_name; String m_version_string; RefPtr m_icon; }; }