mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:42:45 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			549 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			549 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <LibGUI/GDialog.h>
 | |
| 
 | |
| class GAboutDialog final : public GDialog {
 | |
|     C_OBJECT(GAboutDialog)
 | |
| public:
 | |
|     virtual ~GAboutDialog() override;
 | |
| 
 | |
|     static void show(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr)
 | |
|     {
 | |
|         auto dialog = GAboutDialog::construct(name, icon, parent);
 | |
|         dialog->exec();
 | |
|     }
 | |
| 
 | |
| private:
 | |
|     GAboutDialog(const StringView& name, const GraphicsBitmap* icon = nullptr, CObject* parent = nullptr);
 | |
| 
 | |
|     String m_name;
 | |
|     RefPtr<GraphicsBitmap> m_icon;
 | |
| };
 | 
