Ejemplo n.º 1
0
 def __init__(self, mconf, sourceFiles, conf, askOverwriteOutputFileDialog):
     self.mconf = mconf
     self.onLogging = eventHandler()   #(ProcessRatio, data)
     self.onProcessing = eventHandler()
     self.source = sourceFiles
     self.uconf = userConf(mconf)        
     self.conf = conf
     self.aOOFD = askOverwriteOutputFileDialog
     self.errorFlag = False
     self.stopFlag = False
     self.progressValue = progressValue(totalValue=100, totalJob=1, currentValue=1, currentJob=1)
     self.progressValue.onUpdate.addEventListener(self.updateProgressValue)
     self.mconf.plugin.name
     self.init()
Ejemplo n.º 2
0
 def __init__(self):
     #
     QtGui.QDialog.__init__(self)
     self.setupUi(self)
     self.stopFlag = False
     self.closeButton.setEnabled(False)
     self.onStop = eventHandler()
     self.progressValue = progressValue(totalValue=100, totalJob=1, currentValue=1, currentJob=1)
     self.progressValue.onUpdate.addEventListener(self.__updateProgress)
     self.activePluginName = ""
     self.i18n()
Ejemplo n.º 3
0
    def __init__(self, parent, jobItem, plugins):
        #
        QtGui.QWidget.__init__(self, parent)
        self.i18n()
        self.__setupui__()
        QtCore.QObject.connect(self.pluginComboWidget,  QtCore.SIGNAL("currentIndexChanged (const QString&)"),  self.pluginChanged)
        QtCore.QObject.connect(self.confButtonWidget,  QtCore.SIGNAL("released ()"),  self.pluginCustomize)
        QtCore.QObject.connect(self.selectBoxWidget,  QtCore.SIGNAL("stateChanged (int)"),  self.__stateChanged)
        QtCore.QObject.connect(self.sourceListWidget,  QtCore.SIGNAL("itemClicked (QListWidgetItem *)"),  self.__stateChanged)

        self.plugins = plugins
        self.selected = eventHandler()

        self.style = self.styleSheet()

        self.activePlugin = ""
        self.pluginDataList = {}

        self.jobItem = jobItem
        self.updateWidgets()