#NEWLINE# def _reset_settings( self ) : #NEWLINE# #INDENT# ' Resets the current plugins settings ' #NEWLINE# msg = ( ( "Are you sure you want to reset the control points of '" + self . _selected_setting_handle . label ) + "'?\n" ) #NEWLINE# msg += '!! This cannot be undone !! They will be lost forever (a long time!).' #NEWLINE# reply = QtGui . QMessageBox . question ( self , 'Warning' , msg , QtGui . QMessageBox . Yes , QtGui . QMessageBox . No ) #NEWLINE# if ( reply == QtGui . QMessageBox . Yes ) : #NEWLINE# #INDENT# QtGui . QMessageBox . information ( self , 'Success' , 'Control points have been reset!' ) #NEWLINE# default = self . _selected_setting_handle . default #NEWLINE# self . _selected_setting_handle . curves [ 0 ] . set_single_value ( msg ) #NEWLINE# self . _update_settings_list ( ) #NEWLINE# self . _cmd_queue . add ( 'write_settings' )