File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
python/plugins/processing Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
-
2
1
from PyQt4 .QtGui import *
3
2
from processing .gui .AlgorithmDialog import AlgorithmDialog
4
3
from processing .gui .AlgorithmDialogBase import AlgorithmDialogBase
5
4
from processing .gui .ParametersPanel import ParametersPanel
5
+ from processing .gui .MultipleInputPanel import MultipleInputPanel
6
6
7
7
8
8
class GdalAlgorithmDialog (AlgorithmDialog ):
@@ -57,6 +57,8 @@ def connectParameterSignals(self):
57
57
w .currentIndexChanged .connect (self .parametersHaveChanged )
58
58
elif isinstance (w , QCheckBox ):
59
59
w .stateChanged .connect (self .parametersHaveChanged )
60
+ elif isinstance (w , MultipleInputPanel ):
61
+ w .selectionChanged .connect (self .parametersHaveChanged )
60
62
61
63
def parametersHaveChanged (self ):
62
64
try :
Original file line number Diff line number Diff line change 17
17
***************************************************************************
18
18
"""
19
19
20
+
20
21
__author__ = 'Victor Olaya'
21
22
__date__ = 'August 2012'
22
23
__copyright__ = '(C) 2012, Victor Olaya'
28
29
import os
29
30
30
31
from PyQt4 import uic
32
+ from PyQt4 .QtCore import pyqtSignal
31
33
32
34
from processing .gui .MultipleInputDialog import MultipleInputDialog
33
35
from processing .gui .MultipleFileInputDialog import MultipleFileInputDialog
39
41
40
42
class MultipleInputPanel (BASE , WIDGET ):
41
43
44
+ selectionChanged = pyqtSignal ()
45
+
42
46
def __init__ (self , options = None , datatype = None ):
43
47
super (MultipleInputPanel , self ).__init__ (None )
44
48
self .setupUi (self )
@@ -68,3 +72,5 @@ def showSelectionDialog(self):
68
72
self .selectedoptions = dlg .selectedoptions
69
73
self .leText .setText (
70
74
self .tr ('%d elements selected' ) % len (self .selectedoptions ))
75
+ self .selectionChanged .emit ()
76
+
You can’t perform that action at this time.
0 commit comments