From: Olaf Wintermann Date: Fri, 29 Aug 2025 19:21:36 +0000 (+0200) Subject: show item category X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=7370184595f495a0776b36ff9495db776feb9083;p=rssreader.git show item category --- diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt index d7bff02..b2e7c1d 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/FeedList.kt @@ -14,6 +14,7 @@ class FeedList : Document() { val author = string("author") val linkstr = string("link") val link = UiLinkData(linkstr) + val category = string("category") val webview = webview("webview") val tabview = integer("tabview") @@ -63,6 +64,7 @@ class FeedList : Document() { feedName.setString(item.feedName) author.setString(item.author) link.set(item.link, item.link) + category.setString(item.category ?: "") var mimeType: String? = null var content: String? = null diff --git a/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt b/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt index 4cc0abc..27f49c2 100644 --- a/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt +++ b/rss-application/src/main/kotlin/de/unixwork/rssreader/MainWindow.kt @@ -105,6 +105,10 @@ class MainWindow { rlabel("Link:", hfill = true) linkbutton(varname = "link", styleClass = "ui-nopadding"); } + row { + rlabel("Category: ", hfill = true) + llabel(varname = "category") + } row { webview(varname = "webview", hfill = true, vfill = true, hexpand = true, vexpand = true, colspan = 2)