mirror of
https://github.com/ciromattia/kcc
synced 2026-07-26 14:43:13 +00:00
Updated progress bar
This commit is contained in:
@@ -590,11 +590,21 @@
|
|||||||
<height>31</height>
|
<height>31</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="value">
|
<property name="value">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="textVisible">
|
<property name="alignment">
|
||||||
<bool>false</bool>
|
<set>Qt::AlignJustify|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="format">
|
||||||
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
+8
-2
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'KCC.ui'
|
# Form implementation generated from reading ui file 'KCC.ui'
|
||||||
#
|
#
|
||||||
# Created: Tue Jun 11 08:49:21 2013
|
# Created: Tue Jun 11 16:42:31 2013
|
||||||
# by: PyQt4 UI code generator 4.10.1
|
# by: PyQt4 UI code generator 4.10.1
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
@@ -217,8 +217,14 @@ class Ui_KCC(object):
|
|||||||
self.gridLayout_2.addWidget(self.customHeight, 0, 3, 1, 1)
|
self.gridLayout_2.addWidget(self.customHeight, 0, 3, 1, 1)
|
||||||
self.ProgressBar = QtGui.QProgressBar(self.Form)
|
self.ProgressBar = QtGui.QProgressBar(self.Form)
|
||||||
self.ProgressBar.setGeometry(QtCore.QRect(10, 10, 401, 31))
|
self.ProgressBar.setGeometry(QtCore.QRect(10, 10, 401, 31))
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setPointSize(10)
|
||||||
|
font.setBold(True)
|
||||||
|
font.setWeight(75)
|
||||||
|
self.ProgressBar.setFont(font)
|
||||||
self.ProgressBar.setProperty("value", 0)
|
self.ProgressBar.setProperty("value", 0)
|
||||||
self.ProgressBar.setTextVisible(False)
|
self.ProgressBar.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
|
||||||
|
self.ProgressBar.setFormat(_fromUtf8(""))
|
||||||
self.ProgressBar.setObjectName(_fromUtf8("ProgressBar"))
|
self.ProgressBar.setObjectName(_fromUtf8("ProgressBar"))
|
||||||
KCC.setCentralWidget(self.Form)
|
KCC.setCentralWidget(self.Form)
|
||||||
self.ActionBasic = QtGui.QAction(KCC)
|
self.ActionBasic = QtGui.QAction(KCC)
|
||||||
|
|||||||
+6
-1
@@ -673,6 +673,7 @@ def main(argv=None, qtGUI=None):
|
|||||||
if qtGUI:
|
if qtGUI:
|
||||||
global GUI
|
global GUI
|
||||||
GUI = qtGUI
|
GUI = qtGUI
|
||||||
|
GUI.emit(QtCore.SIGNAL("progressBarTick"), 1)
|
||||||
if len(args) != 1:
|
if len(args) != 1:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
return
|
return
|
||||||
@@ -682,14 +683,18 @@ def main(argv=None, qtGUI=None):
|
|||||||
splitCount = 0
|
splitCount = 0
|
||||||
if options.imgproc:
|
if options.imgproc:
|
||||||
print "Processing images..."
|
print "Processing images..."
|
||||||
|
if GUI:
|
||||||
|
GUI.emit(QtCore.SIGNAL("progressBarTick"), 'status', 'Processing images')
|
||||||
dirImgProcess(path + "/OEBPS/Images/")
|
dirImgProcess(path + "/OEBPS/Images/")
|
||||||
|
if GUI:
|
||||||
|
GUI.emit(QtCore.SIGNAL("progressBarTick"), 1)
|
||||||
if options.cbzoutput:
|
if options.cbzoutput:
|
||||||
# if CBZ output wanted, compress all images and return filepath
|
# if CBZ output wanted, compress all images and return filepath
|
||||||
print "\nCreating CBZ file..."
|
print "\nCreating CBZ file..."
|
||||||
filepath = getOutputFilename(args[0], options.output, '.cbz')
|
filepath = getOutputFilename(args[0], options.output, '.cbz')
|
||||||
make_archive(path + '_comic', 'zip', path + '/OEBPS/Images')
|
make_archive(path + '_comic', 'zip', path + '/OEBPS/Images')
|
||||||
else:
|
else:
|
||||||
print "\nCreating ePub structure..."
|
print "\nCreating EPUB structure..."
|
||||||
genEpubStruct(path)
|
genEpubStruct(path)
|
||||||
# actually zip the ePub
|
# actually zip the ePub
|
||||||
filepath = getOutputFilename(args[0], options.output, '.epub')
|
filepath = getOutputFilename(args[0], options.output, '.epub')
|
||||||
|
|||||||
Reference in New Issue
Block a user