66 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
66 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
67 E5MessageBox.critical( |
67 E5MessageBox.critical( |
68 self, |
68 self, |
69 self.trUtf8("Add tool group entry"), |
69 self.trUtf8("Add tool group entry"), |
70 self.trUtf8("An entry for the group name {0} already exists.") |
70 self.trUtf8("An entry for the group name {0} already exists.") |
71 .format(groupName)) |
71 .format(groupName)) |
72 return |
72 return |
73 |
73 |
74 self.groupsList.addItem(groupName) |
74 self.groupsList.addItem(groupName) |
75 self.toolGroups.append([groupName, []]) |
75 self.toolGroups.append([groupName, []]) |
76 |
76 |
96 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
96 groupName, Qt.MatchFlags(Qt.MatchExactly))): |
97 E5MessageBox.critical( |
97 E5MessageBox.critical( |
98 self, |
98 self, |
99 self.trUtf8("Add tool group entry"), |
99 self.trUtf8("Add tool group entry"), |
100 self.trUtf8("An entry for the group name {0} already exists.") |
100 self.trUtf8("An entry for the group name {0} already exists.") |
101 .format(groupName)) |
101 .format(groupName)) |
102 return |
102 return |
103 |
103 |
104 self.toolGroups[row][0] = groupName |
104 self.toolGroups[row][0] = groupName |
105 self.groupsList.currentItem().setText(groupName) |
105 self.groupsList.currentItem().setText(groupName) |
106 |
106 |
116 res = E5MessageBox.yesNo( |
116 res = E5MessageBox.yesNo( |
117 self, |
117 self, |
118 self.trUtf8("Delete tool group entry"), |
118 self.trUtf8("Delete tool group entry"), |
119 self.trUtf8("""<p>Do you really want to delete the tool group""" |
119 self.trUtf8("""<p>Do you really want to delete the tool group""" |
120 """ <b>"{0}"</b>?</p>""") |
120 """ <b>"{0}"</b>?</p>""") |
121 .format(self.groupsList.currentItem().text()), |
121 .format(self.groupsList.currentItem().text()), |
122 icon=E5MessageBox.Warning) |
122 icon=E5MessageBox.Warning) |
123 if not res: |
123 if not res: |
124 return |
124 return |
125 |
125 |
126 if row == self.currentGroup: |
126 if row == self.currentGroup: |