2019-09-02 19:45:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibGUI/GDialog.h>
|
|
|
|
|
|
|
|
class GAboutDialog final : public GDialog {
|
|
|
|
C_OBJECT(GAboutDialog)
|
|
|
|
public:
|
|
|
|
virtual ~GAboutDialog() override;
|
|
|
|
|
|
|
|
static void show(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr)
|
|
|
|
{
|
2019-09-29 20:37:02 +02:00
|
|
|
auto dialog = GAboutDialog::construct(name, icon, parent);
|
|
|
|
dialog->exec();
|
2019-09-02 19:45:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2019-09-29 20:37:02 +02:00
|
|
|
GAboutDialog(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr);
|
|
|
|
|
2019-09-02 19:45:55 +02:00
|
|
|
String m_name;
|
|
|
|
RefPtr<GraphicsBitmap> m_icon;
|
|
|
|
};
|