mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
parent
272917de28
commit
8753dc72e8
4 changed files with 11 additions and 2 deletions
|
@ -40,6 +40,7 @@ EditorWrapper::EditorWrapper()
|
||||||
|
|
||||||
m_editor->on_modified_change = [this](bool) {
|
m_editor->on_modified_change = [this](bool) {
|
||||||
update_title();
|
update_title();
|
||||||
|
update_editor_window_title();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ void open_file(String const&, size_t line, size_t column);
|
||||||
Project& project();
|
Project& project();
|
||||||
String currently_open_file();
|
String currently_open_file();
|
||||||
void set_current_editor_wrapper(RefPtr<EditorWrapper>);
|
void set_current_editor_wrapper(RefPtr<EditorWrapper>);
|
||||||
|
void update_editor_window_title();
|
||||||
void for_each_open_file(Function<void(ProjectFile const&)>);
|
void for_each_open_file(Function<void(ProjectFile const&)>);
|
||||||
bool semantic_syntax_highlighting_is_enabled();
|
bool semantic_syntax_highlighting_is_enabled();
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,9 @@ public:
|
||||||
|
|
||||||
static Vector<String> read_recent_projects();
|
static Vector<String> read_recent_projects();
|
||||||
|
|
||||||
|
void update_current_editor_title();
|
||||||
|
void update_window_title();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr size_t recent_projects_history_size = 15;
|
static constexpr size_t recent_projects_history_size = 15;
|
||||||
|
|
||||||
|
@ -160,8 +163,6 @@ private:
|
||||||
|
|
||||||
void update_gml_preview();
|
void update_gml_preview();
|
||||||
void update_tree_view();
|
void update_tree_view();
|
||||||
void update_window_title();
|
|
||||||
void update_current_editor_title();
|
|
||||||
void on_cursor_change();
|
void on_cursor_change();
|
||||||
void file_renamed(String const& old_name, String const& new_name);
|
void file_renamed(String const& old_name, String const& new_name);
|
||||||
|
|
||||||
|
|
|
@ -185,6 +185,12 @@ void set_current_editor_wrapper(RefPtr<EditorWrapper> wrapper)
|
||||||
s_hack_studio_widget->set_current_editor_wrapper(wrapper);
|
s_hack_studio_widget->set_current_editor_wrapper(wrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void update_editor_window_title()
|
||||||
|
{
|
||||||
|
s_hack_studio_widget->update_current_editor_title();
|
||||||
|
s_hack_studio_widget->update_window_title();
|
||||||
|
}
|
||||||
|
|
||||||
Locator& locator()
|
Locator& locator()
|
||||||
{
|
{
|
||||||
return s_hack_studio_widget->locator();
|
return s_hack_studio_widget->locator();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue