Mercurial > hg > Feedworm
changeset 115:e9145e8dd698
add a toolbar with actions
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 26 Jun 2011 11:29:00 +0200 |
parents | b0290ab29483 |
children | 7f07ced80d6f |
files | Feedworm.qrc MainWindow.py README.txt Ui_MainWindow.ui check_all.png open_in_browser.png |
diffstat | 6 files changed, 28 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Feedworm.qrc Sat May 28 07:43:56 2011 +0200 +++ b/Feedworm.qrc Sun Jun 26 11:29:00 2011 +0200 @@ -1,5 +1,7 @@ <RCC> <qresource prefix="newPrefix"> + <file>open_in_browser.png</file> + <file>check_all.png</file> <file>worm.png</file> </qresource> </RCC>
--- a/MainWindow.py Sat May 28 07:43:56 2011 +0200 +++ b/MainWindow.py Sun Jun 26 11:29:00 2011 +0200 @@ -79,6 +79,7 @@ def feedEntrySelected(self, index): self.ui.menuArticle.setEnabled(True) + self.ui.actionOpenLink.setEnabled(True) row = index.row() self.selectedEntry = self.feedEntries[row]
--- a/README.txt Sat May 28 07:43:56 2011 +0200 +++ b/README.txt Sun Jun 26 11:29:00 2011 +0200 @@ -2,6 +2,6 @@ The following Python packages are required to build Feedworm: -- Python 2.6 +- Python 2.7 - feedparser 4.1 - sqlalchemy 0.6
--- a/Ui_MainWindow.ui Sat May 28 07:43:56 2011 +0200 +++ b/Ui_MainWindow.ui Sun Jun 26 11:29:00 2011 +0200 @@ -108,6 +108,19 @@ <addaction name="menuArticle"/> </widget> <widget class="QStatusBar" name="statusbar"/> + <widget class="QToolBar" name="toolBar"> + <property name="windowTitle"> + <string>toolBar</string> + </property> + <attribute name="toolBarArea"> + <enum>TopToolBarArea</enum> + </attribute> + <attribute name="toolBarBreak"> + <bool>false</bool> + </attribute> + <addaction name="actionMarkFeedRead"/> + <addaction name="actionOpenLink"/> + </widget> <action name="actionQuit"> <property name="text"> <string>Quit</string> @@ -124,11 +137,6 @@ <string>Ctrl+A</string> </property> </action> - <action name="actionXxx"> - <property name="text"> - <string>xxx</string> - </property> - </action> <action name="actionMarkSelectedRead"> <property name="text"> <string>Mark selected read</string> @@ -146,6 +154,13 @@ </property> </action> <action name="actionOpenLink"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="icon"> + <iconset resource="Feedworm.qrc"> + <normaloff>:/newPrefix/open_in_browser.png</normaloff>:/newPrefix/open_in_browser.png</iconset> + </property> <property name="text"> <string>Open link</string> </property> @@ -176,6 +191,10 @@ <property name="enabled"> <bool>false</bool> </property> + <property name="icon"> + <iconset resource="Feedworm.qrc"> + <normaloff>:/newPrefix/check_all.png</normaloff>:/newPrefix/check_all.png</iconset> + </property> <property name="text"> <string>Mark all read</string> </property>