# HG changeset patch # User Dirk Olmes # Date 1273817094 -7200 # Node ID 9fa1e33b67da799444ae32f3383fedbdbf3981d5 # Parent c858aab71e5b0d437ba071793b10d76756b25137 use Qt resources for window icons diff -r c858aab71e5b -r 9fa1e33b67da .hgignore --- a/.hgignore Fri May 14 07:05:02 2010 +0200 +++ b/.hgignore Fri May 14 08:04:54 2010 +0200 @@ -1,6 +1,7 @@ syntax: glob *.pyc Ui_*.py +*_rc.py syntax: regexp ^feedworm\.sqlite$ diff -r c858aab71e5b -r 9fa1e33b67da .settings/org.eclipse.core.resources.prefs --- a/.settings/org.eclipse.core.resources.prefs Fri May 14 07:05:02 2010 +0200 +++ b/.settings/org.eclipse.core.resources.prefs Fri May 14 08:04:54 2010 +0200 @@ -1,4 +1,4 @@ -#Thu Apr 29 05:48:00 CEST 2010 +#Fri May 14 07:19:36 CEST 2010 eclipse.preferences.version=1 encoding/Ui_AddFeed.py=utf-8 encoding/Ui_MainWindow.py=utf-8 diff -r c858aab71e5b -r 9fa1e33b67da Feedworm.qrc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Feedworm.qrc Fri May 14 08:04:54 2010 +0200 @@ -0,0 +1,5 @@ + + + worm.png + + diff -r c858aab71e5b -r 9fa1e33b67da Makefile --- a/Makefile Fri May 14 07:05:02 2010 +0200 +++ b/Makefile Fri May 14 08:04:54 2010 +0200 @@ -1,12 +1,16 @@ # find all .ui files and generate corresponding filenames ending in .py PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) +RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) -all: $(PY_FILES) +all: $(PY_FILES) $(RC_FILES) %.py: %.ui pyuic4 -o $@ $< +%_rc.py: %.qrc + pyrcc4 -o $@ $< + .PHONY: clean clean: rm $(PY_FILES) diff -r c858aab71e5b -r 9fa1e33b67da Preferences.py --- a/Preferences.py Fri May 14 07:05:02 2010 +0200 +++ b/Preferences.py Fri May 14 08:04:54 2010 +0200 @@ -11,3 +11,13 @@ def startMaximizedChanged(self, change): print("start maximized: " + str(change)) + + def accept(self): + # TODO save the session + QtGui.QDialog.accept(self) + + def reject(self): + # TODO revert the session + QtGui.QDialog.reject(self) + + \ No newline at end of file diff -r c858aab71e5b -r 9fa1e33b67da Ui_MainWindow.ui --- a/Ui_MainWindow.ui Fri May 14 07:05:02 2010 +0200 +++ b/Ui_MainWindow.ui Fri May 14 08:04:54 2010 +0200 @@ -14,8 +14,8 @@ Feedworm - - ../../../.designer/backup/worm.png../../../.designer/backup/worm.png + + :/newPrefix/worm.png:/newPrefix/worm.png @@ -161,7 +161,9 @@
QtWebKit/QWebView
- + + + actionQuit diff -r c858aab71e5b -r 9fa1e33b67da Ui_Preferences.ui --- a/Ui_Preferences.ui Fri May 14 07:05:02 2010 +0200 +++ b/Ui_Preferences.ui Fri May 14 08:04:54 2010 +0200 @@ -14,8 +14,8 @@ Preferences - - worm.pngworm.png + + :/newPrefix/worm.png:/newPrefix/worm.png @@ -47,7 +47,9 @@
- + + + buttonBox