55 |
55 |
56 self.localPath = hd |
56 self.localPath = hd |
57 self.networkPath = "localhost/" |
57 self.networkPath = "localhost/" |
58 self.localProtocol = True |
58 self.localProtocol = True |
59 |
59 |
60 self.vcsProjectDirEdit.setText(Utilities.toNativeSeparators( |
60 ipath = Preferences.getMultiProject("Workspace") or \ |
61 Preferences.getMultiProject("Workspace") or |
61 Utilities.getHomeDir() |
62 Utilities.getHomeDir())) |
62 self.__initPaths = [ |
|
63 Utilities.fromNativeSeparators(ipath), |
|
64 Utilities.fromNativeSeparators(ipath) + "/", |
|
65 ] |
|
66 self.vcsProjectDirEdit.setText( |
|
67 Utilities.toNativeSeparators(self.__initPaths[0])) |
|
68 |
|
69 self.resize(self.width(), self.minimumSizeHint().height()) |
|
70 |
|
71 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
|
72 |
|
73 @pyqtSlot(str) |
|
74 def on_vcsProjectDirEdit_textChanged(self, txt): |
|
75 """ |
|
76 Private slot to handle a change of the project directory. |
|
77 |
|
78 @param txt name of the project directory (string) |
|
79 """ |
|
80 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
|
81 bool(txt) and |
|
82 Utilities.fromNativeSeparators(txt) not in self.__initPaths) |
63 |
83 |
64 @pyqtSlot() |
84 @pyqtSlot() |
65 def on_vcsUrlButton_clicked(self): |
85 def on_vcsUrlButton_clicked(self): |
66 """ |
86 """ |
67 Private slot to display a selection dialog. |
87 Private slot to display a selection dialog. |