I'm preparing this page to have icons changing based on the device_class selected to a cover.
253 lines
7.0 KiB
Plaintext
253 lines
7.0 KiB
Plaintext
Page settings
|
|
Attributes
|
|
ID : 0
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Locked : no
|
|
Swide up page ID : disabled
|
|
Swide down page ID : disabled
|
|
Swide left page ID : disabled
|
|
Swide right page ID: disabled
|
|
|
|
Events
|
|
Preinitialize Event
|
|
dim=brightness
|
|
covx brightslider.val,bright_text.txt,0,0
|
|
covx dimslider.val,dim_text.txt,0,0
|
|
printh 92
|
|
prints "nspanelevent",0
|
|
printh 00
|
|
prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Press Event
|
|
printh 92
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Touch Release Event
|
|
printh 92
|
|
prints "touchevent",0
|
|
printh 00
|
|
prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0
|
|
printh 00
|
|
printh FF FF FF
|
|
|
|
Text bright_text
|
|
Attributes
|
|
ID : 3
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 3
|
|
|
|
Text dim_text
|
|
Attributes
|
|
ID : 4
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text :
|
|
Max. Text Size : 3
|
|
|
|
Text lbl_reboot
|
|
Attributes
|
|
ID : 5
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Reboot
|
|
Max. Text Size : 6
|
|
|
|
Text lbl_sleep
|
|
Attributes
|
|
ID : 6
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Sleep
|
|
Max. Text Size : 5
|
|
|
|
Text lbl_brightness
|
|
Attributes
|
|
ID : 7
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Brightness
|
|
Max. Text Size : 10
|
|
|
|
Text lbl_dimming
|
|
Attributes
|
|
ID : 8
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID : disabled
|
|
Associated Keyboard: none
|
|
Text : Dimming
|
|
Max. Text Size : 7
|
|
|
|
Slider brightslider
|
|
Attributes
|
|
ID : 1
|
|
Scope : global
|
|
Dragging : 0
|
|
Send Component ID: on press and release
|
|
Position : 80
|
|
Upper range limit: 100
|
|
Lower range limit: 0
|
|
|
|
Events
|
|
Touch Release Event
|
|
covx brightslider.val,bright_text.txt,0,0
|
|
printh 91
|
|
prints "brightslider",0
|
|
printh 00
|
|
prints brightslider.val,0
|
|
printh FF FF FF
|
|
|
|
Slider dimslider
|
|
Attributes
|
|
ID : 2
|
|
Scope : global
|
|
Dragging : 0
|
|
Send Component ID: on press and release
|
|
Position : 20
|
|
Upper range limit: 100
|
|
Lower range limit: 0
|
|
|
|
Events
|
|
Touch Release Event
|
|
covx dimslider.val,dim_text.txt,0,0
|
|
printh 91
|
|
prints "dimslider",0
|
|
printh 00
|
|
prints dimslider.val,0
|
|
printh FF FF FF
|
|
|
|
Button button_back
|
|
Attributes
|
|
ID : 11
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 3
|
|
|
|
Events
|
|
Touch Press Event
|
|
page home
|
|
|
|
Dual-state Button bt_reboot
|
|
Attributes
|
|
ID : 9
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: on press and release
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 0
|
|
|
|
Dual-state Button bt_sleep
|
|
Attributes
|
|
ID : 10
|
|
Scope : global
|
|
Dragging : 0
|
|
Send Component ID: on press and release
|
|
State : unpressed
|
|
Text :
|
|
Max. Text Size : 0
|
|
|
|
Hotspot bt_bright_down
|
|
Attributes
|
|
ID : 12
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
|
|
Events
|
|
Touch Release Event
|
|
if(brightslider.val>0)
|
|
{
|
|
brightslider.val--
|
|
covx brightslider.val,bright_text.txt,0,0
|
|
printh 91
|
|
prints "brightslider",0
|
|
printh 00
|
|
prints brightslider.val,0
|
|
printh FF FF FF
|
|
}
|
|
|
|
Hotspot bt_bright_up
|
|
Attributes
|
|
ID : 13
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
|
|
Events
|
|
Touch Release Event
|
|
if(brightslider.val<100)
|
|
{
|
|
brightslider.val++
|
|
covx brightslider.val,bright_text.txt,0,0
|
|
printh 91
|
|
prints "brightslider",0
|
|
printh 00
|
|
prints brightslider.val,0
|
|
printh FF FF FF
|
|
}
|
|
|
|
Hotspot bt_dim_down
|
|
Attributes
|
|
ID : 14
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
|
|
Events
|
|
Touch Release Event
|
|
if(dimslider.val>0)
|
|
{
|
|
dimslider.val--
|
|
covx dimslider.val,dim_text.txt,0,0
|
|
printh 91
|
|
prints "dimslider",0
|
|
printh 00
|
|
prints dimslider.val,0
|
|
printh FF FF FF
|
|
}
|
|
|
|
Hotspot bt_dim_up
|
|
Attributes
|
|
ID : 15
|
|
Scope : local
|
|
Dragging : 0
|
|
Send Component ID: disabled
|
|
|
|
Events
|
|
Touch Release Event
|
|
if(dimslider.val<100)
|
|
{
|
|
dimslider.val++
|
|
covx dimslider.val,dim_text.txt,0,0
|
|
printh 91
|
|
prints "dimslider",0
|
|
printh 00
|
|
prints dimslider.val,0
|
|
printh FF FF FF
|
|
}
|
|
|