Mercurial > hg > Feedworm
comparison MainWindow.py @ 213:524cbf9e413c
use correct TODO tags so they show up in the tasks view in Eclipse
author | dirk |
---|---|
date | Wed, 28 Nov 2012 01:53:29 +0100 |
parents | c694bfb732bc |
children | 9bc4b2465435 |
comparison
equal
deleted
inserted
replaced
212:1262b1168f1f | 213:524cbf9e413c |
---|---|
86 def feedEntryDoubleClicked(self, index): | 86 def feedEntryDoubleClicked(self, index): |
87 self.ui.menuArticle.setEnabled(True) | 87 self.ui.menuArticle.setEnabled(True) |
88 self.openSelectedEntryInBrowser() | 88 self.openSelectedEntryInBrowser() |
89 | 89 |
90 def openSummaryFromSelectedEntry(self): | 90 def openSummaryFromSelectedEntry(self): |
91 # TODO this is the wrong base url, figure out the correct one | 91 # TODO: this is the wrong base url, figure out the correct one |
92 feedEntry = self.backend.selectedFeedEntry | 92 feedEntry = self.backend.selectedFeedEntry |
93 baseUrl = QUrl(feedEntry.link) | 93 baseUrl = QUrl(feedEntry.link) |
94 self.ui.webView.setHtml(feedEntry.summary, baseUrl) | 94 self.ui.webView.setHtml(feedEntry.summary, baseUrl) |
95 | 95 |
96 def openLinkFromSelectedEntry(self): | 96 def openLinkFromSelectedEntry(self): |
109 | 109 |
110 def openSelectedEntryInBrowser(self): | 110 def openSelectedEntryInBrowser(self): |
111 feedEntry = self.backend.selectedFeedEntry | 111 feedEntry = self.backend.selectedFeedEntry |
112 message = "Open %s in external browser" % (feedEntry.title) | 112 message = "Open %s in external browser" % (feedEntry.title) |
113 self._updateStatusBar(message) | 113 self._updateStatusBar(message) |
114 # TODO make browser configurable | 114 # TODO: make browser configurable |
115 browser = "/usr/local/bin/opera" | 115 browser = "/usr/local/bin/opera" |
116 subprocess.Popen([browser, feedEntry.link]) | 116 subprocess.Popen([browser, feedEntry.link]) |
117 | 117 |
118 def toggleReadOnSelectedEntry(self): | 118 def toggleReadOnSelectedEntry(self): |
119 self.backend.toggleSelectedFeedEntryRead() | 119 self.backend.toggleSelectedFeedEntryRead() |