52 self.localPath = hd |
54 self.localPath = hd |
53 self.networkPath = "localhost/" |
55 self.networkPath = "localhost/" |
54 self.localProtocol = True |
56 self.localProtocol = True |
55 |
57 |
56 self.vcsProjectDirEdit.setText(Utilities.toNativeSeparators( |
58 self.vcsProjectDirEdit.setText(Utilities.toNativeSeparators( |
57 Preferences.getMultiProject("Workspace") or Utilities.getHomeDir())) |
59 Preferences.getMultiProject("Workspace") or \ |
|
60 Utilities.getHomeDir())) |
58 |
61 |
59 @pyqtSlot() |
62 @pyqtSlot() |
60 def on_vcsUrlButton_clicked(self): |
63 def on_vcsUrlButton_clicked(self): |
61 """ |
64 """ |
62 Private slot to display a selection dialog. |
65 Private slot to display a selection dialog. |
67 self.trUtf8("Select Repository-Directory"), |
70 self.trUtf8("Select Repository-Directory"), |
68 self.vcsUrlEdit.text(), |
71 self.vcsUrlEdit.text(), |
69 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
72 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
70 |
73 |
71 if directory: |
74 if directory: |
72 self.vcsUrlEdit.setText(Utilities.toNativeSeparators(directory)) |
75 self.vcsUrlEdit.setText( |
|
76 Utilities.toNativeSeparators(directory)) |
73 |
77 |
74 @pyqtSlot() |
78 @pyqtSlot() |
75 def on_projectDirButton_clicked(self): |
79 def on_projectDirButton_clicked(self): |
76 """ |
80 """ |
77 Private slot to display a directory selection dialog. |
81 Private slot to display a directory selection dialog. |
81 self.trUtf8("Select Project Directory"), |
85 self.trUtf8("Select Project Directory"), |
82 self.vcsProjectDirEdit.text(), |
86 self.vcsProjectDirEdit.text(), |
83 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
87 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
84 |
88 |
85 if directory: |
89 if directory: |
86 self.vcsProjectDirEdit.setText(Utilities.toNativeSeparators(directory)) |
90 self.vcsProjectDirEdit.setText( |
|
91 Utilities.toNativeSeparators(directory)) |
87 |
92 |
88 @pyqtSlot(str) |
93 @pyqtSlot(str) |
89 def on_protocolCombo_activated(self, protocol): |
94 def on_protocolCombo_activated(self, protocol): |
90 """ |
95 """ |
91 Private slot to switch the status of the directory selection button. |
96 Private slot to switch the status of the directory selection button. |