예제 #1
0
 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)
예제 #2
0
 def open_dialog_presets(self):
     """Open the presets dialog."""
     dialog = presets_dlgs.ShowPresets(self)
     dialog.exec_()
예제 #3
0
 def removeold_presets(self):
     presets_dlgs.ShowPresets().remove_old()
예제 #4
0
 def sync_presets(self):
     presets_dlgs.ShowPresets().synchronize()
예제 #5
0
 def reset_presets(self):
     presets_dlgs.ShowPresets().reset()
예제 #6
0
 def export_presets(self):
     presets_dlgs.ShowPresets().export_presets()
예제 #7
0
 def import_presets(self):
     presets_dlgs.ShowPresets().import_presets()