66 self.trUtf8("Select Repository-Directory"), |
67 self.trUtf8("Select Repository-Directory"), |
67 self.vcsUrlEdit.text(), |
68 self.vcsUrlEdit.text(), |
68 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
69 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) |
69 |
70 |
70 if directory: |
71 if directory: |
71 self.vcsUrlEdit.setText(Utilities.toNativeSeparators(directory)) |
72 self.vcsUrlEdit.setText( |
|
73 Utilities.toNativeSeparators(directory)) |
72 else: |
74 else: |
73 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog |
75 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog |
74 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) |
76 dlg = SvnRepoBrowserDialog(self.vcs, mode="select", parent=self) |
75 dlg.start(self.protocolCombo.currentText() + self.vcsUrlEdit.text()) |
77 dlg.start( |
|
78 self.protocolCombo.currentText() + self.vcsUrlEdit.text()) |
76 if dlg.exec_() == QDialog.Accepted: |
79 if dlg.exec_() == QDialog.Accepted: |
77 url = dlg.getSelectedUrl() |
80 url = dlg.getSelectedUrl() |
78 if url: |
81 if url: |
79 protocol = url.split("://")[0] |
82 protocol = url.split("://")[0] |
80 path = url.split("://")[1] |
83 path = url.split("://")[1] |
84 |
87 |
85 @pyqtSlot(str) |
88 @pyqtSlot(str) |
86 def on_protocolCombo_activated(self, protocol): |
89 def on_protocolCombo_activated(self, protocol): |
87 """ |
90 """ |
88 Private slot to switch the status of the directory selection button. |
91 Private slot to switch the status of the directory selection button. |
|
92 |
|
93 @param protocol selected protocol (string) |
89 """ |
94 """ |
90 if protocol == "file://": |
95 if protocol == "file://": |
91 self.networkPath = self.vcsUrlEdit.text() |
96 self.networkPath = self.vcsUrlEdit.text() |
92 self.vcsUrlEdit.setText(self.localPath) |
97 self.vcsUrlEdit.setText(self.localPath) |
93 self.vcsUrlLabel.setText(self.trUtf8("Pat&h:")) |
98 self.vcsUrlLabel.setText(self.trUtf8("Pat&h:")) |