# HG changeset patch # User Dirk Olmes # Date 1273817297 -7200 # Node ID 0c0d1760b73700e5df7487581a480fdcc6d9da80 # Parent 9fa1e33b67da799444ae32f3383fedbdbf3981d5 Rename Preferences to PreferencesDialog diff -r 9fa1e33b67da -r 0c0d1760b737 MainWindow.py --- 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_() diff -r 9fa1e33b67da -r 0c0d1760b737 Preferences.py --- 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 diff -r 9fa1e33b67da -r 0c0d1760b737 PreferencesDialog.py --- /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