#NEWLINE# def resetTriggered( self ) : #NEWLINE# #INDENT# self . setFocus ( QtCore . Qt . MouseFocusReason ) #NEWLINE# self . setUpdatesEnabled ( False ) #NEWLINE# for i in xrange ( len ( self . inputPorts ) ) : #NEWLINE# #INDENT# port = self . inputPorts [ i ] #NEWLINE# checkBox = self . inputDict [ port . name ] #NEWLINE# if ( ( not port . optional ) or ( port . name in self . module . visible_input_ports ) ) : #NEWLINE# #INDENT# checkBox . setCheckState ( QtCore . Qt . Checked ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# checkBox . setCheckState ( QtCore . Qt . Unchecked ) #NEWLINE# #UNINDENT# if ( ( not port . optional ) or ( port . sigstring == '()' ) ) : #NEWLINE# #INDENT# checkBox . setEnabled ( False ) #NEWLINE# #UNINDENT# #UNINDENT# for i in xrange ( len ( self . outputPorts ) ) : #NEWLINE# #INDENT# port = self . outputPorts [ i ] #NEWLINE# checkBox = self . outputDict [ port . name ] #NEWLINE# if ( ( not port . optional ) or ( port . name in self . module . visible_output_ports ) ) : #NEWLINE# #INDENT# checkBox . setCheckState ( QtCore . Qt . Checked ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# checkBox . setCheckState ( QtCore . Qt . Unchecked ) #NEWLINE# #UNINDENT# if ( not port . optional ) : #NEWLINE# #INDENT# checkBox . setEnabled ( False ) #NEWLINE# #UNINDENT# #UNINDENT# self . setUpdatesEnabled ( True ) #NEWLINE# self . saveButton . setEnabled ( False ) #NEWLINE# self . resetButton . setEnabled ( False ) #NEWLINE# self . state_changed = False #NEWLINE# self . emit ( QtCore . SIGNAL ( 'stateChanged' ) )