Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
5afa3e7
Merge branch 'fix-65-dq' into next
cursork Dec 9, 2024
f87a0e1
Always use CSS rather than Css
cursork Dec 12, 2024
8ab751e
Merge pull request #80 from Dyalog/CSS-Css
cursork Dec 12, 2024
f031e85
Add minimal CSS support to menus
cursork Dec 13, 2024
361de3f
Links are now selectable
cursork Dec 13, 2024
2d1171e
Merge pull request #82 from Dyalog/links-are-selectable
cursork Dec 13, 2024
cd8dbea
Active now works for Edit and Button
cursork Dec 15, 2024
47ca940
Remove the ridiculous font size in the demo
cursork Dec 16, 2024
d3a6f4b
Merge pull request #81 from Dyalog/menubarcss
cursork Dec 16, 2024
ab53140
Bundle new JS
cursork Dec 17, 2024
1c2b908
Client build update
cursork Dec 17, 2024
952b4f6
Auto-generated Ribbon usage example
cursork Dec 19, 2024
4024fa1
Neatened up and removed some extraneous data
cursork Dec 19, 2024
42fd6d0
Remove reassignment to images in demo
cursork Dec 19, 2024
6d98640
Fix issues with new DQ mode
mkromberg Dec 19, 2024
9e2f258
Merge pull request #84 from Dyalog/fix-dq
cursork Dec 19, 2024
19c560b
Create a more useful default devCaps structure
mkromberg Jan 2, 2025
673a3ba
Pick up CALLER when handing ∆NQ from HRCallbacks
mkromberg Jan 2, 2025
ce86c21
Add Demo_Issue303
mkromberg Jan 2, 2025
9400ef3
Add callback for Issue303
mkromberg Jan 2, 2025
7b12956
Update DemoGrids to demonstrate issue #337
mkromberg Jan 2, 2025
a48044f
Sort RibbonBigTwo image list for cross-platform consistency
mkromberg Jan 2, 2025
0787bd9
addDemomenu adds callback for Close event on F1 for all demos
mkromberg Jan 2, 2025
4d0aacf
Display Password Text and Value
mkromberg Jan 3, 2025
f2bd1da
Trap VALUE ERROR in issue 303
mkromberg Jan 3, 2025
467a185
Ignore configure events which do not change the size
mkromberg Jan 3, 2025
2e19a9c
Tweak HRBorder size
mkromberg Jan 3, 2025
d316049
Improve Configure handling
mkromberg Jan 3, 2025
c7c08ff
Update DemoPassword for issue #264
mkromberg Jan 3, 2025
ad0053b
Add missing defaults for upload
cursork Jan 5, 2025
0f831cd
Merge pull request #85 from Dyalog/upload-defaults
mkromberg Jan 5, 2025
6f213f3
Remove unnecessary () from DemoRibbonBigTwo - requires v20
mkromberg Jan 8, 2025
6cc5dff
Merge branch 'next' of https://github.com/dyalog/ewc into next
mkromberg Jan 8, 2025
27a7a01
Add information output when HTMLRenderer does not connect
mkromberg Jan 8, 2025
8218714
Oops - remove the ...
mkromberg Jan 8, 2025
a5ccc55
Avoide VALUE ERROR on HR if it does not exist
mkromberg Jan 9, 2025
e820b1d
Update DemoTabs to reproduce #343
mkromberg Jan 9, 2025
bfb21b0
Add forgotten localisation of "i"
mkromberg Jan 9, 2025
122c6df
Add BodyHeight and MaxButtonWidth to DemoRibbonBigTwo - and remove qu…
mkromberg Jan 9, 2025
6a854ae
Add Metadata for new Ribbon properties
mkromberg Jan 10, 2025
44a76e7
Remove endless Configure Loop when forms have menus
mkromberg Jan 10, 2025
e8b2776
Tweak CBUpdateTabs now that client adjusts TabControl size
mkromberg Jan 10, 2025
406991e
Signal 6 (VALUE ERROR) on missing WG return from client, rather than 11
mkromberg Jan 10, 2025
9d9d78a
Remove unneededwork-arounds for client errors in ∆WG
mkromberg Jan 10, 2025
2e73d71
Use 'W' Log to warn about unchanged DeviceCapabilities in Handler
mkromberg Jan 10, 2025
b22c173
Add Demo_Issue345
mkromberg Jan 16, 2025
35e133b
Add DemoInput
mkromberg Jan 20, 2025
9c1f5a9
Avoid double transmissions in DIRECT mode
mkromberg Jan 20, 2025
410d2a0
Enhance DemoGrids to reproduce #357
mkromberg Jan 20, 2025
85ab293
Fonts updated to set set font at both the subform level and at the bu…
cursork Jan 21, 2025
a99025b
MenuBar only exists at form level for now
cursork Jan 22, 2025
3477224
Add DemoList
cursork Jan 24, 2025
efbd873
Reduced demo showing list Single and Multi
cursork Jan 24, 2025
a91c631
Issue 361 demo for WS on size
cursork Jan 27, 2025
82cef24
Add LostFocus as supported on Edit
cursork Jan 31, 2025
2027711
Update to latest ewc-client next - 3671b4095
cursork Feb 13, 2025
0ae9ef1
Add CSS property to Font
cursork Feb 18, 2025
8845b61
Merge pull request #90 from Dyalog/add-css-to-font
cursork Feb 18, 2025
a4d11e1
Add Div for embedding HTML directly
cursork Mar 8, 2025
29d0a76
Embedding HTML via Div demo, now slightly more interesting
cursork Mar 8, 2025
56082e2
Merge pull request #92 from Dyalog/embed-html-div
cursork Mar 8, 2025
71d1fcf
Turn single character keypress into scalar char
mkromberg May 16, 2025
566f3a7
Escape and NumLock key mapped
cursork May 17, 2025
b28c296
Latest devt from ewc-client
cursork May 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion EWC/Handler.aplf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
r←con Handler payload;ns;Event;ID;Info;events;fns;fn;event;reqfn;info;sns;i;code;conn;coni;sock;z;m;msg;sessionspace;form;hr;CALLER;app;new;old;token;TID;URL
'R'Log'#',(⍕con),': ',payload
⎕TRAP←0 'S'
:If payload≡'{"Event":{"EventName":"Ping","ID":""}}'
'K'Log payload
:Else
'R'Log'#',(⍕con),': ',payload
:EndIf
i←(2⊃SESSIONS)⍳con
:If i>≢1⊃SESSIONS
'W'Log'Message received from closed session #',⍕con
Expand Down Expand Up @@ -84,6 +89,8 @@
new←hr.Posn,hr.Size-HRBorder
:If old≢new
∆NQ form 'Configure',new
:Else
'W' Log '*** Ignoring unchanged DeviceCapabilities'
:EndIf
:EndIf
:EndFor
Expand Down
11 changes: 7 additions & 4 deletions EWC/Init.aplf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{prefix}Init args;mode;z;i;t;fn;folder;⎕TRAP;DPR_FORM;_EWC
{prefix}Init args;mode;z;i;t;fn;folder;⎕TRAP;DPR_FORM;_EWC;dc
⎕IO←⎕ML←1

⎕TRAP←0 'S'
Expand Down Expand Up @@ -112,7 +112,7 @@
allocateTokens
DQTOKENS←⍬ ⍝ No tokens currently being DQ's

HRBorder←40 17 ⍝ Additional space required for HR chrome
HRBorder←39 16 ⍝ Additional space required for HR chrome
MENUOffset←23 0 ⍝ Space to allow for menu
NOIDQ←0 ⍝ Allow interactive DQ by default
WGID←0
Expand All @@ -130,8 +130,11 @@
(⍕z)⎕SIGNAL 11
:EndIf

:If 4≤⍴devCaps←'.' ⎕WG 'DevCaps'
DPR←100÷⍨4⊃devCaps
:If 4≤⍴dc←'.' ⎕WG 'DevCaps'
DPR←100÷⍨4⊃dc
'devCaps' ⎕NS ''
devCaps.ScreenSize←⊃dc
devCaps.DPR←DPR
:Else
DPR←1
:EndIf
1 change: 1 addition & 0 deletions EWC/Log.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mode Log msg
⍝ N: Explicit NQ
⍝ P: ProcessEvent
⍝ G: WG
⍝ K: Keep-Alive

→(mode∊LOGMODES)↓0
⎕←((,'ZI2,<:>,ZI2,<.>,ZI3' ⎕FMT 1 3⍴¯3↑⎕TS),' ',mode,':') msg
12 changes: 8 additions & 4 deletions EWC/MakeHR.aplf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
err←MakeHR (home name modal);ns;count;maxtries;ok;cb;dpr;conn;z;v
err←MakeHR (home name modal);ns;count;maxtries;ok;cb;dpr;conn;z;v;url
ns←home⍎name
home.⎕EX '_EWC.conn'
cb←(⍕⎕THIS),'.HRCallbacks'
dpr←DPR
defaultPosnSize ns
'HR' ns.⎕WC 'HTMLRenderer' ('Caption' ns.Caption) ('URL' ('localhost:',⍕PORT)) ('Size' (dpr×ns.Size+HRBorder))('Coord' ns.Coord)('Posn' (dpr×ns.Posn))('Event' ('Close' 'Configure') cb)('Visible' (~modal))
url←('localhost:',⍕PORT)
'HR' ns.⎕WC 'HTMLRenderer' ('Caption' ns.Caption) ('URL' url) ('Size' (dpr×ns.Size+HRBorder))('Coord' ns.Coord)('Posn' (dpr×ns.Posn))('Event' ('Close' 'Configure') cb)('Visible' (~modal))
'D' Log 'Created HTMLRenderer ',(⍕ns),'.HR'

:If SHOWDEVTOOLS
Expand All @@ -24,8 +25,11 @@ count←ok←0 ⋄ maxtries←200
:EndIf
⎕Dl 0.1 ⍝ Allow Handler to process connection
:Until (count>maxtries)∨ok←2=home.⎕NC '_EWC.conn'
err←(~ok)/'Unable to initialise HTMLRenderer'
:If ~ok ⋄ ∘∘∘ ⋄ :EndIf
err←(~ok)/'HTMLRenderer was directed to ',url,' but client did not connect'
:If ~ok
⎕←err
∘∘∘
:EndIf

:If 2=ns.⎕NC 'Visible'
v←ns.Visible
Expand Down
2 changes: 1 addition & 1 deletion EWC/WaitForWG.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ AGAIN:
('Property not supported by EWC: ',⍕m/t) ⎕SIGNAL 6
:EndIf
:If ~∧/ok
('Not returned: ',,⍕(~ok)/,⊆Props) ⎕SIGNAL 11
('Not returned: ',,⍕(~ok)/,⊆Props) ⎕SIGNAL 6
:EndIf
:EndIf
2 changes: 1 addition & 1 deletion EWC/classes/button/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
'ChildList'
'EventList'
'PropList'
'Css'
'CSS'
'CssStyle'
)
''
Expand Down
2 changes: 1 addition & 1 deletion EWC/classes/button/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
'ChildList'
'EventList'
'PropList'
'Css'
'CSS'
'CssClass'
)
3 changes: 2 additions & 1 deletion EWC/classes/button/Supported.apla
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'State'
'Align'
'Attach'
'Css'
'CSS'
'CssClass'
'Active'
)
1 change: 1 addition & 0 deletions EWC/classes/div/ClassName.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'Div'
11 changes: 11 additions & 0 deletions EWC/classes/div/Defaults.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(
'Div'
38 119
21 239
''
''
)
1 change: 1 addition & 0 deletions EWC/classes/div/Dynamic.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11 changes: 11 additions & 0 deletions EWC/classes/div/PropList.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(
'Type'
'Posn'
'Size'
'HTML'
'CSS'
'MethodList'
'ChildList'
'EventList'
'PropList'
)
11 changes: 11 additions & 0 deletions EWC/classes/div/Supported.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(
'Type'
'Posn'
'Size'
'HTML'
'CSS'
'MethodList'
'ChildList'
'EventList'
'PropList'
)
2 changes: 2 additions & 0 deletions EWC/classes/div/methodlist.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(
)
1 change: 1 addition & 0 deletions EWC/classes/edit/Supported.apla
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
'Border'
'SelText'
'CSS'
'Active'
)
1 change: 1 addition & 0 deletions EWC/classes/edit/SupportedEvents.apla
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(
'GotFocus'
'LostFocus'
'Change'
'KeyPress'
'MouseDown'
Expand Down
1 change: 1 addition & 0 deletions EWC/classes/font/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@
'EventList'
'PropList'
)
''
)
1 change: 1 addition & 0 deletions EWC/classes/font/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@
'ChildList'
'EventList'
'PropList'
'CSS'
)
1 change: 1 addition & 0 deletions EWC/classes/font/Supported.apla
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
'Underline'
'Italic'
'Rotate'
'CSS'
)
20 changes: 16 additions & 4 deletions EWC/classes/link/Defaults.apla
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
(
'Link'
'' ⍝ Href
⍬ ⍝ Label
'_blank' ⍝ Target
0 ⍝ Download
'' ⍝ Href
⍬ ⍝ Label
'_blank' ⍝ Target
0 ⍝ Download
'None' ⍝ Event
('Select') ⍝ EventList
( ⍝ PropList
'Type'
'Href'
'Label'
'Target'
'Download'
'Event'
'EventList'
'PropList'
)
)
3 changes: 3 additions & 0 deletions EWC/classes/link/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
'Label'
'Target'
'Download'
'Event'
'EventList'
'PropList'
)
4 changes: 4 additions & 0 deletions EWC/classes/link/Supported.apla
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
(
'Type'
'Href'
'Label'
'Target'
'Download'
'Event'
)
3 changes: 3 additions & 0 deletions EWC/classes/link/SupportedEvents.apla
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(
'Select'
)
1 change: 1 addition & 0 deletions EWC/classes/menu/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
''
''
)
''
'None'
17771087
Expand Down
1 change: 1 addition & 0 deletions EWC/classes/menu/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'FCol'
'BCol'
'BtnPix'
'CSS'
'Data'
'EdgeStyle'
'Handle'
Expand Down
1 change: 1 addition & 0 deletions EWC/classes/menu/Supported.apla
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(
'Type'
'Caption'
'CSS'
)
1 change: 1 addition & 0 deletions EWC/classes/menubar/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
1
0 0
''
''
'None'
''
Expand Down
1 change: 1 addition & 0 deletions EWC/classes/menubar/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
'Visible'
'Event'
'FontObj'
'CSS'
'Data'
'EdgeStyle'
'MDIMenu'
Expand Down
1 change: 1 addition & 0 deletions EWC/classes/menubar/Supported.apla
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(
'Type'
'Visible'
'CSS'
)
13 changes: 13 additions & 0 deletions EWC/classes/ribbon/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@
192 192 192
''
(
'Type'
'Visible'
'Size'
'FCol'
'BCol'
'TitleBCol'
'ImageListObj'
'Data'
'PropList'
)
120
120
)
3 changes: 3 additions & 0 deletions EWC/classes/ribbon/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
'TitleBCol'
'ImageListObj'
'Data'
'PropList'
'BodyHeight'
'MaxButtonWidth'
)
3 changes: 3 additions & 0 deletions EWC/classes/ribbon/Supported.apla
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@
'TitleBCol'
'ImageListObj'
'Data'
'PropList'
'BodyHeight'
'MaxButtonWidth'
)
12 changes: 12 additions & 0 deletions EWC/classes/ribbonbutton/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
''
0
(
'Type'
'Caption'
'Icon'
'Size'
'Border'
'Event'
'ImageListObj'
'ImageIndex'
'Data'
'PropList'
)
)
1 change: 1 addition & 0 deletions EWC/classes/ribbonbutton/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
'ImageListObj'
'ImageIndex'
'Data'
'PropList'
)
11 changes: 11 additions & 0 deletions EWC/classes/ribbonbuttongroup/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@
''
0
(
'Type'
'Captions'
'Icons'
'Border'
'Event'
'ImageListObj'
'ImageIndex'
'Data'
'PropList'
)
)
1 change: 1 addition & 0 deletions EWC/classes/ribbonbuttongroup/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
'ImageListObj'
'ImageIndex'
'Data'
'PropList'
)
10 changes: 10 additions & 0 deletions EWC/classes/ribbondropdownbutton/Defaults.apla
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,14 @@
''
0 0
0
(
'Type'
'Caption'
'Icon'
'Event'
'Data'
'PropList'
)
)
3 changes: 3 additions & 0 deletions EWC/classes/ribbondropdownbutton/PropList.apla
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
'Icon'
'Event'
'Data'
'ImageListObj'
'ImageIndex'
'PropList'
)
2 changes: 2 additions & 0 deletions EWC/classes/ribbondropdownbutton/Supported.apla
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
'Icon'
'Event'
'Data'
'ImageListObj'
'ImageIndex'
)
Loading