mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:32:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			789 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			789 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * 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_ABSTRACT(WizardPage);
 | |
| 
 | |
|     static ErrorOr<NonnullRefPtr<WizardPage>> create(StringView title, StringView subtitle);
 | |
| 
 | |
|     Widget& body_widget() { return *m_body_widget; }
 | |
| 
 | |
|     void set_page_title(String);
 | |
|     void set_page_subtitle(String);
 | |
| 
 | |
| protected:
 | |
|     virtual ErrorOr<void> build(String title, String subtitle);
 | |
| 
 | |
| private:
 | |
|     WizardPage() = default;
 | |
| 
 | |
|     RefPtr<Widget> m_body_widget;
 | |
| 
 | |
|     RefPtr<Label> m_title_label;
 | |
|     RefPtr<Label> m_subtitle_label;
 | |
| };
 | |
| 
 | |
| }
 | 
