mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:37:34 +00:00
Applications: Let's put spaces in app names
"FileManager" => "File Manager" "FontEditor" => "Font Editor" "ProcessManager" => "Process Manager" "TextEditor" => "Text Editor"
This commit is contained in:
parent
12120167a9
commit
b311257098
4 changed files with 8 additions and 8 deletions
|
@ -35,7 +35,7 @@ int main(int argc, char** argv)
|
||||||
GApplication app(argc, argv);
|
GApplication app(argc, argv);
|
||||||
|
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("FileManager");
|
window->set_title("File Manager");
|
||||||
window->set_rect(20, 200, 640, 480);
|
window->set_rect(20, 200, 640, 480);
|
||||||
window->set_should_exit_event_loop_on_close(true);
|
window->set_should_exit_event_loop_on_close(true);
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
|
|
||||||
auto app_menu = make<GMenu>("FileManager");
|
auto app_menu = make<GMenu>("File Manager");
|
||||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
||||||
GApplication::the().quit(0);
|
GApplication::the().quit(0);
|
||||||
return;
|
return;
|
||||||
|
@ -187,7 +187,7 @@ int main(int argc, char** argv)
|
||||||
main_toolbar->add_action(*view_as_table_action);
|
main_toolbar->add_action(*view_as_table_action);
|
||||||
|
|
||||||
directory_view->on_path_change = [window, location_textbox, &file_system_model, tree_view, &go_forward_action, &go_back_action, directory_view] (const String& new_path) {
|
directory_view->on_path_change = [window, location_textbox, &file_system_model, tree_view, &go_forward_action, &go_back_action, directory_view] (const String& new_path) {
|
||||||
window->set_title(String::format("FileManager: %s", new_path.characters()));
|
window->set_title(String::format("File Manager: %s", new_path.characters()));
|
||||||
location_textbox->set_text(new_path);
|
location_textbox->set_text(new_path);
|
||||||
file_system_model->set_selected_index(file_system_model->index(new_path));
|
file_system_model->set_selected_index(file_system_model->index(new_path));
|
||||||
tree_view->scroll_into_view(file_system_model->selected_index(), Orientation::Vertical);
|
tree_view->scroll_into_view(file_system_model->selected_index(), Orientation::Vertical);
|
||||||
|
|
|
@ -25,7 +25,7 @@ int main(int argc, char** argv)
|
||||||
edited_font = Font::default_font().clone();
|
edited_font = Font::default_font().clone();
|
||||||
|
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("FontEditor");
|
window->set_title("Font Editor");
|
||||||
window->set_rect({ 50, 50, 390, 325 });
|
window->set_rect({ 50, 50, 390, 325 });
|
||||||
auto* font_editor = new FontEditorWidget(path, move(edited_font));
|
auto* font_editor = new FontEditorWidget(path, move(edited_font));
|
||||||
window->set_main_widget(font_editor);
|
window->set_main_widget(font_editor);
|
||||||
|
|
|
@ -101,7 +101,7 @@ int main(int argc, char** argv)
|
||||||
toolbar->add_action(continue_action.copy_ref());
|
toolbar->add_action(continue_action.copy_ref());
|
||||||
|
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
auto app_menu = make<GMenu>("ProcessManager");
|
auto app_menu = make<GMenu>("Process Manager");
|
||||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
||||||
GApplication::the().quit(0);
|
GApplication::the().quit(0);
|
||||||
return;
|
return;
|
||||||
|
@ -141,7 +141,7 @@ int main(int argc, char** argv)
|
||||||
app.set_menubar(move(menubar));
|
app.set_menubar(move(menubar));
|
||||||
|
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("ProcessManager");
|
window->set_title("Process Manager");
|
||||||
window->set_rect(20, 200, 680, 400);
|
window->set_rect(20, 200, 680, 400);
|
||||||
window->set_main_widget(keeper);
|
window->set_main_widget(keeper);
|
||||||
window->set_should_exit_event_loop_on_close(true);
|
window->set_should_exit_event_loop_on_close(true);
|
||||||
|
|
|
@ -25,7 +25,7 @@ void open_sesame(GWindow& window, GTextEditor& editor, const String& path)
|
||||||
GMessageBox::show(String::format("Opening \"%s\" failed: %s", path.characters(), strerror(errno)), "Error", GMessageBox::Type::Error, &window);
|
GMessageBox::show(String::format("Opening \"%s\" failed: %s", path.characters(), strerror(errno)), "Error", GMessageBox::Type::Error, &window);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.set_title(String::format("TextEditor: %s", path.characters()));
|
window.set_title(String::format("Text Editor: %s", path.characters()));
|
||||||
editor.set_text(String::copy(file.read_all()));
|
editor.set_text(String::copy(file.read_all()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ int main(int argc, char** argv)
|
||||||
});
|
});
|
||||||
|
|
||||||
auto menubar = make<GMenuBar>();
|
auto menubar = make<GMenuBar>();
|
||||||
auto app_menu = make<GMenu>("TextEditor");
|
auto app_menu = make<GMenu>("Text Editor");
|
||||||
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [] (const GAction&) {
|
||||||
GApplication::the().quit(0);
|
GApplication::the().quit(0);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue