mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Playground: Rename the application to GMLPlayground
Just "Playground" is too generic and doesn't match the general rule of "application name equals display name minus spaces".
This commit is contained in:
parent
93488d6d5a
commit
cc4bb59a7e
Notes:
sideshowbarker
2024-07-17 09:53:49 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/cc4bb59a7e Pull-request: https://github.com/SerenityOS/serenity/pull/14415 Reviewed-by: https://github.com/bgianfo ✅
12 changed files with 26 additions and 26 deletions
|
@ -19,7 +19,7 @@ txt=/bin/TextEditor
|
|||
font=/bin/FontEditor
|
||||
sheets=/bin/Spreadsheet
|
||||
csv=/bin/Spreadsheet
|
||||
gml=/bin/Playground
|
||||
gml=/bin/GMLPlayground
|
||||
pdf=/bin/PDFViewer
|
||||
profile=/bin/Profiler
|
||||
pp=/bin/PixelPaint
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[App]
|
||||
Name=GML Playground
|
||||
Executable=/bin/Playground
|
||||
Executable=/bin/GMLPlayground
|
||||
Category=Development
|
||||
|
||||
[Launcher]
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
@ -1,13 +1,13 @@
|
|||
## Name
|
||||
|
||||
![Icon](/res/icons/16x16/app-playground.png) Playground - GUI Markup Language (GML) editor
|
||||
![Icon](/res/icons/16x16/app-gml-playground.png) GML Playground - GUI Markup Language (GML) editor
|
||||
|
||||
[Open](file:///bin/Playground)
|
||||
[Open](file:///bin/GMLPlayground)
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ Playground [file]
|
||||
$ GMLPlayground [file]
|
||||
```
|
||||
|
||||
## Arguments
|
||||
|
@ -16,7 +16,7 @@ $ Playground [file]
|
|||
|
||||
## Description
|
||||
|
||||
Playground facilitates development of graphical user interfaces (GUI)
|
||||
GML Playground facilitates development of graphical user interfaces (GUI)
|
||||
for Serenity applications using GUI Markup Language (GML) to compose
|
||||
a layout for GUI widgets and set widget attributes.
|
||||
|
||||
|
@ -26,7 +26,7 @@ window, allowing rapid prototyping and development of application GUIs.
|
|||
## Examples
|
||||
|
||||
```sh
|
||||
$ Playground /home/anon/example.gml
|
||||
$ GMLPlayground /home/anon/example.gml
|
||||
```
|
||||
|
||||
## See also
|
|
@ -19,7 +19,7 @@ Or right clicking on a folder in the TreeView and using
|
|||
## See also
|
||||
|
||||
- [gml-format(1)](help://man/1/gml-format) formats your GML files.
|
||||
- [GML Playground(1)](help://man/1/Playground) is an interactive GML creation tool.
|
||||
- [GML Playground(1)](help://man/1/GMLPlayground) is an interactive GML creation tool.
|
||||
|
||||
### List of GML manpages
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ Most prominently, the first four bytes contain the filemagic: `!Fnt`.
|
|||
These files are human-readable, have no easily detectable filemagic, and define GUI designs and layouts.
|
||||
The format is strongly influenced by QML, the Qt Modeling Language.
|
||||
|
||||
See the [GML manpage(s)](../Base/usr/share/man/man5/GML.md), [Playground(1)](../Userland/DevTools/Playground/), and the [GML support in LibGUI](../Userland/Libraries/LibGUI/GML/).
|
||||
See the [GML manpage(s)](../Base/usr/share/man/man5/GML.md), [GML Playground(1)](../Userland/DevTools/GMLPlayground/), and the [GML support in LibGUI](../Userland/Libraries/LibGUI/GML/).
|
||||
|
||||
## Inter Process Communication (`*.ipc` files)
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ This isn't figured out yet, for now we're doing the first approach in select pla
|
|||
|
||||
Currently:
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-playground");
|
||||
auto app_icon = GUI::Icon::default_icon("app-gml-playground");
|
||||
|
||||
or
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
add_subdirectory(GMLPlayground)
|
||||
add_subdirectory(Inspector)
|
||||
add_subdirectory(Playground)
|
||||
add_subdirectory(Profiler)
|
||||
add_subdirectory(HackStudio)
|
||||
add_subdirectory(SQLStudio)
|
||||
|
|
12
Userland/DevTools/GMLPlayground/CMakeLists.txt
Normal file
12
Userland/DevTools/GMLPlayground/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
serenity_component(
|
||||
GMLPlayground
|
||||
RECOMMENDED
|
||||
TARGETS GMLPlayground
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_app(GMLPlayground ICON app-gml-playground)
|
||||
target_link_libraries(GMLPlayground LibDesktop LibGUI LibMain)
|
|
@ -67,7 +67,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::pledge("stdio thread recvfd sendfd cpath rpath wpath unix"));
|
||||
auto app = TRY(GUI::Application::try_create(arguments));
|
||||
|
||||
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/Playground.md") }));
|
||||
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/GMLPlayground.md") }));
|
||||
TRY(Desktop::Launcher::seal_allowlist());
|
||||
|
||||
TRY(Core::System::pledge("stdio thread recvfd sendfd rpath cpath wpath"));
|
||||
|
@ -77,7 +77,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.add_positional_argument(path, "GML file to edit", "file", Core::ArgsParser::Required::No);
|
||||
args_parser.parse(arguments);
|
||||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-playground"));
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-gml-playground"));
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title("GML Playground");
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
@ -248,7 +248,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto help_menu = TRY(window->try_add_menu("&Help"));
|
||||
TRY(help_menu->try_add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/Playground.md"), "/bin/Help");
|
||||
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/GMLPlayground.md"), "/bin/Help");
|
||||
})));
|
||||
TRY(help_menu->try_add_action(GUI::CommonActions::make_about_action("GML Playground", app_icon, window)));
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
serenity_component(
|
||||
Playground
|
||||
RECOMMENDED
|
||||
TARGETS Playground
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
serenity_app(Playground ICON app-playground)
|
||||
target_link_libraries(Playground LibDesktop LibGUI LibMain)
|
Loading…
Reference in a new issue