List of commits:
Subject Hash Author Date (UTC)
implement item selection b42586a38c98a4087937b8f85f7dd2570cb61bf7 Alex 2022-06-19 02:42:29
show items list ee6686fc57690fc236aefc334861dbf0fd65b2ce Alex 2022-06-19 01:42:38
parse channel title and description 96ec5e38931158d27a75c0fe922fd14a8647dba1 Alex 2022-06-18 23:53:49
add XML parser... 4f2d6297a47fe2f9f377bf9ce5afd9545cf9ae2f Alex 2022-06-18 14:29:17
prepare textfield b88f2e78f55a4ba7e62f674bcdf38615f3d3eb09 Alex 2022-06-18 02:35:37
initial commit 702a1b31f80bf565bf20cc6ecc4e9d748d772363 Alex 2022-06-17 23:42:13
Commit b42586a38c98a4087937b8f85f7dd2570cb61bf7 - implement item selection
Author: Alex
Author date (UTC): 2022-06-19 02:42
Committer name: Alex
Committer date (UTC): 2022-06-19 02:42
Parent(s): ee6686fc57690fc236aefc334861dbf0fd65b2ce
Signer:
Signing key:
Signing status: N
Tree: 5c89ade1146a3b2305652593aff76254958b6e98
File Lines added Lines deleted
AppWindow.xml 7 6
IvoRSS.hws 17 3
File AppWindow.xml changed (mode: 100755) (index ac82708..0f65b59)
17 17 <hgroup> <hgroup>
18 18 <listview id="lv3" frame="readlist" notify="appmessage" weight="50"><column/></listview> <listview id="lv3" frame="readlist" notify="appmessage" weight="50"><column/></listview>
19 19 <vgroup> <vgroup>
20 <text id="channel_title" PreParse="\33b"></text>
21 <text id="channel_description"></text>
20 <text id="channel_title" PreParse="\33b"/>
21 <text id="channel_description"/>
22 22
23 <listview id="articles" notify="appmessage">
23 <listview id="articles" notify="active">
24 24 <column title="Title"/> <column title="Title"/>
25 25 <column title="PubDate"/> <column title="PubDate"/>
26 26 <column title="Category"/> <column title="Category"/>
27
28 </listview>
29 <floattext id="textfield" background="readlistback" tabsize="4" justify="true">
27 </listview>
28
29 <text id="item_title" PreParse="\33b"/>
30 <floattext id="textfield" background="readlistback" tabsize="4" justify="true">
30 31
31 32 </floattext> </floattext>
32 33
File IvoRSS.hws changed (mode: 100755) (index 47ae817..ee41046)
... ... Function p_MUIEvent(msg)
38 38 Case "menu_muisettings": Case "menu_muisettings":
39 39 mui.DoMethod("app", "OpenConfigWindow") mui.DoMethod("app", "OpenConfigWindow")
40 40 EndSwitch EndSwitch
41 Case "Listview":
42 ;assert(msg.Attribute = "Active")
43 ;assert(msg.ID = "articles")
44 Local chosen_item = items_list[msg.TriggerValue]
45 mui.Set("item_title", "Contents", chosen_item.title)
46 mui.Set("textfield", "Text", chosen_item.description)
47 ;Switch msg.ID
48 ;Case "CloseRequest":
49 ; End
50 ;EndSwitch
41 51 EndSwitch EndSwitch
42 52 EndFunction EndFunction
43 53
 
... ... url$ = "https://www.powerpc-notebook.org/en/feed/"
55 65 DownloadFile(url$, {File = "feed.xml", Adapter = "hurl"}) DownloadFile(url$, {File = "feed.xml", Adapter = "hurl"})
56 66
57 67 text$ = FileToString("feed.xml") text$ = FileToString("feed.xml")
58 mui.Set("textfield", "Text", text$)
68 ;mui.Set("textfield", "Text", text$)
59 69
70
71 items_list = CreateList()
60 72 channel_level = True channel_level = True
61 73 current_element$ = Nil current_element$ = Nil
62 74
63 current_item = {title="", pubdate="", category=""}
75 current_item = {title="", pubdate="", category="", description=""}
64 76
65 77 Function StartElement(p, name$, attrs) Function StartElement(p, name$, attrs)
66 78 current_element$ = name$ current_element$ = name$
 
... ... Function EndElement(p, name$)
82 94 current_item.title, current_item.title,
83 95 current_item.pubdate, current_item.pubdate,
84 96 current_item.category) current_item.category)
85 current_item = {title="", pubdate="", category=""}
97 InsertItem(items_list, current_item)
98 current_item = {title="", pubdate="", category="", description=""}
86 99 EndIf EndIf
87 100 EndFunction EndFunction
88 101
 
... ... Function CharacterData(p, str$)
95 108 else else
96 109 If current_element$ = "title" Then current_item.title = str$ If current_element$ = "title" Then current_item.title = str$
97 110 If current_element$ = "pubDate" Then current_item.pubdate = str$ If current_element$ = "pubDate" Then current_item.pubdate = str$
111 If current_element$ = "description" Then current_item.description = str$
98 112 If current_element$ = "category" If current_element$ = "category"
99 113 If current_item.category = "" If current_item.category = ""
100 114 current_item.category = str$ current_item.category = str$
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/iam-git/IvoRSS

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/iam-git/IvoRSS

Clone this repository using git:
git clone git://git.rocketgit.com/user/iam-git/IvoRSS

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main