69 |
69 |
70 def initDialog(self): |
70 def initDialog(self): |
71 """ |
71 """ |
72 Public method to initialize the dialogs data. |
72 Public method to initialize the dialogs data. |
73 """ |
73 """ |
74 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
74 self.buttonBox.button( |
|
75 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
75 self.transPatternPicker.setText( |
76 self.transPatternPicker.setText( |
76 self.project.pdata["TRANSLATIONPATTERN"]) |
77 self.project.pdata["TRANSLATIONPATTERN"]) |
77 self.transBinPathPicker.setText( |
78 self.transBinPathPicker.setText( |
78 self.project.pdata["TRANSLATIONSBINPATH"]) |
79 self.project.pdata["TRANSLATIONSBINPATH"]) |
79 self.exceptionsList.clear() |
80 self.exceptionsList.clear() |
96 """ |
97 """ |
97 Private slot to check the translation pattern for correctness. |
98 Private slot to check the translation pattern for correctness. |
98 |
99 |
99 @param txt text of the transPatternPicker line edit (string) |
100 @param txt text of the transPatternPicker line edit (string) |
100 """ |
101 """ |
101 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
102 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
102 "%language%" in txt) |
103 "%language%" in txt) |
103 |
104 |
104 @pyqtSlot(str) |
105 @pyqtSlot(str) |
105 def on_transBinPathPicker_pathSelected(self, path): |
106 def on_transBinPathPicker_pathSelected(self, path): |
106 """ |
107 """ |