594 Private slot to handle the Commit context menu entry. |
594 Private slot to handle the Commit context menu entry. |
595 """ |
595 """ |
596 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
596 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
597 for itm in self.__getCommitableItems()] |
597 for itm in self.__getCommitableItems()] |
598 if not names: |
598 if not names: |
599 E5MessageBox.information(self, |
599 E5MessageBox.information( |
|
600 self, |
600 self.trUtf8("Commit"), |
601 self.trUtf8("Commit"), |
601 self.trUtf8("""There are no entries selected to be""" |
602 self.trUtf8("""There are no entries selected to be""" |
602 """ committed.""")) |
603 """ committed.""")) |
603 return |
604 return |
604 |
605 |
633 Private slot to handle the Add context menu entry. |
634 Private slot to handle the Add context menu entry. |
634 """ |
635 """ |
635 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
636 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
636 for itm in self.__getUnversionedItems()] |
637 for itm in self.__getUnversionedItems()] |
637 if not names: |
638 if not names: |
638 E5MessageBox.information(self, |
639 E5MessageBox.information( |
|
640 self, |
639 self.trUtf8("Add"), |
641 self.trUtf8("Add"), |
640 self.trUtf8("""There are no unversioned entries""" |
642 self.trUtf8("""There are no unversioned entries""" |
641 """ available/selected.""")) |
643 """ available/selected.""")) |
642 return |
644 return |
643 |
645 |
654 Private slot to handle the Revert context menu entry. |
656 Private slot to handle the Revert context menu entry. |
655 """ |
657 """ |
656 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
658 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
657 for itm in self.__getModifiedItems()] |
659 for itm in self.__getModifiedItems()] |
658 if not names: |
660 if not names: |
659 E5MessageBox.information(self, |
661 E5MessageBox.information( |
|
662 self, |
660 self.trUtf8("Revert"), |
663 self.trUtf8("Revert"), |
661 self.trUtf8("""There are no uncommitted changes""" |
664 self.trUtf8("""There are no uncommitted changes""" |
662 """ available/selected.""")) |
665 """ available/selected.""")) |
663 return |
666 return |
664 |
667 |
677 Private slot to handle the Restore Missing context menu entry. |
680 Private slot to handle the Restore Missing context menu entry. |
678 """ |
681 """ |
679 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
682 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
680 for itm in self.__getMissingItems()] |
683 for itm in self.__getMissingItems()] |
681 if not names: |
684 if not names: |
682 E5MessageBox.information(self, |
685 E5MessageBox.information( |
|
686 self, |
683 self.trUtf8("Revert"), |
687 self.trUtf8("Revert"), |
684 self.trUtf8("""There are no missing entries""" |
688 self.trUtf8("""There are no missing entries""" |
685 """ available/selected.""")) |
689 """ available/selected.""")) |
686 return |
690 return |
687 |
691 |
694 Private slot to handle the Diff context menu entry. |
698 Private slot to handle the Diff context menu entry. |
695 """ |
699 """ |
696 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
700 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
697 for itm in self.__getModifiedItems()] |
701 for itm in self.__getModifiedItems()] |
698 if not names: |
702 if not names: |
699 E5MessageBox.information(self, |
703 E5MessageBox.information( |
|
704 self, |
700 self.trUtf8("Differences"), |
705 self.trUtf8("Differences"), |
701 self.trUtf8("""There are no uncommitted changes""" |
706 self.trUtf8("""There are no uncommitted changes""" |
702 """ available/selected.""")) |
707 """ available/selected.""")) |
703 return |
708 return |
704 |
709 |
714 Private slot to handle the Side-by-Side Diff context menu entry. |
719 Private slot to handle the Side-by-Side Diff context menu entry. |
715 """ |
720 """ |
716 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
721 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
717 for itm in self.__getModifiedItems()] |
722 for itm in self.__getModifiedItems()] |
718 if not names: |
723 if not names: |
719 E5MessageBox.information(self, |
724 E5MessageBox.information( |
|
725 self, |
720 self.trUtf8("Side-by-Side Diff"), |
726 self.trUtf8("Side-by-Side Diff"), |
721 self.trUtf8("""There are no uncommitted changes""" |
727 self.trUtf8("""There are no uncommitted changes""" |
722 """ available/selected.""")) |
728 """ available/selected.""")) |
723 return |
729 return |
724 elif len(names) > 1: |
730 elif len(names) > 1: |
725 E5MessageBox.information(self, |
731 E5MessageBox.information( |
|
732 self, |
726 self.trUtf8("Side-by-Side Diff"), |
733 self.trUtf8("Side-by-Side Diff"), |
727 self.trUtf8("""Only one file with uncommitted changes""" |
734 self.trUtf8("""Only one file with uncommitted changes""" |
728 """ must be selected.""")) |
735 """ must be selected.""")) |
729 return |
736 return |
730 |
737 |
735 Private slot to handle the Lock context menu entry. |
742 Private slot to handle the Lock context menu entry. |
736 """ |
743 """ |
737 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
744 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
738 for itm in self.__getLockActionItems(self.unlockedIndicators)] |
745 for itm in self.__getLockActionItems(self.unlockedIndicators)] |
739 if not names: |
746 if not names: |
740 E5MessageBox.information(self, |
747 E5MessageBox.information( |
|
748 self, |
741 self.trUtf8("Lock"), |
749 self.trUtf8("Lock"), |
742 self.trUtf8("""There are no unlocked files""" |
750 self.trUtf8("""There are no unlocked files""" |
743 """ available/selected.""")) |
751 """ available/selected.""")) |
744 return |
752 return |
745 |
753 |
751 Private slot to handle the Unlock context menu entry. |
759 Private slot to handle the Unlock context menu entry. |
752 """ |
760 """ |
753 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
761 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
754 for itm in self.__getLockActionItems(self.lockedIndicators)] |
762 for itm in self.__getLockActionItems(self.lockedIndicators)] |
755 if not names: |
763 if not names: |
756 E5MessageBox.information(self, |
764 E5MessageBox.information( |
|
765 self, |
757 self.trUtf8("Unlock"), |
766 self.trUtf8("Unlock"), |
758 self.trUtf8("""There are no locked files""" |
767 self.trUtf8("""There are no locked files""" |
759 """ available/selected.""")) |
768 """ available/selected.""")) |
760 return |
769 return |
761 |
770 |
768 """ |
777 """ |
769 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
778 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
770 for itm in self.__getLockActionItems( |
779 for itm in self.__getLockActionItems( |
771 self.stealBreakLockIndicators)] |
780 self.stealBreakLockIndicators)] |
772 if not names: |
781 if not names: |
773 E5MessageBox.information(self, |
782 E5MessageBox.information( |
|
783 self, |
774 self.trUtf8("Break Lock"), |
784 self.trUtf8("Break Lock"), |
775 self.trUtf8("""There are no locked files""" |
785 self.trUtf8("""There are no locked files""" |
776 """ available/selected.""")) |
786 """ available/selected.""")) |
777 return |
787 return |
778 |
788 |
785 """ |
795 """ |
786 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
796 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
787 for itm in self.__getLockActionItems( |
797 for itm in self.__getLockActionItems( |
788 self.stealBreakLockIndicators)] |
798 self.stealBreakLockIndicators)] |
789 if not names: |
799 if not names: |
790 E5MessageBox.information(self, |
800 E5MessageBox.information( |
|
801 self, |
791 self.trUtf8("Steal Lock"), |
802 self.trUtf8("Steal Lock"), |
792 self.trUtf8("""There are no locked files""" |
803 self.trUtf8("""There are no locked files""" |
793 """ available/selected.""")) |
804 """ available/selected.""")) |
794 return |
805 return |
795 |
806 |
801 Private slot to add entries to a changelist. |
812 Private slot to add entries to a changelist. |
802 """ |
813 """ |
803 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
814 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
804 for itm in self.__getNonChangelistItems()] |
815 for itm in self.__getNonChangelistItems()] |
805 if not names: |
816 if not names: |
806 E5MessageBox.information(self, |
817 E5MessageBox.information( |
|
818 self, |
807 self.trUtf8("Remove from Changelist"), |
819 self.trUtf8("Remove from Changelist"), |
808 self.trUtf8( |
820 self.trUtf8( |
809 """There are no files available/selected not """ |
821 """There are no files available/selected not """ |
810 """belonging to a changelist.""" |
822 """belonging to a changelist.""" |
811 ) |
823 ) |
819 Private slot to remove entries from their changelists. |
831 Private slot to remove entries from their changelists. |
820 """ |
832 """ |
821 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
833 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
822 for itm in self.__getChangelistItems()] |
834 for itm in self.__getChangelistItems()] |
823 if not names: |
835 if not names: |
824 E5MessageBox.information(self, |
836 E5MessageBox.information( |
|
837 self, |
825 self.trUtf8("Remove from Changelist"), |
838 self.trUtf8("Remove from Changelist"), |
826 self.trUtf8( |
839 self.trUtf8( |
827 """There are no files available/selected belonging""" |
840 """There are no files available/selected belonging""" |
828 """ to a changelist.""" |
841 """ to a changelist.""" |
829 ) |
842 ) |