
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 *
40 lines
826 B
C++
40 lines
826 B
C++
/*
|
|
* Copyright (c) 2021, Nick Vella <nick@nxk.io>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/NonnullRefPtrVector.h>
|
|
#include <LibGUI/Widget.h>
|
|
|
|
namespace GUI {
|
|
|
|
class AbstractWizardPage : public Widget {
|
|
C_OBJECT_ABSTRACT(AbstractWizardPage);
|
|
|
|
public:
|
|
virtual ~AbstractWizardPage() override;
|
|
|
|
Function<RefPtr<AbstractWizardPage>()> on_next_page;
|
|
virtual RefPtr<AbstractWizardPage> next_page();
|
|
virtual bool can_go_next();
|
|
|
|
Function<void()> on_page_enter;
|
|
virtual void page_enter();
|
|
|
|
Function<void()> on_page_leave;
|
|
virtual void page_leave();
|
|
|
|
bool is_final_page() const { return m_is_final_page; }
|
|
void set_is_final_page(bool val) { m_is_final_page = val; }
|
|
|
|
protected:
|
|
AbstractWizardPage();
|
|
|
|
private:
|
|
bool m_is_final_page { false };
|
|
};
|
|
|
|
}
|