示例#1
0
 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
示例#2
0
 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
示例#3
0
    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)
示例#4
0
 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
示例#5
0
 def _save_context(self):
     assert self.filepath()
     with app.status("Saving %s..." % self.filepath()):
         self.context_model.save(self.filepath())
     return True
示例#6
0
 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
示例#7
0
 def _save_context(self):
     assert self.filepath()
     with app.status("Saving %s..." % self.filepath()):
         self.context_model.save(self.filepath())
     return True