Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLion hints and newui table/multirow #59

Merged
merged 6 commits into from
Nov 25, 2024
Merged

CLion hints and newui table/multirow #59

merged 6 commits into from
Nov 25, 2024

Conversation

ewowi
Copy link
Owner

@ewowi ewowi commented Nov 25, 2024

No description provided.

newui/index.js
- Add header StarLight

newui/mainnav.js
- remove some alert text

newui/modules.css
- add table layout
- add input background (WIP)

newui/modules.js
- walkThroughModel: add parent
- add findParentVar
- Variable::createHTML: use ro, call receiveData for value
- Variable::receiveData: deal with table type
- Variable::generateData: deal with table type
- TextVariable::generateData: deal with table type
- SelectVariable::receiveData: deal with ro
- SelectVariable::generateData: send options always
- TextVariable::createHTML: create table html
- TextVariable::generateHTML: no data generated

UsertModE131: rename watches to patches
newui

index.htm / theme.css:
- copy to newui folder

index.js:
- add Live.on checkbox for testing: conditional generateData
- add cCE function

mainnav
- createHTMLFun with parent

modules.css
- add body, h1, h2, div, select, option, a, textarea, canvas, module, tooltip, selected
- table width 0

modules.js
- createHTML: not return code but create in dom directly
- setDefaultValues; deactivate (wip)
- generateData: not for top level vars / modules
- findVar bugfix
- add NumberVariable

modules.js / Variable
- add pidid()
- add createNode
- add receiveValue
- add ReceiveComment
- refactor createHTML and receiveData and generateData
- add generateValue
- derived classes: use the new functions

package.json: add node >=20, change license to GPT-v3

SysModModel
= walkthroughmodel: return JsonObject
- findVar(s) cleanup a bit
SysModule
- add override to setup(), loop(), loop20ms(), loop1s() and loop10s, onOffChanged

SysModUI
- replace  VarEvent varEvent with  const VarEvent &varEvent (by reference instead of by value) -> saves 0.6% of flash!
- add inline to distance
- add const to functions or local vars
- use vector.empty instead of size()!=0
- use const type &var
- use strtol instead of atoi
- use nullptr instead of NULL
- use (bool3State) type cast for initCheckBox
- use explicit for 1 parameter constructors
- move declarations where vars are used
@ewowi ewowi merged commit f71bfe8 into main Nov 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant