diff --git a/openlp/plugins/bibles/forms/bibleimportprogressdialog.py b/openlp/plugins/bibles/forms/bibleimportprogressdialog.py deleted file mode 100644 index 0ce1bd76c..000000000 --- a/openlp/plugins/bibles/forms/bibleimportprogressdialog.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- - -# Form implementation generated from reading ui file 'bibleimportprogress.ui' -# -# Created: Sun Nov 30 16:19:26 2008 -# by: PyQt4 UI code generator 4.4.3 -# -# WARNING! All changes made in this file will be lost! - -from PyQt4 import QtCore, QtGui - -class Ui_BibleImportProgressDialog(object): - def setupUi(self, BibleImportProgressDialog): - BibleImportProgressDialog.setObjectName("BibleImportProgressDialog") - BibleImportProgressDialog.resize(505, 150) - self.buttonBox = QtGui.QDialogButtonBox(BibleImportProgressDialog) - self.buttonBox.setGeometry(QtCore.QRect(150, 110, 341, 32)) - self.buttonBox.setOrientation(QtCore.Qt.Horizontal) - self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel) - self.buttonBox.setObjectName("buttonBox") - self.ProgressGroupBox = QtGui.QGroupBox(BibleImportProgressDialog) - self.ProgressGroupBox.setGeometry(QtCore.QRect(10, 10, 481, 64)) - self.ProgressGroupBox.setObjectName("ProgressGroupBox") - self.progressBar = QtGui.QProgressBar(self.ProgressGroupBox) - self.progressBar.setGeometry(QtCore.QRect(10, 27, 451, 28)) - self.progressBar.setProperty("value", QtCore.QVariant(24)) - self.progressBar.setObjectName("progressBar") - - self.retranslateUi(BibleImportProgressDialog) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), BibleImportProgressDialog.accept) - QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), BibleImportProgressDialog.reject) - QtCore.QMetaObject.connectSlotsByName(BibleImportProgressDialog) - - def retranslateUi(self, BibleImportProgressDialog): - BibleImportProgressDialog.setWindowTitle(QtGui.QApplication.translate("BibleImportProgressDialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) - self.ProgressGroupBox.setTitle(QtGui.QApplication.translate("BibleImportProgressDialog", "Progress", None, QtGui.QApplication.UnicodeUTF8)) - diff --git a/openlp/plugins/bibles/forms/bibleimportprogressform.py b/openlp/plugins/bibles/forms/bibleimportprogressform.py deleted file mode 100644 index c6e84f63a..000000000 --- a/openlp/plugins/bibles/forms/bibleimportprogressform.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -Module implementing BibleImportDialog. -""" -import sys -import os, os.path -import sys -import time - -mypath=os.path.split(os.path.abspath(__file__))[0] -sys.path.insert(0,(os.path.join(mypath, '..', '..', '..', '..'))) - -from PyQt4 import QtCore, QtGui -from PyQt4.QtGui import QDialog -from PyQt4.QtCore import pyqtSignature - -from bibleimportprogressdialog import Ui_BibleImportProgressDialog -from openlp.plugins.bibles.lib.biblemanager import BibleManager - -class BibleImportProgressForm(QDialog, Ui_BibleImportProgressDialog): - """ - Class documentation goes here. - """ - def __init__(self, biblemanager = None, parent = None): - """ - Constructor - """ - QDialog.__init__(self, parent) - self.setupUi(self) - self.biblemanager = biblemanager - self.progressBar.setValue(0) - self.progress = 0 - - def setMax(self, max): - self.progressBar.setMaximum(max) - - def incrementBar(self): - self.progress +=1 - self.progressBar.setValue(self.progress) - - - #self.ProgressGroupBox.hide() # not wanted until we do some processing - def on_buttonBox_clicked(self,button): - print button.text() - -class runner(QtGui.QApplication): - - def run(self): - self.bm = BibleManager() - self.bim = BibleImportProgressForm(self.bm) - self.bim.show() - self.processEvents() - sys.exit(app.exec_()) - -if __name__ == '__main__': - app = runner(sys.argv) - app.run()