/* * Copyright (c) 2021, Nick Vella * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include 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(String const& run_input); bool run_via_launch(String const& run_input); String history_file_path(); void load_history(); void save_history(); Vector m_path_history; NonnullRefPtr> m_path_history_model; RefPtr m_icon_image_widget; RefPtr m_ok_button; RefPtr m_cancel_button; RefPtr m_browse_button; RefPtr m_path_combo_box; };