Mercurial > hg > Feedworm
changeset 42:0c0d1760b737
Rename Preferences to PreferencesDialog
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 08:08:17 +0200 |
parents | 9fa1e33b67da |
children | 12ed8b5fa08c |
files | MainWindow.py Preferences.py PreferencesDialog.py |
diffstat | 3 files changed, 30 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/MainWindow.py Fri May 14 08:04:54 2010 +0200 +++ b/MainWindow.py Fri May 14 08:08:17 2010 +0200 @@ -3,7 +3,7 @@ from DisplayModel import DisplayModel from Feed import Feed from FeedEntry import FeedEntry -from Preferences import Preferences +from PreferencesDialog import PreferencesDialog from PyQt4 import QtGui from PyQt4.QtCore import QUrl from PyQt4.QtGui import QFont @@ -69,7 +69,7 @@ self.ui.webView.show() def showPreferences(self): - preferences = Preferences(self.session) + preferences = PreferencesDialog(self.session) preferences.exec_()
--- a/Preferences.py Fri May 14 08:04:54 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ - -from PyQt4 import QtGui -from Ui_Preferences import Ui_Preferences - -class Preferences(QtGui.QDialog): - def __init__(self, session=None): - QtGui.QWidget.__init__(self, None) - self.session = session - self.ui = Ui_Preferences() - self.ui.setupUi(self) - - 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
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PreferencesDialog.py Fri May 14 08:08:17 2010 +0200 @@ -0,0 +1,28 @@ + +from PyQt4 import QtGui +from Ui_Preferences import Ui_Preferences + +class PreferencesDialog(QtGui.QDialog): + def __init__(self, session=None): + QtGui.QWidget.__init__(self, None) + self.session = session + self.ui = Ui_Preferences() + self.ui.setupUi(self) + self.fillUi() + + def fillUi(self): + #self.ui.startMaximized.setChecked() + pass + + 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