diff --git a/.genio b/.genio new file mode 100644 index 0000000..261b900 Binary files /dev/null and b/.genio differ diff --git a/App.cpp b/App.cpp new file mode 100644 index 0000000..fe63f42 --- /dev/null +++ b/App.cpp @@ -0,0 +1,26 @@ +#include "App.h" +#include +#include +#include +#include +#include + +App::App(void) : BApplication("application/x-vnd.dw-MyFirstApp") +{ + 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 + myWindow->AddChild(label); + myWindow->Show(); +} + +int main(void) +{ + App *app = new App(); + app->Run(); + + delete app; + return 0; +} diff --git a/App.h b/App.h new file mode 100644 index 0000000..fafa7d4 --- /dev/null +++ b/App.h @@ -0,0 +1,13 @@ +#ifndef APP_H +#define APP_H + +#include + +class App : public BApplication +{ + public: + App(void); +}; + + +#endif diff --git a/Jamfile b/Jamfile deleted file mode 100644 index 081fa0a..0000000 --- a/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -Binary = Renga ; -Compiler = GCC ; - diff --git a/Makefile b/Makefile index 6f365cd..d682e43 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,9 @@ BINARY=renga CPP=g++ -HOST=192.168.122.254 all: build build: - $(CPP) src/main.cpp -o $(BINARY) - -run: - @echo "tranferring over all files..." - @scp -r ./* user@$(HOST):~/dev - @echo "executing on remote host..." - ssh user@$(HOST) "cd dev;echo '### compiling';make;echo '### running';./renga" + $(CPP) App.cpp -o $(BINARY) -lbe diff --git a/README.md b/README.md index 5d1556f..f7e6fbb 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,18 @@ # Renga -Renga, a XMPP client designed for Haiku - -## todo +Renga, a XMPP client designed for Haiku +## Todo - [x] make haiku-os compatible - [ ] everything else +## Test Rengo -## run - -To run on a Linux system, spin up a HaikuOS development VM and get its IP address reachable from the host. -Execute the following command on the host: -```bash -make run HOST=1.1.1.1 -``` - -If you are doing development work on the local system, use: +If you are doing development work on a local Haiku system, use: ```bash make build ./renga ``` + +## 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. diff --git a/examples/vimrc b/examples/vimrc new file mode 100644 index 0000000..ea68452 --- /dev/null +++ b/examples/vimrc @@ -0,0 +1,15 @@ +" Plugin directory is optional +call plug#begin() + +" Declare the list of plugins. +Plug 'prabirshrestha/vim-lsp' +Plug 'mattn/vim-lsp-settings' + +Plug 'prabirshrestha/asyncomplete.vim' +Plug 'prabirshrestha/asyncomplete-lsp.vim' + +" List ends here. Plugins become visible to Vim after this call. +call plug#end() + +inoremap pumvisible() ? "\" : "\" +set backspace=2 diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index 8987e9e..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "iostream" -#include -#include -#include - -int main() { - std::string msg = "hello world"; - for (int i = 0; i < msg.length(); i++) { - std::cout << msg[i]; - if (i != msg.length() - 1 && msg[i+1] != ' ' && msg[i] != ' ') - std::cout << '-'; - } - return 0; -}