diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2023-03-07 23:10:49 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2023-05-05 02:15:43 +0330 |
commit | 7a0fae7be121fbebc1f805a8254d88f06e7274a7 (patch) | |
tree | 6448bc0cafac8ef5c208e04f9364872f1d852fc0 /Base/res | |
parent | 5ebc7415945da22f36ae8d40b87b39ac20cc4c2d (diff) | |
download | serenity-7a0fae7be121fbebc1f805a8254d88f06e7274a7.zip |
Base: Remove the cpp-gui HackStudio template
This template is essentially an older version of the
serenity-application template, it does not compile anymore and is
therefore entirely redundant.
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/devel/templates/cpp-gui.ini | 5 | ||||
-rw-r--r-- | Base/res/devel/templates/cpp-gui.postcreate | 22 | ||||
-rw-r--r-- | Base/res/devel/templates/cpp-gui/main.cpp | 26 |
3 files changed, 0 insertions, 53 deletions
diff --git a/Base/res/devel/templates/cpp-gui.ini b/Base/res/devel/templates/cpp-gui.ini deleted file mode 100644 index 4af451fff0..0000000000 --- a/Base/res/devel/templates/cpp-gui.ini +++ /dev/null @@ -1,5 +0,0 @@ -[HackStudioTemplate] -Name=Graphical Application (C++) -Description=Template for creating a basic C++ graphical application. -Priority=90 -IconName32x=cpp-gui diff --git a/Base/res/devel/templates/cpp-gui.postcreate b/Base/res/devel/templates/cpp-gui.postcreate deleted file mode 100644 index 0205882e27..0000000000 --- a/Base/res/devel/templates/cpp-gui.postcreate +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/Shell - -echo > $2/Makefile <<-EOF -PROGRAM = $1 -OBJS = main.o -CXXFLAGS = -g -std=c++2a -LDFLAGS = -lgui -lgcc_s - -all: \$(PROGRAM) - -\$(PROGRAM): \$(OBJS) - \$(CXX) \$(LDFLAGS) -o \$@ \$(OBJS) - -%.o: %.cpp - \$(CXX) \$(CXXFLAGS) -o \$@ -c \$< - -clean: - rm \$(OBJS) \$(PROGRAM) - -run: - ./\$(PROGRAM) -EOF diff --git a/Base/res/devel/templates/cpp-gui/main.cpp b/Base/res/devel/templates/cpp-gui/main.cpp deleted file mode 100644 index 4e94601100..0000000000 --- a/Base/res/devel/templates/cpp-gui/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include <LibGUI/Application.h> -#include <LibGUI/Button.h> -#include <LibGUI/MessageBox.h> -#include <LibGUI/Window.h> -#include <stdio.h> - -int main(int argc, char** argv) -{ - auto app = GUI::Application::construct(argc, argv); - - auto window = GUI::Window::construct(); - window->set_title("Hello friends!"); - window->resize(200, 100); - - auto button = GUI::Button::construct(); - button->set_text("Click me!"); - button->on_click = [&](auto) { - GUI::MessageBox::show(window, "Hello friends!"sv, ":^)"sv); - }; - - window->set_main_widget(button); - - window->show(); - - return app->exec(); -} |