mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Merge ParametersDialog & Ui_ParametersDialog. (Remnant from QT Designer?)
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@299 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
This commit is contained in:
parent
ea2b7faf60
commit
d40660cdef
@ -37,17 +37,14 @@ except AttributeError:
|
||||
_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 @@ class SextanteProviderTestCase(unittest.TestCase):
|
||||
if not dlg:
|
||||
dlg = ParametersDialog(self.alg)
|
||||
# hack to handle that hacky code...
|
||||
dlg.ui.setParamValues = lambda: True
|
||||
dlg.setParamValues = lambda: True
|
||||
dlg.show()
|
||||
dlg.ui.accept()
|
||||
dlg.accept()
|
||||
while (not dlg.executed):
|
||||
time.sleep(.5)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user