Mercurial > hg > Feedworm
comparison FeedSettings.py @ 79:d11c3f71ac40
Make update interval editable via the feed's settings dialog.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sat, 14 Aug 2010 03:11:15 +0200 |
parents | d292ab61ed6f |
children | a4b2077c9603 |
comparison
equal
deleted
inserted
replaced
78:a728bbc7171e | 79:d11c3f71ac40 |
---|---|
11 self.ui.setupUi(self) | 11 self.ui.setupUi(self) |
12 self.initUi() | 12 self.initUi() |
13 | 13 |
14 def initUi(self): | 14 def initUi(self): |
15 self.ui.feedTitle.setText(self.feed.title) | 15 self.ui.feedTitle.setText(self.feed.title) |
16 self.ui.updateInterval.setText(str(self.feed.update_interval)) | |
16 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) | 17 self.ui.autoLoadArticle.setChecked(self.feed.auto_load_entry_link) |
17 self.ui.alwaysOpenInBrowser.setChecked(self.feed.always_open_in_browser) | 18 self.ui.alwaysOpenInBrowser.setChecked(self.feed.always_open_in_browser) |
18 | 19 |
19 def editingTitleFinished(self): | 20 def editingTitleFinished(self): |
20 title = str(self.ui.feedTitle.text()) | 21 title = str(self.ui.feedTitle.text()) |
21 self.feed.title = title | 22 self.feed.title = title |
23 | |
24 def editingUpdateIntervalFinished(self): | |
25 updateInterval = int(str(self.ui.updateInterval.text())) | |
26 self.feed.update_interval = updateInterval | |
27 self.feed.incrementNextUpdateDate() | |
22 | 28 |
23 def autoLoadArticleChanged(self, change): | 29 def autoLoadArticleChanged(self, change): |
24 if change: | 30 if change: |
25 self.feed.auto_load_entry_link = True | 31 self.feed.auto_load_entry_link = True |
26 else: | 32 else: |