File IvoRSS.hws changed (mode: 100755) (index d3996f6..36ee3e1) |
... |
... |
Function p_MUIEvent(msg) |
53 |
53 |
p_CopyContents("item_title", "Title") |
p_CopyContents("item_title", "Title") |
54 |
54 |
Case "art_copy": |
Case "art_copy": |
55 |
55 |
p_CopyText() |
p_CopyText() |
|
56 |
|
|
|
57 |
|
Case "menu_save": |
|
58 |
|
FallThrough |
|
59 |
|
Case "fdtm_save": |
|
60 |
|
p_SaveFeeds() |
|
61 |
|
|
|
62 |
|
Case "menu_hide": |
|
63 |
|
FallThrough |
|
64 |
|
Case "fdtm_hide": |
|
65 |
|
p_HideFeeds() |
|
66 |
|
|
|
67 |
|
Case "menu_expand": |
|
68 |
|
FallThrough |
|
69 |
|
Case "fdtm_expand": |
|
70 |
|
p_ExpandFeeds() |
|
71 |
|
|
|
72 |
|
|
56 |
73 |
EndSwitch |
EndSwitch |
57 |
74 |
Case "Listview": |
Case "Listview": |
58 |
75 |
;assert(msg.Attribute = "Active") |
;assert(msg.Attribute = "Active") |
|
... |
... |
mui.CreateGUI(ReadString(1)) |
104 |
121 |
InstallEventHandler({MUIRoyale = p_MUIEvent}) |
InstallEventHandler({MUIRoyale = p_MUIEvent}) |
105 |
122 |
|
|
106 |
123 |
|
|
|
124 |
|
Function p_SaveFeeds() |
|
125 |
|
cFeeds = p_DumpFeedTree("feedtree") |
|
126 |
|
prf = {feeds=cFeeds, feedsdata={}} |
|
127 |
|
err_code = ?SavePrefs(prf) |
|
128 |
|
p_Replay(err_code, "Tree arrangement saved") |
|
129 |
|
EndFunction |
107 |
130 |
|
|
|
131 |
|
|
|
132 |
|
Function p_HideFeeds() |
|
133 |
|
mui.DoMethod("feedtree", "close", "root", "all") |
|
134 |
|
EndFunction |
108 |
135 |
|
|
109 |
|
|
|
110 |
|
|
|
|
136 |
|
Function p_ExpandFeeds() |
|
137 |
|
mui.DoMethod("feedtree", "open", "root", "all") |
|
138 |
|
EndFunction |
111 |
139 |
|
|
112 |
140 |
url$ = "https://www.powerpc-notebook.org/en/feed/" |
url$ = "https://www.powerpc-notebook.org/en/feed/" |
113 |
141 |
|
|
|
... |
... |
p:Close() |
177 |
205 |
|
|
178 |
206 |
; dFeeds is imported from feedtree.hws |
; dFeeds is imported from feedtree.hws |
179 |
207 |
prf = {feeds=dFeeds, feedsdata={}} |
prf = {feeds=dFeeds, feedsdata={}} |
180 |
|
LoadPrefs(prf) |
|
|
208 |
|
err_code = ?LoadPrefs(prf) |
|
209 |
|
p_Replay(err_code, "Program started") |
181 |
210 |
|
|
182 |
|
p_FillListTree("feedtree", prf.feeds) |
|
|
211 |
|
err_code = ?p_FillListTree("feedtree", prf.feeds) |
|
212 |
|
p_Replay(err_code, "Settings loaded") |
183 |
213 |
|
|
184 |
214 |
|
|
185 |
215 |
|
|
|
... |
... |
p_FillListTree("feedtree", prf.feeds) |
200 |
230 |
|
|
201 |
231 |
Repeat |
Repeat |
202 |
232 |
WaitEvent |
WaitEvent |
203 |
|
cFeeds = p_DumpFeedTree("feedtree") |
|
204 |
|
prf = {feeds=cFeeds, feedsdata={}} |
|
205 |
|
SavePrefs(prf) |
|
206 |
233 |
Forever |
Forever |