def copy_resolve_to_clipboard(self): context = self.context() assert context strs = (x.qualified_package_name for x in context.resolved_packages) txt = " ".join(strs) clipboard = app.clipboard() clipboard.setText(txt) with app.status("Copied resolve to clipboard"): pass
def _save_context_as(self): dir_ = os.path.dirname(self.filepath()) if self.filepath() else "" filepath = QtGui.QFileDialog.getSaveFileName( self, "Save Context", dir_, "Context files (*.rxt)") if filepath: filepath = str(filepath) with app.status("Saving %s..." % filepath): self.context_model.save(filepath) return bool(filepath)
def copy_request_to_clipboard(self): txt = " ".join(self.context_model.request) clipboard = app.clipboard() clipboard.setText(txt) with app.status("Copied request to clipboard"): pass
def _save_context(self): assert self.filepath() with app.status("Saving %s..." % self.filepath()): self.context_model.save(self.filepath()) return True