def choose_preset(self): """ Open the presets dialog and update self.commandLineEdit, self.extComboBox and self.extLineEdit with the appropriate values. """ dialog = presets_dlgs.ShowPresets() if dialog.exec_() and dialog.the_command is not None: self.commandLineEdit.setText(dialog.the_command) self.commandLineEdit.home(False) find = self.extComboBox.findText(dialog.the_extension) if find >= 0: self.extComboBox.setCurrentIndex(find) else: self.extComboBox.setCurrentIndex(len(self.formats)) self.extLineEdit.setText(dialog.the_extension)
def removeold_presets(self): presets_dlgs.ShowPresets().remove_old()
def sync_presets(self): presets_dlgs.ShowPresets().synchronize()
def reset_presets(self): presets_dlgs.ShowPresets().reset()
def export_presets(self): presets_dlgs.ShowPresets().export_presets()
def import_presets(self): presets_dlgs.ShowPresets().import_presets()
def presets(self): """Open the presets dialog.""" dialog = presets_dlgs.ShowPresets(self) dialog.exec_()