Mercurial > hg > Feedworm
comparison PreferencesDialog.py @ 72:e8c2730eb444
control the display of unread feeds/all feeds via Preferences
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 11 Aug 2010 03:23:02 +0200 |
parents | db35ab7753f0 |
children | 48d1d7bba548 |
comparison
equal
deleted
inserted
replaced
71:228da10cc98b | 72:e8c2730eb444 |
---|---|
16 maximized = self.preferences.startMaximized() | 16 maximized = self.preferences.startMaximized() |
17 self.ui.startMaximized.setChecked(maximized) | 17 self.ui.startMaximized.setChecked(maximized) |
18 | 18 |
19 hideRead = self.preferences.hideReadFeedEntries() | 19 hideRead = self.preferences.hideReadFeedEntries() |
20 self.ui.hideReadFeedEntries.setChecked(hideRead) | 20 self.ui.hideReadFeedEntries.setChecked(hideRead) |
21 | |
22 showOnlyUnreadFeeds = self.preferences.showOnlyUnreadFeeds() | |
23 self.ui.showOnlyUnreadFeeds.setChecked(showOnlyUnreadFeeds) | |
21 | 24 |
22 def startMaximizedChanged(self, change): | 25 def startMaximizedChanged(self, change): |
23 if change: | 26 if change: |
24 self.preferences.setStartMaximized(True) | 27 self.preferences.setStartMaximized(True) |
25 else: | 28 else: |
29 if change: | 32 if change: |
30 self.preferences.setHideReadFeedEntries(True) | 33 self.preferences.setHideReadFeedEntries(True) |
31 else: | 34 else: |
32 self.preferences.setHideReadFeedEntries(False) | 35 self.preferences.setHideReadFeedEntries(False) |
33 | 36 |
37 def showOnlyFeedsWithUnreadEntries(self, change): | |
38 if change: | |
39 self.preferences.setShowOnlyUnreadFeeds(True) | |
40 else: | |
41 self.preferences.setShowOnlyUnreadFeeds(False) | |
42 | |
34 def accept(self): | 43 def accept(self): |
35 self.session.commit() | 44 self.session.commit() |
36 QtGui.QDialog.accept(self) | 45 QtGui.QDialog.accept(self) |
37 | 46 |
38 def reject(self): | 47 def reject(self): |