mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:52:44 +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 :^)
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Nick Vella <nick@nxk.io>
 | |
|  * Copyright (c) 2022, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibGUI/Button.h>
 | |
| #include <LibGUI/ComboBox.h>
 | |
| #include <LibGUI/ImageWidget.h>
 | |
| #include <LibGUI/ItemListModel.h>
 | |
| #include <LibGUI/Window.h>
 | |
| 
 | |
| class RunWindow final : public GUI::Window {
 | |
|     C_OBJECT(RunWindow)
 | |
| public:
 | |
|     virtual ~RunWindow() override = default;
 | |
| 
 | |
|     virtual void event(Core::Event&) override;
 | |
| 
 | |
| private:
 | |
|     RunWindow();
 | |
| 
 | |
|     void do_run();
 | |
|     bool run_as_command(DeprecatedString const& run_input);
 | |
|     bool run_via_launch(DeprecatedString const& run_input);
 | |
| 
 | |
|     DeprecatedString history_file_path();
 | |
|     ErrorOr<void> load_history();
 | |
|     ErrorOr<void> save_history();
 | |
| 
 | |
|     Vector<DeprecatedString> m_path_history;
 | |
|     NonnullRefPtr<GUI::ItemListModel<DeprecatedString>> m_path_history_model;
 | |
| 
 | |
|     RefPtr<GUI::ImageWidget> m_icon_image_widget;
 | |
|     RefPtr<GUI::Button> m_ok_button;
 | |
|     RefPtr<GUI::Button> m_cancel_button;
 | |
|     RefPtr<GUI::Button> m_browse_button;
 | |
|     RefPtr<GUI::ComboBox> m_path_combo_box;
 | |
| };
 |