mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:58:11 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -38,8 +38,8 @@ class HackStudioWidget : public GUI::Widget {
|
|||
public:
|
||||
virtual ~HackStudioWidget() override;
|
||||
|
||||
bool open_file(String const& filename, size_t line = 0, size_t column = 0);
|
||||
void close_file_in_all_editors(String const& filename);
|
||||
bool open_file(DeprecatedString const& filename, size_t line = 0, size_t column = 0);
|
||||
void close_file_in_all_editors(DeprecatedString const& filename);
|
||||
|
||||
void update_actions();
|
||||
Project& project();
|
||||
|
@ -53,7 +53,7 @@ public:
|
|||
GUI::TabWidget& current_editor_tab_widget();
|
||||
GUI::TabWidget const& current_editor_tab_widget() const;
|
||||
|
||||
String const& active_file() const { return m_current_editor_wrapper->filename(); }
|
||||
DeprecatedString const& active_file() const { return m_current_editor_wrapper->filename(); }
|
||||
void initialize_menubar(GUI::Window&);
|
||||
|
||||
Locator& locator()
|
||||
|
@ -66,18 +66,18 @@ public:
|
|||
No,
|
||||
Yes
|
||||
};
|
||||
ContinueDecision warn_unsaved_changes(String const& prompt);
|
||||
ContinueDecision warn_unsaved_changes(DeprecatedString const& prompt);
|
||||
|
||||
enum class Mode {
|
||||
Code,
|
||||
Coredump
|
||||
};
|
||||
|
||||
void open_coredump(String const& coredump_path);
|
||||
void open_coredump(DeprecatedString const& coredump_path);
|
||||
void for_each_open_file(Function<void(ProjectFile const&)>);
|
||||
bool semantic_syntax_highlighting_is_enabled() const;
|
||||
|
||||
static Vector<String> read_recent_projects();
|
||||
static Vector<DeprecatedString> read_recent_projects();
|
||||
|
||||
void update_current_editor_title();
|
||||
void update_window_title();
|
||||
|
@ -85,12 +85,12 @@ public:
|
|||
private:
|
||||
static constexpr size_t recent_projects_history_size = 15;
|
||||
|
||||
static String get_full_path_of_serenity_source(String const& file);
|
||||
String get_absolute_path(String const&) const;
|
||||
Vector<String> selected_file_paths() const;
|
||||
static DeprecatedString get_full_path_of_serenity_source(DeprecatedString const& file);
|
||||
DeprecatedString get_absolute_path(DeprecatedString const&) const;
|
||||
Vector<DeprecatedString> selected_file_paths() const;
|
||||
|
||||
HackStudioWidget(String path_to_project);
|
||||
void open_project(String const& root_path);
|
||||
HackStudioWidget(DeprecatedString path_to_project);
|
||||
void open_project(DeprecatedString const& root_path);
|
||||
|
||||
enum class EditMode {
|
||||
Text,
|
||||
|
@ -100,7 +100,7 @@ private:
|
|||
void set_edit_mode(EditMode);
|
||||
|
||||
NonnullRefPtr<GUI::Menu> create_project_tree_view_context_menu();
|
||||
NonnullRefPtr<GUI::Action> create_new_file_action(String const& label, String const& icon, String const& extension);
|
||||
NonnullRefPtr<GUI::Action> create_new_file_action(DeprecatedString const& label, DeprecatedString const& icon, DeprecatedString const& extension);
|
||||
NonnullRefPtr<GUI::Action> create_new_directory_action();
|
||||
NonnullRefPtr<GUI::Action> create_open_selected_action();
|
||||
NonnullRefPtr<GUI::Action> create_open_selected_in_new_tab_action();
|
||||
|
@ -131,15 +131,15 @@ private:
|
|||
|
||||
void add_new_editor_tab_widget(GUI::Widget& parent);
|
||||
void add_new_editor(GUI::TabWidget& parent);
|
||||
RefPtr<EditorWrapper> get_editor_of_file(String const& filename);
|
||||
String get_project_executable_path() const;
|
||||
RefPtr<EditorWrapper> get_editor_of_file(DeprecatedString const& filename);
|
||||
DeprecatedString get_project_executable_path() const;
|
||||
|
||||
void on_action_tab_change();
|
||||
void reveal_action_tab(GUI::Widget&);
|
||||
void initialize_debugger();
|
||||
void update_statusbar();
|
||||
|
||||
void handle_external_file_deletion(String const& filepath);
|
||||
void handle_external_file_deletion(DeprecatedString const& filepath);
|
||||
void stop_debugger_if_running();
|
||||
void close_current_project();
|
||||
|
||||
|
@ -164,10 +164,10 @@ private:
|
|||
void update_gml_preview();
|
||||
void update_tree_view();
|
||||
void on_cursor_change();
|
||||
void file_renamed(String const& old_name, String const& new_name);
|
||||
void file_renamed(DeprecatedString const& old_name, DeprecatedString const& new_name);
|
||||
|
||||
struct ProjectLocation {
|
||||
String filename;
|
||||
DeprecatedString filename;
|
||||
size_t line { 0 };
|
||||
size_t column { 0 };
|
||||
};
|
||||
|
@ -180,9 +180,9 @@ private:
|
|||
NonnullRefPtrVector<GUI::TabWidget> m_all_editor_tab_widgets;
|
||||
RefPtr<GUI::TabWidget> m_current_editor_tab_widget;
|
||||
|
||||
HashMap<String, NonnullRefPtr<ProjectFile>> m_open_files;
|
||||
HashMap<DeprecatedString, NonnullRefPtr<ProjectFile>> m_open_files;
|
||||
RefPtr<Core::FileWatcher> m_file_watcher;
|
||||
Vector<String> m_open_files_vector; // NOTE: This contains the keys from m_open_files and m_file_watchers
|
||||
Vector<DeprecatedString> m_open_files_vector; // NOTE: This contains the keys from m_open_files and m_file_watchers
|
||||
|
||||
OwnPtr<Project> m_project;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue