107 def __enabledGroups(self): |
107 def __enabledGroups(self): |
108 """ |
108 """ |
109 Private method to enable/disable some group boxes. |
109 Private method to enable/disable some group boxes. |
110 """ |
110 """ |
111 self.standardButtons.setEnabled( |
111 self.standardButtons.setEnabled( |
112 self.rInformation.isChecked() or \ |
112 self.rInformation.isChecked() or |
113 self.rQuestion.isChecked() or \ |
113 self.rQuestion.isChecked() or |
114 self.rWarning.isChecked() or \ |
114 self.rWarning.isChecked() or |
115 self.rCritical.isChecked() or \ |
115 self.rCritical.isChecked() or |
116 self.rStandard.isChecked() |
116 self.rStandard.isChecked() |
117 ) |
117 ) |
118 |
118 |
119 self.defaultButton.setEnabled( |
119 self.defaultButton.setEnabled( |
120 self.rInformation.isChecked() or \ |
120 self.rInformation.isChecked() or |
121 self.rQuestion.isChecked() or \ |
121 self.rQuestion.isChecked() or |
122 self.rWarning.isChecked() or \ |
122 self.rWarning.isChecked() or |
123 self.rCritical.isChecked() |
123 self.rCritical.isChecked() |
124 ) |
124 ) |
125 |
125 |
126 self.iconBox.setEnabled( |
126 self.iconBox.setEnabled( |
127 self.rYesNo.isChecked() or \ |
127 self.rYesNo.isChecked() or |
128 self.rRetryAbort.isChecked() or \ |
128 self.rRetryAbort.isChecked() or |
129 self.rStandard.isChecked() |
129 self.rStandard.isChecked() |
130 ) |
130 ) |
131 |
131 |
132 self.bTest.setEnabled(not self.rStandard.isChecked()) |
132 self.bTest.setEnabled(not self.rStandard.isChecked()) |
133 |
133 |
257 elif self.rAboutQt.isChecked(): |
257 elif self.rAboutQt.isChecked(): |
258 E5MessageBox.aboutQt( |
258 E5MessageBox.aboutQt( |
259 None, self.eCaption.text() |
259 None, self.eCaption.text() |
260 ) |
260 ) |
261 elif self.rInformation.isChecked() or \ |
261 elif self.rInformation.isChecked() or \ |
262 self.rQuestion.isChecked() or \ |
262 self.rQuestion.isChecked() or \ |
263 self.rWarning.isChecked() or \ |
263 self.rWarning.isChecked() or \ |
264 self.rCritical.isChecked(): |
264 self.rCritical.isChecked(): |
265 buttons = E5MessageBox.NoButton |
265 buttons = E5MessageBox.NoButton |
266 if self.abortCheck.isChecked(): |
266 if self.abortCheck.isChecked(): |
267 buttons |= E5MessageBox.Abort |
267 buttons |= E5MessageBox.Abort |
268 if self.applyCheck.isChecked(): |
268 if self.applyCheck.isChecked(): |
269 buttons |= E5MessageBox.Apply |
269 buttons |= E5MessageBox.Apply |
336 self.eMessage.toPlainText(), |
336 self.eMessage.toPlainText(), |
337 E5MessageBox.StandardButtons(buttons), |
337 E5MessageBox.StandardButtons(buttons), |
338 defaultButton |
338 defaultButton |
339 ) |
339 ) |
340 elif self.rYesNo.isChecked() or \ |
340 elif self.rYesNo.isChecked() or \ |
341 self.rRetryAbort.isChecked(): |
341 self.rRetryAbort.isChecked(): |
342 if self.iconInformation.isChecked(): |
342 if self.iconInformation.isChecked(): |
343 icon = E5MessageBox.Information |
343 icon = E5MessageBox.Information |
344 elif self.iconQuestion.isChecked(): |
344 elif self.iconQuestion.isChecked(): |
345 icon = E5MessageBox.Question |
345 icon = E5MessageBox.Question |
346 elif self.iconWarning.isChecked(): |
346 elif self.iconWarning.isChecked(): |