#NEWLINE# def saveTriggered( self , checked = False ) : #NEWLINE# #INDENT# for port in self . inputPorts : #NEWLINE# #INDENT# if ( port . optional and ( self . inputDict [ port . name ] . checkState ( ) == QtCore . Qt . Checked ) ) : #NEWLINE# #INDENT# self . module . visible_input_ports . add ( port . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . module . visible_input_ports . discard ( port . name ) #NEWLINE# #UNINDENT# #UNINDENT# for port in self . outputPorts : #NEWLINE# #INDENT# if ( port . optional and ( self . outputDict [ port . name ] . checkState ( ) == QtCore . Qt . Checked ) ) : #NEWLINE# #INDENT# self . module . visible_output_ports . add ( port . name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . module . visible_output_ports . discard ( port . name ) #NEWLINE# #UNINDENT# #UNINDENT# self . saveButton . setEnabled ( False ) #NEWLINE# self . resetButton . setEnabled ( False ) #NEWLINE# self . state_changed = False #NEWLINE# self . emit ( QtCore . SIGNAL ( 'stateChanged' ) ) #NEWLINE# self . emit ( QtCore . SIGNAL ( 'doneConfigure' ) , self . module . id )