Example #1
0
 def _clicked(self):
     if self.comparable:
         from rezgui.dialogs.VariantVersionsDialog import VariantVersionsDialog
         dlg = VariantVersionsDialog(self.context_model, self.left_variant,
                                     reference_variant=self.right_variant,
                                     parent=self)
         dlg.exec_()
     elif self.mode == "equal_to":
         QtGui.QMessageBox.information(
             self,
             "Equal Package",
             "The packages are equal")
     elif self.mode == "equalish":
         QtGui.QMessageBox.information(
             self,
             "Equal Version Package",
             "The package in the current resolve:\n(%s)\n\nis the same "
             "version as the package in the reference resolve:\n(%s)\n\n"
             "but is a different package."
             % (self.left_variant.uri, self.right_variant.uri))
     elif self.mode == "missing":
         QtGui.QMessageBox.information(
             self,
             "Missing Package",
             "The package is present in the reference resolve only")
     elif self.mode == "new":
         QtGui.QMessageBox.information(
             self,
             "New Package",
             "The package is present in the current resolve only")
     elif self.mode == "greater_than":
         QtGui.QMessageBox.information(
             self,
             "Newer Package",
             "The package in the current resolve:\n(%s)\n\nis newer than "
             "the package in the reference resolve (%s)"
             % (self.left_variant.uri, self.right_variant.uri))
     else:
         QtGui.QMessageBox.information(
             self,
             "Older Package",
             "The package in the current resolve:\n(%s)\n\nis older than "
             "the package in the reference resolve (%s)"
             % (self.left_variant.uri, self.right_variant.uri))
Example #2
0
 def _clicked(self):
     if self.comparable:
         from rezgui.dialogs.VariantVersionsDialog import VariantVersionsDialog
         dlg = VariantVersionsDialog(self.context_model,
                                     self.left_variant,
                                     reference_variant=self.right_variant,
                                     parent=self)
         dlg.exec_()
     elif self.mode == "equal_to":
         QtGui.QMessageBox.information(self, "Equal Package",
                                       "The packages are equal")
     elif self.mode == "equalish":
         QtGui.QMessageBox.information(
             self, "Equal Version Package",
             "The package in the current resolve:\n(%s)\n\nis the same "
             "version as the package in the reference resolve:\n(%s)\n\n"
             "but is a different package." %
             (self.left_variant.uri, self.right_variant.uri))
     elif self.mode == "missing":
         QtGui.QMessageBox.information(
             self, "Missing Package",
             "The package is present in the reference resolve only")
     elif self.mode == "new":
         QtGui.QMessageBox.information(
             self, "New Package",
             "The package is present in the current resolve only")
     elif self.mode == "greater_than":
         QtGui.QMessageBox.information(
             self, "Newer Package",
             "The package in the current resolve:\n(%s)\n\nis newer than "
             "the package in the reference resolve (%s)" %
             (self.left_variant.uri, self.right_variant.uri))
     else:
         QtGui.QMessageBox.information(
             self, "Older Package",
             "The package in the current resolve:\n(%s)\n\nis older than "
             "the package in the reference resolve (%s)" %
             (self.left_variant.uri, self.right_variant.uri))
Example #3
0
 def _view_changelogs_window(self):
     from rezgui.dialogs.VariantVersionsDialog import VariantVersionsDialog
     dlg = VariantVersionsDialog(self.context_model,
                                 self.variant,
                                 parent=self)
     dlg.exec_()
 def _view_changelogs_window(self):
     from rezgui.dialogs.VariantVersionsDialog import VariantVersionsDialog
     dlg = VariantVersionsDialog(self.context_model, self.variant,
                                 parent=self)
     dlg.exec_()