def _show_input_exists_dialog(self, ffmpeg): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'File \"' + ffmpeg.input_file + '\" is already imported') message_dialog.run() message_dialog.destroy()
def _show_codec_settings_not_supported_message(main_window): message_dialog = Gtk.MessageDialog(main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'Current NVENC settings not supported on this system.') message_dialog.run() message_dialog.destroy()
def _show_autocrop_not_needed_dialog(self): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'Auto crop not needed') message_dialog.format_secondary_text( 'Could not detect any \"black bars\" within the video.') message_dialog.run() message_dialog.destroy()
def _show_directory_not_accessible_dialog(self, temp_directory): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'Directory \"' + temp_directory + '\" is not accessible') message_dialog.format_secondary_text( 'Check permissions or select a different directory.') message_dialog.run() message_dialog.destroy()
def _show_clear_temp_files_warning_dialog(self): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'Possible Data Loss') message_dialog.format_secondary_text( 'This option deletes all files in the chosen temporary folder when the ' 'application is closed.') message_dialog.run() message_dialog.destroy()
def _show_stop_all_tasks_message_dialog(self): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, 'Stop all tasks?') message_dialog.format_secondary_text( 'This will stop and remove all queued and running tasks') response = message_dialog.run() message_dialog.destroy() return response
def _show_directory_not_empty_message_dialog(self, temp_directory): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, 'Directory \"' + temp_directory + '\" is not empty') message_dialog.format_secondary_text('Use chosen directory?') response = message_dialog.run() message_dialog.destroy() return response
def _show_directory_not_accessible_dialog(self, output_directory, file_chooser_button): message_dialog = Gtk.MessageDialog( self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.OK, 'Directory \"' + output_directory + '\" is not accessable') message_dialog.format_secondary_text( 'Check permissions or select a different directory.') message_dialog.run() message_dialog.destroy() file_chooser_button.set_filename( self.application_preferences.output_directory)
def on_remove_all_button_clicked(self, remove_all_button): # Unused parameters needed for this signal """ On user confirmation, removes all inputs from the inputs page. :param remove_all_button: Button that emitted the signal. """ message_dialog = Gtk.MessageDialog(self.main_window_handlers.main_window, Gtk.DialogFlags.DESTROY_WITH_PARENT, Gtk.MessageType.WARNING, Gtk.ButtonsType.YES_NO, 'Remove all inputs?') message_dialog.format_secondary_text('This will remove all of your imports along with any settings applied') response = message_dialog.run() if response == Gtk.ResponseType.YES: self.inputs_page_handlers.remove_all_rows() message_dialog.destroy() self.main_window_handlers.popdown_app_preferences_popover()