2021-02-21 22:40:08 +11:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Nick Vella <nick@nxk.io>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-02-21 22:40:08 +11:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibGUI/ImageWidget.h>
|
|
|
|
|
#include <LibGUI/Label.h>
|
|
|
|
|
#include <LibGUI/Widget.h>
|
|
|
|
|
#include <LibGUI/Wizards/AbstractWizardPage.h>
|
|
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
|
|
class CoverWizardPage : public AbstractWizardPage {
|
2023-06-08 07:46:11 -04:00
|
|
|
C_OBJECT_ABSTRACT(CoverWizardPage);
|
|
|
|
|
|
|
|
|
|
static ErrorOr<NonnullRefPtr<CoverWizardPage>> create(StringView title, StringView subtitle);
|
2021-02-21 22:40:08 +11:00
|
|
|
|
|
|
|
|
ImageWidget& banner_image_widget() { return *m_banner_image_widget; }
|
|
|
|
|
|
2023-06-08 07:46:11 -04:00
|
|
|
void set_header_text(String);
|
|
|
|
|
void set_body_text(String);
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual ErrorOr<void> build(String title, String subtitle);
|
2021-02-21 22:40:08 +11:00
|
|
|
|
|
|
|
|
private:
|
2023-06-08 07:46:11 -04:00
|
|
|
CoverWizardPage() = default;
|
2021-02-21 22:40:08 +11:00
|
|
|
|
|
|
|
|
RefPtr<ImageWidget> m_banner_image_widget;
|
|
|
|
|
RefPtr<Widget> m_content_widget;
|
|
|
|
|
|
|
|
|
|
RefPtr<Label> m_header_label;
|
|
|
|
|
RefPtr<Label> m_body_label;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|