mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:42:43 +00:00 
			
		
		
		
	 4931c88b13
			
		
	
	
		4931c88b13
		
	
	
	
	
		
			
			Prefixes are very much a C thing which we don't need in C++. This commit moves all GML-related classes in LibGUI into the GUI::GML namespace, a change somewhat overdue.
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "../AutocompleteProvider.h"
 | |
| 
 | |
| namespace GUI::GML {
 | |
| 
 | |
| class AutocompleteProvider final : public virtual GUI::AutocompleteProvider {
 | |
| public:
 | |
|     AutocompleteProvider() { }
 | |
|     virtual ~AutocompleteProvider() override { }
 | |
| 
 | |
| private:
 | |
|     static bool can_have_declared_layout(StringView class_name)
 | |
|     {
 | |
|         return class_name.is_one_of("GUI::Widget", "GUI::Frame");
 | |
|     }
 | |
| 
 | |
|     virtual void provide_completions(Function<void(Vector<Entry>)> callback) override;
 | |
| };
 | |
| 
 | |
| }
 |