summaryrefslogtreecommitdiff
path: root/Base/res/devel
diff options
context:
space:
mode:
Diffstat (limited to 'Base/res/devel')
-rw-r--r--Base/res/devel/templates/cpp-gui.ini5
-rw-r--r--Base/res/devel/templates/cpp-gui.postcreate22
-rw-r--r--Base/res/devel/templates/cpp-gui/main.cpp26
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();
-}