def choose_preset(self): """ Open the presets dialog and update self.commandQLE, and self.extQCB and with the appropriate values. """ dialog = presets_dlgs.ShowPresets(choose=True) if dialog.exec_() and dialog.the_command is not None: self.clear() self.commandQLE.setText(dialog.the_command) self.commandQLE.home(False) find = self.extQCB.findText(dialog.the_extension) if find >= 0: self.extQCB.setCurrentIndex(find)
def open_dialog_presets(self): """Open the presets dialog.""" dialog = presets_dlgs.ShowPresets(self) dialog.exec_()
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()