mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	 6e19ab2bbc
			
		
	
	
		6e19ab2bbc
		
	
	
	
	
		
			
			We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
		
			
				
	
	
		
			45 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/Vector.h>
 | |
| #include <LibGUI/Button.h>
 | |
| #include <LibGUI/CheckBox.h>
 | |
| #include <LibGUI/ConnectionToWindowManagerServer.h>
 | |
| #include <LibGUI/ListView.h>
 | |
| #include <LibGUI/SettingsWindow.h>
 | |
| #include <LibGUI/TextEditor.h>
 | |
| 
 | |
| class KeyboardSettingsWidget final : public GUI::SettingsWindow::Tab {
 | |
|     C_OBJECT(KeyboardSettingsWidget)
 | |
| public:
 | |
|     virtual ~KeyboardSettingsWidget() override;
 | |
| 
 | |
|     virtual void apply_settings() override;
 | |
| 
 | |
|     void window_activated(bool is_active_window);
 | |
| 
 | |
| private:
 | |
|     KeyboardSettingsWidget();
 | |
| 
 | |
|     void set_keymaps(Vector<DeprecatedString> const& keymaps, DeprecatedString const& active_keymap);
 | |
| 
 | |
|     Vector<DeprecatedString> m_initial_keymap_list;
 | |
| 
 | |
|     DeprecatedString m_initial_active_keymap;
 | |
| 
 | |
|     RefPtr<GUI::ListView> m_selected_keymaps_listview;
 | |
|     RefPtr<GUI::Label> m_active_keymap_label;
 | |
|     RefPtr<GUI::CheckBox> m_num_lock_checkbox;
 | |
|     RefPtr<GUI::Button> m_activate_keymap_button;
 | |
|     RefPtr<GUI::Button> m_add_keymap_button;
 | |
|     RefPtr<GUI::Button> m_remove_keymap_button;
 | |
|     RefPtr<GUI::TextEditor> m_test_typing_area;
 | |
|     RefPtr<GUI::Button> m_clear_test_typing_area_button;
 | |
| 
 | |
|     Function<void()> m_activate_keymap_event;
 | |
| };
 |