summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GAboutDialog.h
blob: b4fdfe54dd64fd95905f425b9cfb70d44e89571f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <LibGUI/GDialog.h>

class GAboutDialog final : public GDialog {
    C_OBJECT(GAboutDialog)
public:
    GAboutDialog(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr);
    virtual ~GAboutDialog() override;

    static void show(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr)
    {
        GAboutDialog dialog(name, icon, parent);
        dialog.exec();
    }

private:
    String m_name;
    RefPtr<GraphicsBitmap> m_icon;
};