#NEWLINE# def _insert_point( self ) : #NEWLINE# #INDENT# ' Asks the user to insert a new point ' #NEWLINE# dialog = PointDialog ( self ) #NEWLINE# if dialog . exec_ ( ) : #NEWLINE# #INDENT# ( time , val ) = dialog . get_value ( ) #NEWLINE# minutes = ( ( ( time . hour ( ) * 60 ) + time . minute ( ) ) / ( 24 * 60 ) ) #NEWLINE# if ( ( val < self . _selected_setting_handle . minvalue ) or ( val > self . _selected_setting_handle . maxvalue ) ) : #NEWLINE# #INDENT# QtGui . QMessageBox . information ( self , 'Invalid Value' , 'Value is out of setting range!' , QtGui . QMessageBox . Ok ) #NEWLINE# return #NEWLINE# #UNINDENT# val_linear = self . _selected_setting_handle . get_linear_value ( val ) #NEWLINE# self . _selected_setting_handle . curves [ 0 ] . append_cv ( minutes , val_linear ) #NEWLINE# self . _cmd_queue . add ( 'write_settings' )