/IvoRSS.hws (45c4b47a42e31fce9f173b086a71ae157b53cf3f) (1907 bytes) (mode 100755) (type blob)
@VERSION 5,2
@APPTITLE "IvoRSS"
@APPVERSION "$VER: IvoRSS 0.1 (16.6.22)"
@APPCOPYRIGHT "© 2022, Aleksei Gerasimov"
@APPAUTHOR "Aleksei Gerasimov"
@APPDESCRIPTION "Simple RSS reader"
@REQUIRE "muiroyale", {Version=1, Revision=7}
@REQUIRE "hurl"
@REQUIRE "xmlparser"
@DISPLAY {Hidden=True}
@FILE 1, "AppWindow.xml"
/*
** Handles all incoming events
*/
Function p_MUIEvent(msg)
DebugPrint("MUI event!", " Class:", msg.Class, " ID:", msg.ID, " Attribute:", msg.Attribute)
Switch msg.Class
Case "Window":
Switch msg.Attribute
Case "CloseRequest":
End
EndSwitch
Case "Menuitem":
Switch msg.ID
Case "menu_about":
Local reqtext$ = "\27c\27b IvoRSS 0.1 \n\27n Simple RSS client"
If mui.Request("About", reqtext$, "Open repository|*OK") Then OpenURL("http://rocketgit.com/iam-git/IvoRSS")
Case "menu_about_mui":
mui.DoMethod("app", "AboutMUI")
Case "menu_about_muiroyale":
mui.DoMethod("app", "AboutMUIRoyale")
Case "menu_quit":
End
Case "menu_muisettings":
mui.DoMethod("app", "OpenConfigWindow")
EndSwitch
EndSwitch
EndFunction
mui.CreateGUI(ReadString(1))
InstallEventHandler({MUIRoyale = p_MUIEvent})
url$ = "https://www.powerpc-notebook.org/en/feed/"
DownloadFile(url$, {File = "feed.xml", Adapter = "hurl"})
text$ = FileToString("feed.xml")
mui.Set("textfield", "Text", text$)
Function StartElement(p, name$, attrs)
DebugPrint("*** Start Element:", name$)
For i,v In Pairs(attrs)
If GetType(i) = #STRING Then DebugPrint("-->", i .. "=" .. v)
Next
EndFunction
Function EndElement(p, name$)
DebugPrint("*** End Element:", name$)
EndFunction
p = XMLParser.New({StartElement = StartElement, EndElement = EndElement})
Assert(p:Parse(text$))
p:Close()
Repeat
WaitEvent
Forever
Mode |
Type |
Size |
Ref |
File |
100755 |
blob |
1118 |
8e2dc1994a6fbc092c609a278c50da8ffba53d88 |
AppWindow.xml |
100755 |
blob |
1907 |
45c4b47a42e31fce9f173b086a71ae157b53cf3f |
IvoRSS.hws |
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