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