1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

HackStudio: Move bulk of GUI logic into HackStudioWidget

Previously, the GUI logic of HackStudio was all stuffed into main(),
and it started getting a bit out of hand :)
This commit is contained in:
Itamar 2020-09-19 17:25:05 +03:00 committed by Andreas Kling
parent 606c0e1672
commit e3e5e57fde
11 changed files with 1165 additions and 775 deletions

View file

@ -35,10 +35,10 @@ namespace HackStudio {
GUI::TextEditor& current_editor();
void open_file(const String&);
extern RefPtr<EditorWrapper> g_current_editor_wrapper;
extern Function<void(String)> g_open_file;
extern OwnPtr<Project> g_project;
extern String g_currently_open_file;
RefPtr<EditorWrapper> current_editor_wrapper();
void open_file(const String&);
Project& project();
String currently_open_file();
void set_current_editor_wrapper(RefPtr<EditorWrapper>);
}