654 |
654 |
655 def __revert(self): |
655 def __revert(self): |
656 """ |
656 """ |
657 Private slot to handle the Revert context menu entry. |
657 Private slot to handle the Revert context menu entry. |
658 """ |
658 """ |
659 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
659 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
660 for itm in self.__getModifiedItems()] |
660 for itm in self.__getModifiedItems()] |
661 if not names: |
661 if not names: |
662 E5MessageBox.information( |
662 E5MessageBox.information( |
663 self, |
663 self, |
664 self.trUtf8("Revert"), |
664 self.trUtf8("Revert"), |
740 |
740 |
741 def __lock(self): |
741 def __lock(self): |
742 """ |
742 """ |
743 Private slot to handle the Lock context menu entry. |
743 Private slot to handle the Lock context menu entry. |
744 """ |
744 """ |
745 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
745 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
746 for itm in self.__getLockActionItems(self.unlockedIndicators)] |
746 for itm in self.__getLockActionItems(self.unlockedIndicators)] |
747 if not names: |
747 if not names: |
748 E5MessageBox.information( |
748 E5MessageBox.information( |
749 self, |
749 self, |
750 self.trUtf8("Lock"), |
750 self.trUtf8("Lock"), |
757 |
757 |
758 def __unlock(self): |
758 def __unlock(self): |
759 """ |
759 """ |
760 Private slot to handle the Unlock context menu entry. |
760 Private slot to handle the Unlock context menu entry. |
761 """ |
761 """ |
762 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
762 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
763 for itm in self.__getLockActionItems(self.lockedIndicators)] |
763 for itm in self.__getLockActionItems(self.lockedIndicators)] |
764 if not names: |
764 if not names: |
765 E5MessageBox.information( |
765 E5MessageBox.information( |
766 self, |
766 self, |
767 self.trUtf8("Unlock"), |
767 self.trUtf8("Unlock"), |
810 |
810 |
811 def __addToChangelist(self): |
811 def __addToChangelist(self): |
812 """ |
812 """ |
813 Private slot to add entries to a changelist. |
813 Private slot to add entries to a changelist. |
814 """ |
814 """ |
815 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
815 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
816 for itm in self.__getNonChangelistItems()] |
816 for itm in self.__getNonChangelistItems()] |
817 if not names: |
817 if not names: |
818 E5MessageBox.information( |
818 E5MessageBox.information( |
819 self, |
819 self, |
820 self.trUtf8("Remove from Changelist"), |
820 self.trUtf8("Remove from Changelist"), |
829 |
829 |
830 def __removeFromChangelist(self): |
830 def __removeFromChangelist(self): |
831 """ |
831 """ |
832 Private slot to remove entries from their changelists. |
832 Private slot to remove entries from their changelists. |
833 """ |
833 """ |
834 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \ |
834 names = [os.path.join(self.dname, itm.text(self.__pathColumn)) |
835 for itm in self.__getChangelistItems()] |
835 for itm in self.__getChangelistItems()] |
836 if not names: |
836 if not names: |
837 E5MessageBox.information( |
837 E5MessageBox.information( |
838 self, |
838 self, |
839 self.trUtf8("Remove from Changelist"), |
839 self.trUtf8("Remove from Changelist"), |