Commit Graph

215 Commits

Author SHA1 Message Date
Hassan DRAGA
6e775b277d Linux - C Adding -LDL lib
* Adding `-ldl`
* Fix https://github.com/webui-dev/webui/issues/380
2024-06-05 09:09:59 -04:00
Hassan DRAGA
62a3b79e4b Linux - C++ Adding -LDL lib
* Adding `-ldl`
2024-06-05 09:09:38 -04:00
Hassan DRAGA
b61b145bb9 Arguments count example 2024-05-29 17:47:13 -04:00
Hassan DRAGA
19234368ba Float example 2024-05-29 17:39:49 -04:00
Hassan DRAGA
ac2230c4c0 Fix GNU Makefile examples 2024-05-27 16:18:53 -04:00
Turiiya
32d1917ff9 Apply changes to other examples 2024-05-27 14:11:53 +02:00
Turiiya
4700c2c5ff Cleanup variables in makefile and move into correct scope 2024-05-27 13:49:06 +02:00
Hassan DRAGA
c832eced7b Updating MSVC Makefile
* Adding `-lOle32` for Windows, needed by WebView2
2024-05-26 19:57:37 -04:00
Hassan DRAGA
c5ddba49fd Update GNU Makefile
* Adding `-lOle32` for Windows, needed by WebView2
* Adding Cocoa and WebKit frameworks, needed by macOS WKWebView
2024-05-26 19:56:47 -04:00
Hassan DRAGA
d20df6483b Update the date to 2024 2024-05-26 19:52:59 -04:00
Hassan DRAGA
70def025c8 Adding webui.setEventCallback
* Adding new feature to WebUI Bridge to listen for connect/disconnect events in the UI. More events will be added in the future.
*
2024-01-04 16:17:51 -05:00
Hassan DRAGA
c063f07dcd New example - Public network access 2023-11-29 18:22:35 -05:00
Hassan DRAGA
44a488025d Fix bridge Maximum call stack size exceeded
Fix https://github.com/webui-dev/webui/issues/270
2023-11-16 16:43:52 -05:00
Hassan DRAGA
907f0330a1 Removing Git from GNU-Makefile 2023-10-29 16:40:47 -04:00
Hassan DRAGA
f39af55093 C99 to C 2023-10-28 19:51:02 -04:00
Hassan DRAGA
73d6e9f294 custom_web_server Python example 2023-10-28 19:48:19 -04:00
Hassan DRAGA
bac9786d81 New example - Custom Server 2023-10-28 17:55:21 -04:00
Hassan DRAGA
b1d2ae04e4 Cleaning examples 2023-10-28 11:58:28 -04:00
Hassan DRAGA
30a1e49130 GNU Makefile Adding Musl-GCC
- Adding musl-gcc
- Renaming text-editor to main. It should be the same as other examples
2023-10-27 11:58:26 -04:00
Hassan DRAGA
c346969eaf MSVC Makefile Update 2023-10-25 20:17:14 -04:00
Hassan DRAGA
6e6bd540e7 GNU Makefile Update 2023-10-25 20:16:57 -04:00
Hassan DRAGA
1e2fa6a7a2 MultiPacket Example 2023-10-24 20:59:32 -04:00
Hassan DRAGA
a59c1fe1db TLS GCC/Clang
- To build lib with TLS: `make WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="~/OpenSSL/include" WEBUI_TLS_LIB="~/OpenSSL/lib"`
- To build examples with TLS: `make WEBUI_USE_TLS=1` (Only Dynamic. No static TLS will be supported)
2023-10-23 17:58:39 -04:00
Hassan DRAGA
66c95342bc MSVC Makefile TLS
- To build lib with TLS: `nmake WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="C:\OpenSSL\include" WEBUI_TLS_LIB="C:\OpenSSL\lib"`
- To build examples with TLS: `nmake WEBUI_USE_TLS=1` (Only Dynamic. No static TLS will be supported)
2023-10-21 23:17:25 -04:00
Hassan DRAGA
026617cb18 Adding Shell32.lib to MSVC 2023-10-10 18:05:08 -04:00
Hassan DRAGA
90bfa0f607 Fix macOS Firefox Window Style (workaround) 2023-10-10 13:07:31 -04:00
Turiiya
a0420daec3 Remove trailing whitespaces 2023-10-10 02:36:21 +02:00
Turiiya
77cf950c3b Update make command in readme files 2023-10-10 02:32:19 +02:00
Turiiya
5518a3e044 Use GNUmakefile and Makefile to simplify MSVC compilation 2023-10-10 02:32:05 +02:00
Turiiya
3e8f854a89 Prettify 2023-10-08 03:55:05 +02:00
Turiiya
50cc7619ba Format C code 2023-10-08 03:48:25 +02:00
Hassan DRAGA
9a78898d62 Fix big-data crash (Civetweb Issue)
- For same reason, data over 97.6Kb (100000 bytes) may have data loss because of Civetweb has an issue. That's make the webui-protocol-header had incorrect data size so it crashes (over flow) if user access the most significant byte. However, WebUI won't crash now. But we should report this to Civetweb.
2023-10-07 15:35:45 -04:00
Hassan DRAGA
022391380f Update C++ wrapper 2023-10-06 17:25:47 -04:00
Hassan DRAGA
90dc676e39 Fix GCC printf format warning 2023-10-05 22:50:50 -04:00
Hassan DRAGA
b09c0dca94 Multi Arguments
- New: webui_get_int_at()
- New: webui_get_string_at()
- New: webui_get_bool_at()
- New: webui_get_size_at()
- Change: webui_interface_bind
- Removed: `e->data` becomes `webui_get_xxx_at(e, 0)`
2023-10-05 20:03:12 -04:00
Hassan DRAGA
53724d4ef8 Fix multi click sync
- Fix multi click sync. Now the second click won't process until the first one finishes first
2023-10-03 14:35:44 -04:00
Hassan DRAGA
e7418ef36a Core re-design - Up to 10ms event speed
- No breaking change
- Re-design the events again to up speed to 10ms
- Fix URL links click
2023-10-01 20:41:52 -04:00
Hassan DRAGA
91c9445912 Fast Events (Internal Core changes)
- Changing the way WS events process for more speed
- Changing the WS events process for less data copy as possible
2023-09-30 23:15:55 -04:00
Hassan DRAGA
4eda2b6670 Clean up example
- Just removing test code.
2023-09-30 16:57:09 -04:00
Hassan DRAGA
62030156e5 Adding webui_delete_all_profiles
- Adding webui_delete_all_profiles()
- Adding webui_delete_profile()
- Adding webui_clean()
- Now. webui_wait() simply means no more windows are running. And app can create and show windows. And of program is now become webui_clean().
- Updating Civetweb (Server close faster now)
2023-09-30 16:26:58 -04:00
Turiiya
5cd3f53da7 Update makefiles to support more architectures 2023-09-28 23:19:43 +02:00
Hassan DRAGA
6a634cc680 Adding webui_navigate
- Adding webui_navigate()
- Now when using all events webui_bind(MyWindow, "", events), WebUI will block all href requests
- Fix https://github.com/webui-dev/webui/issues/228
2023-09-26 18:59:25 -04:00
Turiiya
bcf19bdcd4 Add save dialog for saving documents written without opening a file
Set file data after saving such files
2023-09-24 01:39:20 +02:00
Turiiya
0f6981c14d Enable save on unsaved changes instead on file open
Allow to save a documents when not opening a file
2023-09-24 01:39:20 +02:00
Turiiya
31997657ba Refactor text editor example 2023-09-24 00:40:42 +02:00
Turiiya
17e4171508
Fix text editor debug build (#223) 2023-09-23 11:26:54 +02:00
Turiiya
5a6df39da9 Update comments 2023-09-22 18:44:46 +02:00
Turiiya
6059a193ab Fix cross-browser compatibility 2023-09-22 18:28:13 +02:00
Turiiya
f00cb22e3b Minor cleanup to example
uniform quote usage
naming closer to conventions
add event only to relevant element
2023-09-22 18:08:12 +02:00
Turiiya
d305b7697a Fix file dialog in text editor example 2023-09-22 17:59:56 +02:00