File AppWindow.xml changed (mode: 100755) (index 56602c7..3e06093) |
1 |
1 |
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
2 |
|
<application id="app" base="IVORSS"> |
|
|
2 |
|
<application id="app" base="IVORSS" icon="IvoRSS.info"> |
3 |
3 |
<menustrip id="mainstrip"> |
<menustrip id="mainstrip"> |
4 |
4 |
<menu title="Project"> |
<menu title="Project"> |
5 |
5 |
<item id="menu_about" notify="selected">About...</item> |
<item id="menu_about" notify="selected">About...</item> |
|
15 |
15 |
|
|
16 |
16 |
<window id="win" muiid="MAIN" title="IvoRSS" screentitle="IvoRSS" notify="closerequest" menustrip="mainstrip" appwindow="true"> |
<window id="win" muiid="MAIN" title="IvoRSS" screentitle="IvoRSS" notify="closerequest" menustrip="mainstrip" appwindow="true"> |
17 |
17 |
<hgroup> |
<hgroup> |
18 |
|
<listtree id="feedtree" title="RSS feeds" notify="active" /> |
|
|
18 |
|
<listtree id="feedtree" title="RSS feeds" weight="50" notify="active" /> |
19 |
19 |
<vgroup> |
<vgroup> |
20 |
20 |
<text id="channel_title" PreParse="\33b"/> |
<text id="channel_title" PreParse="\33b"/> |
21 |
21 |
<text id="channel_description"/> |
<text id="channel_description"/> |
File IvoRSS.hws changed (mode: 100755) (index b94ff01..6b003da) |
1 |
1 |
@VERSION 6,0 |
@VERSION 6,0 |
2 |
2 |
@APPTITLE "IvoRSS" |
@APPTITLE "IvoRSS" |
3 |
|
@APPVERSION "$VER: IvoRSS 0.1 (16.6.22)" |
|
|
3 |
|
@APPVERSION "$VER: IvoRSS 0.2 (5.7.22)" |
4 |
4 |
@APPCOPYRIGHT "© 2022, Aleksei Gerasimov" |
@APPCOPYRIGHT "© 2022, Aleksei Gerasimov" |
5 |
5 |
@APPAUTHOR "Aleksei Gerasimov" |
@APPAUTHOR "Aleksei Gerasimov" |
6 |
6 |
@APPDESCRIPTION "Simple RSS reader" |
@APPDESCRIPTION "Simple RSS reader" |
|
... |
... |
p:Close() |
130 |
130 |
|
|
131 |
131 |
|
|
132 |
132 |
|
|
|
133 |
|
; dFeeds is imported from feedtree.hws |
|
134 |
|
prf = {feeds=dFeeds, feedsdata={}} |
|
135 |
|
LoadPrefs(prf) |
133 |
136 |
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
p_FillListTree("feedtree", dFeeds) ; dFeeds is imported from feedtree.hws |
|
137 |
|
|
|
|
137 |
|
p_FillListTree("feedtree", prf.feeds) |
138 |
138 |
|
|
139 |
|
p_DumpListTree("feedtree", "root", 0) |
|
|
139 |
|
|
140 |
140 |
|
|
141 |
141 |
|
|
142 |
142 |
;sum$ = MD5Str(s$) |
;sum$ = MD5Str(s$) |
|
... |
... |
p_DumpListTree("feedtree", "root", 0) |
145 |
145 |
|
|
146 |
146 |
;t = CreateList() |
;t = CreateList() |
147 |
147 |
|
|
148 |
|
; prf = {lastfile$ = "test.txt", lastxpos = 100, lastypos = 200} |
|
149 |
|
; SavePrefs(prf) |
|
150 |
148 |
|
|
151 |
|
;prf = {lastfile$ = "Unnamed", lastxpos = 0, lastypos = 0} |
|
152 |
|
; LoadPrefs(prf) |
|
|
149 |
|
|
|
150 |
|
|
153 |
151 |
|
|
154 |
152 |
|
|
155 |
153 |
|
|
156 |
154 |
;Print(GetCatalogString(4, "default string")) |
;Print(GetCatalogString(4, "default string")) |
157 |
155 |
|
|
158 |
156 |
Repeat |
Repeat |
159 |
|
WaitEvent |
|
|
157 |
|
WaitEvent |
|
158 |
|
cFeeds = p_DumpFeedTree("feedtree") |
|
159 |
|
prf = {feeds=cFeeds, feedsdata={}} |
|
160 |
|
SavePrefs(prf) |
160 |
161 |
Forever |
Forever |
File feedtree.hws changed (mode: 100755) (index 16bcef5..e11c682) |
... |
... |
Function p_FillListTree(listtree$, treetable) |
49 |
49 |
EndFunction |
EndFunction |
50 |
50 |
|
|
51 |
51 |
|
|
|
52 |
|
Function p_DumpFeedTree(listtree$) |
|
53 |
|
cFeeds = CreateList() ;currentFeeds |
|
54 |
|
p_DumpListTree(listtree$, cFeeds, "Root", "Root") |
|
55 |
|
Return(cFeeds) |
|
56 |
|
EndFunction |
|
57 |
|
|
52 |
58 |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
Function p_DumpListTree(id$, node, indent) |
|
56 |
|
Local found, t = mui.DoMethod(id$, "GetEntry", node, "Head", "") |
|
57 |
|
While found = True |
|
58 |
|
If indent > 0 |
|
59 |
|
DebugPrint(RepeatStr(" ", indent) .. |
|
60 |
|
IIf(t.Node = True, "+", "") .. t.name) |
|
61 |
|
Else |
|
62 |
|
DebugPrint(IIf(t.Node = True, "+", "") .. t.name) |
|
63 |
|
EndIf |
|
64 |
|
If t.Node = True Then p_DumpListTree(id$, t.muiid, indent + 4) |
|
65 |
|
found, t = mui.DoMethod(id$, "GetEntry", t.muiid, "Next", "") |
|
|
59 |
|
;č tohle musí být rekurzivní |
|
60 |
|
Function p_DumpListTree(listtree$, tabletree, nodeid, muiid) |
|
61 |
|
Local isFound, t = mui.DoMethod(listtree$, "GetEntry", muiid, "Head", "") |
|
62 |
|
While isFound |
|
63 |
|
InsertItem(tabletree, {id=t.id, name=t.name, isNode=t.node, parent=nodeid}) |
|
64 |
|
If t.Node = True Then p_DumpListTree(listtree$, tabletree, t.id, t.muiid) |
|
65 |
|
isFound, t = mui.DoMethod(listtree$, "GetEntry", t.muiid, "Next", "") |
66 |
66 |
Wend |
Wend |
67 |
67 |
EndFunction |
EndFunction |
68 |
68 |
|
|