44 @pyqtSlot() |
44 @pyqtSlot() |
45 def on_pathButton_clicked(self): |
45 def on_pathButton_clicked(self): |
46 """ |
46 """ |
47 Private slot called to open a directory selection dialog. |
47 Private slot called to open a directory selection dialog. |
48 """ |
48 """ |
49 path = QFileDialog.getExistingDirectory(\ |
49 path = QFileDialog.getExistingDirectory( |
50 self, |
50 self, |
51 self.trUtf8("Select source directory"), |
51 self.trUtf8("Select source directory"), |
52 QDir.fromNativeSeparators(self.pathnameEdit.text()), |
52 QDir.fromNativeSeparators(self.pathnameEdit.text()), |
53 QFileDialog.Options(QFileDialog.Option(0))) |
53 QFileDialog.Options(QFileDialog.Option(0))) |
54 if path: |
54 if path: |
56 |
56 |
57 def __enableOkButton(self): |
57 def __enableOkButton(self): |
58 """ |
58 """ |
59 Private slot to set the enable state of theok button. |
59 Private slot to set the enable state of theok button. |
60 """ |
60 """ |
61 self.okButton.setEnabled(\ |
61 self.okButton.setEnabled( |
62 self.classnameEdit.text() != "" and \ |
62 self.classnameEdit.text() != "" and \ |
63 self.filenameEdit.text() != "" and \ |
63 self.filenameEdit.text() != "" and \ |
64 self.pathnameEdit.text() != "") |
64 self.pathnameEdit.text() != "") |
65 |
65 |
66 def on_classnameEdit_textChanged(self, text): |
66 def on_classnameEdit_textChanged(self, text): |