[Uludag-commits] r16936 - in branches/yali4/yali4: . gui gui/pics
uludag-commits at pardus.org.tr
uludag-commits at pardus.org.tr
3 Şub 2008 Paz 00:14:46 EET
Author: gokmen.goksel
Date: Sun Feb 3 00:14:45 2008
New Revision: 16936
Added:
branches/yali4/yali4/gui/pics/working.png (contents, props changed)
Modified:
branches/yali4/yali4/data.qrc
branches/yali4/yali4/gui/ScrBootloader.py
branches/yali4/yali4/gui/YaliDialog.py
Log:
* Use QSplash as information Window..
Modified: branches/yali4/yali4/data.qrc
=================================================================
--- branches/yali4/yali4/data.qrc (original)
+++ branches/yali4/yali4/data.qrc Sun Feb 3 00:14:45 2008
@@ -34,6 +34,7 @@
<file>gui/pics/users.png</file>
<file>gui/pics/welcome.png</file>
<file>gui/pics/windows.png</file>
+ <file>gui/pics/working.png</file>
<file>images/checkbox_checked.png</file>
<file>images/checkbox_checked_hover.png</file>
<file>images/checkbox_checked_pressed.png</file>
Modified: branches/yali4/yali4/gui/ScrBootloader.py
=================================================================
--- branches/yali4/yali4/gui/ScrBootloader.py (original)
+++ branches/yali4/yali4/gui/ScrBootloader.py Sun Feb 3 00:14:45 2008
@@ -29,8 +29,7 @@
from yali4.gui.ScreenWidget import ScreenWidget
from yali4.gui.Ui.bootloaderwidget import Ui_BootLoaderWidget
-from yali4.gui.YaliDialog import WarningDialog, WarningWidget
-#from yali4.gui.InformationWindow import InformationWindow
+from yali4.gui.YaliDialog import WarningDialog, WarningWidget, InformationWindow
from yali4.gui.GUIException import *
import yali4.gui.context as ctx
@@ -178,16 +177,19 @@
return False
ctx.mainScreen.processEvents()
+ info = InformationWindow(_("Writing disk tables ..."))
# We should do partitioning operations in here.
# Auto Partitioning
if ctx.installData.autoPartDev:
+ info.show()
ctx.partrequests.remove_all()
ctx.use_autopart = True
- # self.autopartDevice()
- time.sleep(1)
- #ctx.partrequests.applyAll()
+ self.autopartDevice()
+ time.sleep(2)
+ info.updateMessage(_("Formatting ..."))
+ ctx.partrequests.applyAll()
# Manual Partitioning
else:
@@ -197,12 +199,15 @@
dev.commit()
# wait for udev to create device nodes
time.sleep(2)
+ info.updateMessage(_("Formatting ..."))
ctx.mainScreen.processEvents()
ctx.partrequests.applyAll()
ctx.debugger.log("Format Operation Finished")
ctx.mainScreen.processEvents()
self.checkSwap()
+ info.close()
+
root_part_req = ctx.partrequests.searchPartTypeAndReqType(parttype.root,
request.mountRequestType)
Modified: branches/yali4/yali4/gui/YaliDialog.py
=================================================================
--- branches/yali4/yali4/gui/YaliDialog.py (original)
+++ branches/yali4/yali4/gui/YaliDialog.py Sun Feb 3 00:14:45 2008
@@ -153,9 +153,14 @@
self.emit(SIGNAL("signalCancel"), ())
-class InformationWindow(QtGui.QWidget):
+class InformationWindow(QtGui.QSplashScreen):
- def __init__(self, *args):
- pass
+ def __init__(self, message):
+ Pix = QtGui.QPixmap(':/gui/pics/working.png')
+ QtGui.QSplashScreen.__init__(self, ctx.mainScreen.ui, Pix)
+ self.updateMessage(message)
+ ctx.mainScreen.processEvents()
+ def updateMessage(self, message):
+ self.showMessage(message,Qt.AlignBottom | Qt.AlignHCenter)
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi