changeset 193:c345a26febc2

add a toolbar icon for marking selected entries as read
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 24 Sep 2011 08:07:23 +0200
parents 9d422fa90096
children 2c91b5653878
files Feedworm.qrc Images/Checkmark.png Images/rss.jpg MainWindow.py Ui_MainWindow.ui check_all.png mark_all_read.jpg mark_selected_read.jpg
diffstat 8 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Feedworm.qrc	Wed Sep 21 13:23:25 2011 +0200
+++ b/Feedworm.qrc	Sat Sep 24 08:07:23 2011 +0200
@@ -1,7 +1,8 @@
 <RCC>
   <qresource prefix="newPrefix">
+    <file>mark_selected_read.jpg</file>
+    <file>mark_all_read.jpg</file>
     <file>open_in_browser.png</file>
-    <file>check_all.png</file>
     <file>worm.png</file>
   </qresource>
 </RCC>
Binary file Images/Checkmark.png has changed
Binary file Images/rss.jpg has changed
--- a/MainWindow.py	Wed Sep 21 13:23:25 2011 +0200
+++ b/MainWindow.py	Sat Sep 24 08:07:23 2011 +0200
@@ -46,6 +46,7 @@
     def enableFeedRelatedWidgets(self):
         self.ui.actionFeedSettings.setEnabled(True)
         self.ui.actionMarkFeedRead.setEnabled(True)
+        self.ui.actionMarkSelectedEntriesRead.setEnabled(True)
         self.ui.actionDeleteFeed.setEnabled(True)
 
     def setupFeedEntries(self):
--- a/Ui_MainWindow.ui	Wed Sep 21 13:23:25 2011 +0200
+++ b/Ui_MainWindow.ui	Sat Sep 24 08:07:23 2011 +0200
@@ -68,7 +68,7 @@
      <x>0</x>
      <y>0</y>
      <width>992</width>
-     <height>27</height>
+     <height>25</height>
     </rect>
    </property>
    <widget class="QMenu" name="menuFeed">
@@ -119,6 +119,7 @@
     <bool>false</bool>
    </attribute>
    <addaction name="actionMarkFeedRead"/>
+   <addaction name="actionMarkSelectedEntriesRead"/>
    <addaction name="actionOpenLink"/>
   </widget>
   <action name="actionQuit">
@@ -193,7 +194,7 @@
    </property>
    <property name="icon">
     <iconset resource="Feedworm.qrc">
-     <normaloff>:/newPrefix/check_all.png</normaloff>:/newPrefix/check_all.png</iconset>
+     <normaloff>:/newPrefix/mark_all_read.jpg</normaloff>:/newPrefix/mark_all_read.jpg</iconset>
    </property>
    <property name="text">
     <string>Mark all read</string>
@@ -240,7 +241,11 @@
   </action>
   <action name="actionMarkSelectedEntriesRead">
    <property name="enabled">
-    <bool>true</bool>
+    <bool>false</bool>
+   </property>
+   <property name="icon">
+    <iconset resource="Feedworm.qrc">
+     <normaloff>:/newPrefix/mark_selected_read.jpg</normaloff>:/newPrefix/mark_selected_read.jpg</iconset>
    </property>
    <property name="text">
     <string>Mark selected read</string>
Binary file check_all.png has changed
Binary file mark_all_read.jpg has changed
Binary file mark_selected_read.jpg has changed