Commit Graph

69 Commits

Author SHA1 Message Date
kevin
9acb24e9e1 Apply licensing information to project. 2024-12-01 14:35:24 -05:00
kevin
703cc29014 cwEuCon.cpp,cwLib.cpp,cwUi.cpp,cwWebSock.cpp : These modules now have a dependency on cwObject.h. 2024-11-30 12:18:18 -05:00
kevin
7cc27cb8dd cwUI.h/cpp : Added elementChildCount/UuId() and elementPhysChildCount/UuId().
emptyParent() now deletes child elements.
Added  _remove_ele_from_hash_table() to fix bug where destroyed elements were not removed from hash table.
2024-10-19 12:36:12 -04:00
kevin
0dab461a6e cwUi.h/cpp :
1. Renamed createList() to createHList(). Added createVList().
2. Added setTitle().
2024-10-12 15:18:05 -04:00
kevin
4f2174c82d cwIo.h/cpp, cwUi.h/cpp : Added emptyParent(). 2024-09-21 17:18:12 -04:00
kevin
c55f7d34ec 1. caw program parameters are now in snake_case rather than camelCase.
2. Column headers are now printed for caw 'log' output.
3. The websocket LLL_NOTICE logs may now be turned off using the 'extraLogsFl'.
4. Changed the 'Number' processor to work with the 'feedback' example.
5. README.md updates.
2024-09-12 17:18:42 -04:00
kevin
8dde88f6fd Merge branch 'poly' of gitea.larke.org:kevin/libcw into poly
# Conflicts:
#	cwFlow.cpp
#	cwIoPresetSelApp.cpp
#	cwLex.cpp
#	cwLex.h
#	cwPresetSel.cpp
#	html/preset_sel/ui.cfg
2024-05-29 14:06:54 -04:00
kevin
91fad53d33 Added "#include cwTest.h" dependency to most *.cpp files. 2024-05-29 12:36:57 -04:00
kevin
8ffc2f3e57 cwUi,cwIo,ui.js : Added ui::setScrollTop() 2024-05-11 12:10:21 -04:00
kevin
98ed33d2cc cwUi.h/cpp : Add queueBlkCnt and queueBlkByteCnt to websock based API's.
Removed websockTimeOutMs from UI cfg. and replace it as an argument to ui::ws::exec().
2024-03-28 19:47:29 -04:00
kevin
89a4b83c45 cwUi.cpp :
1. Add one to hashA[] to prevent a hash index of 0xffff from going past the end of the array.
2. Fix bug where hash table buckets were not released.
2024-03-25 22:17:40 -04:00
kevin
6b2a3db3f0 Merge branch 'dev' of gitea.larke.org:kevin/libcw into dev 2024-03-25 14:32:21 -04:00
kevin
55aed815e1 cwUi.h/cpp : Added ui::ws::realTimeReport(). 2024-03-25 14:29:58 -04:00
kevin
36826a3b66 Replace use of {0} with {}, or replace partial initialization cases with complete initialization. 2024-03-25 10:46:45 -04:00
kevin
021a1c2808 Merge branch 'master' of gitea.larke.org:kevin/libcw 2024-02-18 17:58:52 -05:00
kevin
b35658d550 cwUi.cpp : goto errLabel in ui::create() if _createFromObj() fails. 2024-02-18 17:58:16 -05:00
kevin
bf3317a4e7 cwUi.cpp : Added use of a hash table to speed _findElementUuId()
and improved _find_and_available_element_slot() by first guessing
at an available slot before resorting to a search.
2024-02-18 08:49:24 -05:00
kevin
611c198197 cwCommon.h,cwCsv.h,cwObject.h,cwUi.cpp : Changed result code kLabelNotFoundRC to kEleNotFoundRC. 2024-02-08 10:55:48 -05:00
kevin
293629831c cwUi.cpp: _webSockSend() now directly returns the result of websock::send(). 2024-01-13 10:00:11 -05:00
kevin
6ed0f6c080 cwUi.h/cpp : Added sendMsg(). eleA[] now doubles in size with each reallocation. 2024-01-06 08:44:53 -05:00
kevin
c0cf1ca956 cwIo,cwUi : Added realTimeReport() 2023-12-03 11:18:02 -05:00
kevin
15fb486c4b Add enableCache() and flushCache(). 2023-05-19 21:59:35 -04:00
kevin
5e90a9ff53 cwUi.cpp : Warn if the UI resource does not have a 'main' element. 2022-12-20 10:33:51 -05:00
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