summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Wizards/AbstractWizardPage.cpp
blob: b8ae89085df3f4d37cd204d04815bc6636a8101c (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
34
35
36
/*
 * Copyright (c) 2021, Nick Vella <nick@nxk.io>
 * Copyright (c) 2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibGUI/Wizards/AbstractWizardPage.h>

namespace GUI {

RefPtr<AbstractWizardPage> AbstractWizardPage::next_page()
{
    if (on_next_page)
        return on_next_page();
    return nullptr;
}

bool AbstractWizardPage::can_go_next()
{
    return !!on_next_page;
}

void AbstractWizardPage::page_enter()
{
    if (on_page_enter)
        return on_page_enter();
}

void AbstractWizardPage::page_leave()
{
    if (on_page_leave)
        return on_page_leave();
}

}