WizardPage.h 687 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2021, Nick Vella <nick@nxk.io>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibGUI/ImageWidget.h>
  8. #include <LibGUI/Label.h>
  9. #include <LibGUI/Widget.h>
  10. #include <LibGUI/Wizards/AbstractWizardPage.h>
  11. namespace GUI {
  12. class WizardPage : public AbstractWizardPage {
  13. C_OBJECT(WizardPage);
  14. Widget& body_widget() { return *m_body_widget; };
  15. void set_page_title(String const& text);
  16. void set_page_subtitle(String const& text);
  17. private:
  18. explicit WizardPage(String const& title_text, String const& subtitle_text);
  19. RefPtr<Widget> m_body_widget;
  20. RefPtr<Label> m_title_label;
  21. RefPtr<Label> m_subtitle_label;
  22. };
  23. }