HackStudio.h 669 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include "EditorWrapper.h"
  8. #include "LanguageClients/ServerConnections.h"
  9. #include "Project.h"
  10. #include <AK/String.h>
  11. #include <LibGUI/TextEditor.h>
  12. namespace HackStudio {
  13. GUI::TextEditor& current_editor();
  14. void open_file(const String&);
  15. RefPtr<EditorWrapper> current_editor_wrapper();
  16. void open_file(const String&, size_t line, size_t column);
  17. Project& project();
  18. String currently_open_file();
  19. void set_current_editor_wrapper(RefPtr<EditorWrapper>);
  20. void for_each_open_file(Function<void(ProjectFile const&)>);
  21. class Locator;
  22. Locator& locator();
  23. }