From 6d2658db2554308533ecb6190cca9dd903feca7f Mon Sep 17 00:00:00 2001 From: hex Date: Fri, 7 Feb 2025 19:28:37 +0000 Subject: [PATCH 1/3] App.cpp: fix broken resizing (label still not visible) --- App.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/App.cpp b/App.cpp index fe63f42..64afba5 100644 --- a/App.cpp +++ b/App.cpp @@ -5,13 +5,13 @@ #include #include -App::App(void) : BApplication("application/x-vnd.dw-MyFirstApp") +App::App(void) : BApplication("application/x-vnd.hex-Renga") { BRect frame(100, 100, 500, 400); BWindow *myWindow = new BWindow(frame, "Hello World!", B_TITLED_WINDOW, B_QUIT_ON_WINDOW_CLOSE); frame.Set(10,10,11,11); - BStringView *label = new BStringView(frame, "hello world", "idk wat dis do"); - label->SetResizingMode + BStringView *label = new BStringView(frame, "melabel", "This is a label!"); + label->ResizeToPreferred(); myWindow->AddChild(label); myWindow->Show(); } From 59ceb4209dce4447752b4fe7a86b525903685a74 Mon Sep 17 00:00:00 2001 From: hex Date: Fri, 7 Feb 2025 19:28:54 +0000 Subject: [PATCH 2/3] Makefile: add all in one test command --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index d682e43..5876ef0 100644 --- a/Makefile +++ b/Makefile @@ -5,5 +5,7 @@ all: build build: $(CPP) App.cpp -o $(BINARY) -lbe +test: build + ./renga From f5f26b70252238f4657fc5f1edba92cab5c00d35 Mon Sep 17 00:00:00 2001 From: hex Date: Fri, 7 Feb 2025 19:29:09 +0000 Subject: [PATCH 3/3] README: add some shit --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3187424..bf73b96 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Renga, a XMPP client designed for Haiku If you are doing development work on a local Haiku system, use: ```bash # Install required dependencies -pkgman install gcc make +pkgman install gcc make haiku_devel # Build make build ./renga @@ -18,4 +18,8 @@ make build ## Editor -My preferred editor is Vim, as such, I have placed an example of a vimrc file you can use to get autocomplete and allat on Haiku working. Just copy it to ~/config/settings/vim. +My preferred editor is Vim, as such, I have placed an example of a vimrc file you can use to get autocomplete and allat working on Haiku. Just copy it to ~/config/settings/vim. + +### Authors +andre@iwakura.rip +hex@iwakura.rip