Serenity Operating System
at master 31 lines 794 B view raw
1/* 2 * Copyright (c) 2020, the SerenityOS developers. 3 * 4 * SPDX-License-Identifier: BSD-2-Clause 5 */ 6 7#pragma once 8 9#include "EditorWrapper.h" 10#include "LanguageClients/ConnectionsToServer.h" 11#include "Project.h" 12#include <AK/DeprecatedString.h> 13#include <LibGUI/TextEditor.h> 14 15namespace HackStudio { 16 17GUI::TextEditor& current_editor(); 18void open_file(DeprecatedString const&); 19RefPtr<EditorWrapper> current_editor_wrapper(); 20void open_file(DeprecatedString const&, size_t line, size_t column); 21Project& project(); 22DeprecatedString currently_open_file(); 23void set_current_editor_wrapper(RefPtr<EditorWrapper>); 24void update_editor_window_title(); 25void for_each_open_file(Function<void(ProjectFile const&)>); 26bool semantic_syntax_highlighting_is_enabled(); 27 28class Locator; 29Locator& locator(); 30 31}