Exemple #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
Exemple #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
Exemple #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)
Exemple #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
Exemple #5
0
 def _save_context(self):
     assert self.filepath()
     with app.status("Saving %s..." % self.filepath()):
         self.context_model.save(self.filepath())
     return True
Exemple #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
Exemple #7
0
 def _save_context(self):
     assert self.filepath()
     with app.status("Saving %s..." % self.filepath()):
         self.context_model.save(self.filepath())
     return True