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:
Andreas Kling 2019-05-27 13:52:28 +02:00
parent 12120167a9
commit b311257098
Notes: sideshowbarker 2024-07-19 13:55:13 +09:00
4 changed files with 8 additions and 8 deletions

View File

@ -35,7 +35,7 @@ int main(int argc, char** argv)
GApplication app(argc, argv);
auto* window = new GWindow;
window->set_title("FileManager");
window->set_title("File Manager");
window->set_rect(20, 200, 640, 480);
window->set_should_exit_event_loop_on_close(true);
@ -141,7 +141,7 @@ int main(int argc, char** argv)
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&) {
GApplication::the().quit(0);
return;
@ -187,7 +187,7 @@ int main(int argc, char** argv)
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) {
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);
file_system_model->set_selected_index(file_system_model->index(new_path));
tree_view->scroll_into_view(file_system_model->selected_index(), Orientation::Vertical);

View File

@ -25,7 +25,7 @@ int main(int argc, char** argv)
edited_font = Font::default_font().clone();
auto* window = new GWindow;
window->set_title("FontEditor");
window->set_title("Font Editor");
window->set_rect({ 50, 50, 390, 325 });
auto* font_editor = new FontEditorWidget(path, move(edited_font));
window->set_main_widget(font_editor);

View File

@ -101,7 +101,7 @@ int main(int argc, char** argv)
toolbar->add_action(continue_action.copy_ref());
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&) {
GApplication::the().quit(0);
return;
@ -141,7 +141,7 @@ int main(int argc, char** argv)
app.set_menubar(move(menubar));
auto* window = new GWindow;
window->set_title("ProcessManager");
window->set_title("Process Manager");
window->set_rect(20, 200, 680, 400);
window->set_main_widget(keeper);
window->set_should_exit_event_loop_on_close(true);

View File

@ -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);
}
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()));
}
@ -74,7 +74,7 @@ int main(int argc, char** argv)
});
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&) {
GApplication::the().quit(0);
return;