kevin
445c5d5076
cwUi.cpp: Received 'value' messages are now automatically reflected to other Websock sessions.
...
The idle message is now sent to the client only when no other message has been send for 'idle_delay_ms'.
Added createFromRsrc().
The resource object passed via create() is now duplicated and maintained for the life of the UI object.
2022-12-13 16:53:10 -05:00
kevin
a4a6d21b13
cwUi.cpp : Fix problem in _get_msg_from_recv_buffer() where shift amount could exceed the elements in the buffer.
2022-10-08 12:50:22 -04:00
kevin
c0ab1ba53f
cwUi.cpp : Fix _copy_msg_to_buffer().
2022-09-10 10:58:30 -04:00
kevin
0dbd01d190
cwUi.cpp : Fix uninitialized variable.
2022-09-10 10:25:27 -04:00
kevin
841aa8f744
cwUi.cpp : Improve websocket msg buffering.
2022-09-10 10:18:52 -04:00
kevin
95b0d4f213
cwUi.h/cpp : Handle partial messages arriving from the websocket by buffering and reconstructing the message.
2022-05-14 10:16:09 -04:00
kevin
cb31b0882a
cwUi.cpp : Increased the size of the _sendValue() buffer from 512 to 1024.
2022-03-20 10:24:36 -04:00
kevin
16bdcca968
cwUi.cpp : Fix problem where setLogLine() did not reserve enough space to handle decoding escape sequences.
2022-01-22 09:53:26 -05:00
kevin
f381a44c3c
cwUI.h/cpp,ui.js,ui.css : Added 'corrupt' message.
2021-12-29 21:43:56 -05:00
kevin
babda9b32d
cwUi,cwIo,cwUiTest.cpp,html/uiTest/js/ui.js,html/uiTest/ui.cfg : Added 'string_disp' type.
2021-12-27 16:48:58 -05:00
kevin
40465b335c
cwUi.h/cpp, cwUiDecls.h : Added set/getOrderKey(). Added set/get/clearBlob(). Added destroyElement().
2021-11-14 11:55:09 -05:00
kevin
15f64c7493
cwUi.h/cpp: Added findNewElementUuId( h, parentUuid, ... )
...
Added use of eleTypePropertyA[] in cwUi.cpp - div's can now pass arbitrary element attributes.
2021-11-05 22:21:25 -04:00
kevin
9848068d3c
cwUi* : Added set/get visible/enable() functions. Added parentAndAppIdToUuId() removed findElementUuId(parentUuId,appId/eleName).
2021-11-04 09:33:42 -04:00
kevin
dce46bd419
cwUi.h/cpp : Removed use of 'wsSessId' from 'createXXX()' calls, and added 'chanId' to 'createXXX()' calls.
...
Added 'click' event, 'clickable' and 'select' properties and associated setters/getters.
2021-11-03 11:03:30 -04:00
kevin
3d56bb70c8
cwUi.h/cpp, cwUiDecls.h : Changed UI to break connection between creating and transmitting
...
elements to the remote UI's.
2021-11-01 21:47:22 -04:00
kevin
421625d62b
cwList.h/cpp, cwUiTest.cpp : Added cwCreateList() and use of log in cwUiTest.
2021-11-01 10:11:27 -04:00
kevin
3b593c5336
cwUi.h/cpp,cwUiTest: cppAdded uiCreateLog(),uiSetNumbRange(),uiSetProgRange().
2021-10-12 16:52:45 -04:00
kevin
e3b104fb61
cwUi.h/cpp : Fixed bug in _parseValueMsg() and updated comments in cwUi.h
2021-01-31 11:07:29 -05:00
kevin
8f4455ae95
cwUi.h/cpp : Added findElementUuId( h, appId) to return uuid of the first occurence of an element with appId.
2021-01-22 09:46:10 -05:00
kevin
c929804d4c
cwUi.h/cpp,cwUiTest.h/cpp, cwUiDecls.h : Moved public variables to cwUiDecls.h. Added a version of create() which uses an arg_t record. Added parseArgs() and releaseArgs().
2021-01-20 13:10:56 -05:00
kpl
96b3b1ac0a
Pine64 Updates.
2020-10-31 14:17:43 -04:00
kevin.larke
4982c61d60
cwUi.h/cpp : Added single element creation functions which take there values from the system rather than setting them from their default value.
2020-05-18 11:03:42 -04:00
kevin
222e058579
cwUi : Added widget type "numb_disp".
2020-05-15 11:59:39 -04:00
kevin.larke
6be205ecb5
cwUi.h/cpp : Added findElementAppId().
2020-04-30 15:10:54 -04:00
kevin.larke
fab87f7050
cwUi.cpp : Fixed bug where 'title' element type had the wrong type string.
2020-04-28 20:51:18 -04:00
kevin.larke
9b3fec0f95
cwUi.h: Added 'title' widget, and other minor HTML/JS/CSS changes.
2020-04-28 17:39:18 -04:00
kevin.larke
aa7f945299
cwUi.h : _createEle() the parent id is set to the first ancestor which has a valid appId.
2020-04-28 16:37:49 -04:00
kevin.larke
a324184c7a
cwUi.cpp : Added 'div' aliases 'panel','row,'col' and assoc'd relaxed parent searching in _createEle().
2020-04-28 08:40:53 -04:00
kevin.larke
f121997d53
cwUi.cpp,ui.js,ui.css,ui.cfg : Added row,col,panel div aliases.
2020-04-27 12:31:10 -04:00
kevin.larke
e2f1d9915f
cwUi.h,cpp,cwUiTest.cpp : Added appIdMap[] as arg. to constructor.
2020-04-27 08:14:26 -04:00
kevin.larke
a260c3626c
cwUi.cpp : Eliminated use of 'initFl' and changed _findOrCreateElement() to allow certain matching parent/name pairs.
2020-04-26 17:27:29 -04:00
kevin.larke
87455db469
cwUI.h/cpp : Added session id tracking and 'idle' message generation.
2020-04-26 09:19:19 -04:00
kevin.larke
460e7d0048
cwUi.cpp : Added ui_t.initFl to prevent application id's from being re-registered when new websocket sessions are started.
2020-04-24 16:35:45 -04:00
kevin.larke
ebfe4dd224
cwUI.h/cpp,cwUiTest.cpp,html/uiTest/ui.js : Implemented 'echo' protocol to send values to the browser. Implemented initial default HTML class attribute assignments.
2020-04-24 10:20:25 -04:00
kevin.larke
9288040004
cwUi.cpp : check for null ele_t.eleName wherever eleName is accessed.
2020-04-23 13:53:30 -04:00
kevin.larke
515c31d90f
cwUi.cpp,cwUiTest.cpp : Change attribute 'class' to 'className'.
2020-04-21 17:56:38 -04:00
kevin.larke
24a43c4c47
Merge branch 'master' of gitea.larke.org:klarke/libcw
2020-04-21 15:00:03 -04:00
kevin.larke
a2588cdfd7
cwUi.h/cpp : Added createFromObject().
2020-04-21 14:59:55 -04:00
kevin.larke
a7858560a4
cwUi.cpp : _createEleFromRsrc() now duplicates the rsrc object prior to modifying it, thereby allowing a const source object.
2020-04-21 14:56:42 -04:00
kevin.larke
c6ccaefcdb
cwUI.h/cpp, cwUiTest.cpp : Separated the UI component into three parts ui, ws, srv.
2020-04-07 16:24:34 -04:00
kevin.larke
b6d716e8ff
cwUi.h/cpp, cwUiTest.cpp, html/uiTest : Initial working version of cwUI.
2020-04-06 19:17:04 -04:00
kevin
86c641c4ab
Minor changes for Raspberry Pi Build.
2020-04-04 20:53:20 +00:00
kevin.larke
2372f153b3
cwUi : Initial UI creation from resource file.
2020-03-31 13:10:45 -04:00
kevin.larke
9d1170b1eb
cwUi.h/cpp : Added shell for functions createFromFile(), createFromText().
2020-03-25 11:35:37 -04:00
kevin.larke
1a11282915
cwUi : Create message changed 'value' field to 'children'.
2020-03-24 08:53:42 -04:00
kpl
78b351b753
cwUi* : Initial implementation.
2020-03-23 10:50:10 -04:00