README.MD,main.cfg : Updates to reflect latest 'preset_sel' updates.
This commit is contained in:
parent
050d0473e5
commit
c02631e20b
54
README.md
54
README.md
@ -1,5 +1,16 @@
|
||||
libcw Testing and Development App
|
||||
|
||||
# GDB Setup:
|
||||
|
||||
set env LD_LIBRARY_PATH /home/kevin/sdk/libwebsockets/build/out/lib
|
||||
r ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
||||
|
||||
|
||||
# Valgrind setup
|
||||
|
||||
export LD_LIBRARY_PATH=~/sdk/libwebsockets/build/out/lib
|
||||
valgrind --leak-check=yes --log-file=vg0.txt ./cwtest ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
||||
|
||||
#Design Questions:
|
||||
|
||||
How should errors be presented to the user? developer?
|
||||
@ -13,34 +24,51 @@ All callbacks should return meaningful result codes.
|
||||
|
||||
### uiTest:
|
||||
|
||||
Fix crash when '=' is used as a pair separator rather than ':'.
|
||||
- Fix crash when '=' is used as a pair separator rather than ':'.
|
||||
cwUi is not noticing when a UI resource file fails to parse correctly.
|
||||
This may be a problem in cwObject or in cwUI.
|
||||
|
||||
Fix bug where leaving out the ending bracket for the first 'row' div in ui.cfg
|
||||
- Fix bug where leaving out the ending bracket for the first 'row' div in ui.cfg
|
||||
causes the next row to be included in the first row, and no error to be generated,
|
||||
even though the resource object is invalid (i.e. there is a missing brace).
|
||||
|
||||
Document the UI client/server protocol.
|
||||
- Document the UI client/server protocol.
|
||||
1. The message formats to and from the server and the javascript client.
|
||||
2. When the messages are sent.
|
||||
|
||||
Document the UI resource file format.
|
||||
- UI: Document the UI resource file format.
|
||||
|
||||
Add support for custom controls.
|
||||
- UI: Add support for custom controls.
|
||||
|
||||
Add an option to print the UI elment information as they are created.
|
||||
- UI: Add an option to print the UI elment information as they are created.
|
||||
This is a useful way to see if id maps are working.
|
||||
Print: ele name, uuid, appId and parent name, uuid, appId
|
||||
|
||||
- UI: Add an error indicator and API for each control (e.g. border set to red)
|
||||
- UI: Add the ability to order child lists via the 'order' attribute.
|
||||
- UI: Add API to delete a UI element
|
||||
|
||||
# GDB Setup:
|
||||
|
||||
set env LD_LIBRARY_PATH /home/kevin/sdk/libwebsockets/build/out/lib
|
||||
r ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
||||
- PresetSel: Select and highlight a fragment.
|
||||
- Enable 'Delete' button when a fragment is selected.
|
||||
|
||||
|
||||
# Valgrind setup
|
||||
|
||||
export LD_LIBRARY_PATH=~/sdk/libwebsockets/build/out/lib
|
||||
valgrind --leak-check=yes --log-file=vg0.txt ./cwtest ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
||||
|
||||
### UI Properties
|
||||
|
||||
name - becomes the HTML id for this element
|
||||
appId application id for this element
|
||||
title label or title for this element
|
||||
className Base class name for this element. All elements have a built-in default class name.
|
||||
addClassName Add this class name to the class name.
|
||||
clickable This elemnt will send a 'click' msg when clicked.
|
||||
enable This element is enabled
|
||||
visible This element is visible.
|
||||
|
||||
|
||||
|
||||
|
||||
# Preset Select
|
||||
|
||||
- Add a status box to report errors and warnings to the user.
|
||||
- When a invalid value is entered (thereby disabling a control) a message should be written to the status box.
|
||||
|
@ -57,9 +57,9 @@
|
||||
listEle: {
|
||||
|
||||
row: {
|
||||
check: { name: playCheckId, title:"Play", value: false },
|
||||
check: { name: playCheckId, title:"Play", value: false },
|
||||
select: { name: preMenuId, title:"Preset",
|
||||
children:
|
||||
children:
|
||||
{
|
||||
option:{ name: psOpt1, title:"Sel 1" },
|
||||
option:{ name: psOpt2, title:"Sel 2" },
|
||||
@ -1190,7 +1190,39 @@
|
||||
//midi_out_port: "input",
|
||||
|
||||
audio_in_ch_map: [0, 1 ],
|
||||
audio_out_ch_map: [0, 1 ]
|
||||
audio_out_ch_map: [0, 1 ],
|
||||
|
||||
presets: {
|
||||
preset_labelL: [ "dry", "a", "b", "c", "d", "f1", "f2", "f3", "f4", "g", "ga", "g1a", "g1d" ],
|
||||
default_gain: 1.0,
|
||||
default_wet_dry_gain: 0.5,
|
||||
default_fade_ms: 500.0
|
||||
},
|
||||
|
||||
frag_panel: {
|
||||
|
||||
panel: {
|
||||
name: fragPanelId
|
||||
addClassName: fragPanel
|
||||
|
||||
row: {
|
||||
col: {
|
||||
numb_disp: { name: fragEndLocId, title:"End Loc", value: 0 },
|
||||
number: { name: fragGainId, title:"Gain", min:0.0, max:10.0, step:0.1, decpl:1 },
|
||||
},
|
||||
col: {
|
||||
row {
|
||||
name: fragPresetRowId
|
||||
}
|
||||
},
|
||||
col: {
|
||||
number:{ name: fragWetDryGainId, title:"Wet/Dry", min:0.0, max:1.0, step:0.1, decpl:2 },
|
||||
number:{ name: fragFadeOutMsId, title:"Fade Ms", min:0.0, max:5000, step:1, decpl:0 },
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
ui: {
|
||||
|
Loading…
Reference in New Issue
Block a user