ladybird/Userland/Libraries/LibGUI/Wizards/AbstractWizardPage.cpp
Brian Gianforcaro 1682f0b760 Everything: Move to SPDX license identifiers in all files.
SPDX License Identifiers are a more compact / standardized
way of representing file license information.

See: https://spdx.dev/resources/use/#identifiers

This was done with the `ambr` search and replace tool.

 ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00

43 lines
664 B
C++

/*
* Copyright (c) 2021, Nick Vella <nick@nxk.io>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGUI/Wizards/AbstractWizardPage.h>
namespace GUI {
AbstractWizardPage::AbstractWizardPage()
{
}
AbstractWizardPage::~AbstractWizardPage()
{
}
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();
}
}