/* * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "History.h" #include "ManualModel.h" #include #include namespace Help { class MainWidget final : public GUI::Widget { C_OBJECT(MainWidget); public: virtual ~MainWidget() override = default; ErrorOr initialize_fallibles(GUI::Window&); void set_start_page(String const& page, int section); private: MainWidget(); void open_url(URL const&); void open_page(String const& path); void open_external(URL const&); History m_history; RefPtr m_context_menu; RefPtr m_manual_model; RefPtr m_filter_model; RefPtr m_go_back_action; RefPtr m_go_forward_action; RefPtr m_go_home_action; RefPtr m_copy_action; RefPtr m_select_all_action; RefPtr m_tab_widget; RefPtr m_search_container; RefPtr m_search_box; RefPtr m_search_view; RefPtr m_browse_view; RefPtr m_web_view; RefPtr m_toolbar; RefPtr m_statusbar; }; }