mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
HackStudio: Rethink the "project" concept to be about a directory
Instead of having .hsp files that determine which files are members of a project, a project is now an entire directory tree instead. This feels a lot less cumbersome to work with, and removes a fair amount of busywork that would otherwise be expected from the user. This patch refactors large parts of HackStudio to implement the new way of thinking. I've probably missed some details here and there, but generally I think it's pretty OK.
This commit is contained in:
parent
5d0fda3d39
commit
dd3e6451ac
6 changed files with 86 additions and 468 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "Git/GitWidget.h"
|
||||
#include "Locator.h"
|
||||
#include "Project.h"
|
||||
#include "ProjectFile.h"
|
||||
#include "TerminalWrapper.h"
|
||||
#include <LibGUI/ScrollBar.h>
|
||||
#include <LibGUI/Splitter.h>
|
||||
|
@ -67,7 +68,7 @@ private:
|
|||
static String get_full_path_of_serenity_source(const String& file);
|
||||
|
||||
HackStudioWidget(const String& path_to_project);
|
||||
void open_project(String filename);
|
||||
void open_project(const String& root_path);
|
||||
|
||||
enum class EditMode {
|
||||
Text,
|
||||
|
@ -80,7 +81,6 @@ private:
|
|||
NonnullRefPtr<GUI::Menu> create_project_tree_view_context_menu();
|
||||
NonnullRefPtr<GUI::Action> create_new_action();
|
||||
NonnullRefPtr<GUI::Action> create_open_selected_action();
|
||||
NonnullRefPtr<GUI::Action> create_add_existing_file_action();
|
||||
NonnullRefPtr<GUI::Action> create_delete_action();
|
||||
NonnullRefPtr<GUI::Action> create_switch_to_next_editor_action();
|
||||
NonnullRefPtr<GUI::Action> create_switch_to_previous_editor_action();
|
||||
|
@ -153,7 +153,6 @@ private:
|
|||
|
||||
RefPtr<GUI::Action> m_new_action;
|
||||
RefPtr<GUI::Action> m_open_selected_action;
|
||||
RefPtr<GUI::Action> m_add_existing_file_action;
|
||||
RefPtr<GUI::Action> m_delete_action;
|
||||
RefPtr<GUI::Action> m_switch_to_next_editor;
|
||||
RefPtr<GUI::Action> m_switch_to_previous_editor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue