Skip to content
Browse files
Merge ParametersDialog & Ui_ParametersDialog. (Remnant from QT Design…

git-svn-id: 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information committed Jul 13, 2012
1 parent ea2b7fa commit d40660cdefeea420b836c6102f97c6d999a99934
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
@@ -37,17 +37,14 @@
_fromUtf8 = lambda s: s

class ParametersDialog(QtGui.QDialog):

NOT_SELECTED = "[Not selected]"
'''the default parameters dialog, to be used when an algorithm is called from the toolbox'''
def __init__(self, alg):
QtGui.QDialog.__init__(self, None, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint)
self.ui = Ui_ParametersDialog()
self.ui.setupUi(self, alg)
self.setupUi(self, alg)
self.executed = False

class Ui_ParametersDialog(object):

NOT_SELECTED = "[Not selected]"

def setupUi(self, dialog, alg):
self.alg = alg
self.dialog = dialog
@@ -151,9 +151,9 @@ def runalg_parameters(self):
if not dlg:
dlg = ParametersDialog(self.alg)
# hack to handle that hacky code...
dlg.ui.setParamValues = lambda: True
dlg.setParamValues = lambda: True
while (not dlg.executed):

0 comments on commit d40660c

Please sign in to comment.