summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Wizards/WizardPage.h
blob: 3dfe2430ac9fa13e12df01d7bd2455092c591354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2021, Nick Vella <nick@nxk.io>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibGUI/ImageWidget.h>
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h>
#include <LibGUI/Wizards/AbstractWizardPage.h>

namespace GUI {

class WizardPage : public AbstractWizardPage {
    C_OBJECT(WizardPage);

    Widget& body_widget() { return *m_body_widget; };

    void set_page_title(String const& text);
    void set_page_subtitle(String const& text);

private:
    explicit WizardPage(String const& title_text, String const& subtitle_text);

    RefPtr<Widget> m_body_widget;

    RefPtr<Label> m_title_label;
    RefPtr<Label> m_subtitle_label;
};

}