mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-27 14:02:07 +00:00 
			
		
		
		
	 fa94978a7e
			
		
	
	
		fa94978a7e
		
	
	
	
	
		
			
			This will allow users of EditingEngine classes to determine current type of EditingEngine (currently either vim or regular).
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			480 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibGUI/EditingEngine.h>
 | |
| 
 | |
| namespace GUI {
 | |
| 
 | |
| class RegularEditingEngine final : public EditingEngine {
 | |
| 
 | |
| public:
 | |
|     virtual CursorWidth cursor_width() const override;
 | |
| 
 | |
|     virtual bool on_key(const KeyEvent& event) override;
 | |
| 
 | |
| private:
 | |
|     void sort_selected_lines();
 | |
|     virtual EngineType engine_type() const override { return EngineType::Regular; }
 | |
| };
 | |
| 
 | |
| }
 |