35 @param parent parent widget (QWidget) |
35 @param parent parent widget (QWidget) |
36 """ |
36 """ |
37 super().__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.vcsProjectDirPicker.setMode(E5PathPickerModes.DirectoryMode) |
40 self.vcsProjectDirPicker.setMode(E5PathPickerModes.DIRECTORY_MODE) |
41 self.vcsUrlPicker.setMode(E5PathPickerModes.DirectoryMode) |
41 self.vcsUrlPicker.setMode(E5PathPickerModes.DIRECTORY_MODE) |
42 |
42 |
43 self.protocolCombo.addItems(ConfigSvnProtocols) |
43 self.protocolCombo.addItems(ConfigSvnProtocols) |
44 |
44 |
45 self.vcs = vcs |
45 self.vcs = vcs |
46 |
46 |
121 if protocol == "file://": |
121 if protocol == "file://": |
122 self.networkPath = self.vcsUrlPicker.text() |
122 self.networkPath = self.vcsUrlPicker.text() |
123 self.vcsUrlPicker.setText(self.localPath) |
123 self.vcsUrlPicker.setText(self.localPath) |
124 self.vcsUrlLabel.setText(self.tr("Pat&h:")) |
124 self.vcsUrlLabel.setText(self.tr("Pat&h:")) |
125 self.localProtocol = True |
125 self.localProtocol = True |
126 self.vcsUrlPicker.setMode(E5PathPickerModes.DirectoryMode) |
126 self.vcsUrlPicker.setMode(E5PathPickerModes.DIRECTORY_MODE) |
127 else: |
127 else: |
128 if self.localProtocol: |
128 if self.localProtocol: |
129 self.localPath = self.vcsUrlPicker.text() |
129 self.localPath = self.vcsUrlPicker.text() |
130 self.vcsUrlPicker.setText(self.networkPath) |
130 self.vcsUrlPicker.setText(self.networkPath) |
131 self.vcsUrlLabel.setText(self.tr("&URL:")) |
131 self.vcsUrlLabel.setText(self.tr("&URL:")) |
132 self.localProtocol = False |
132 self.localProtocol = False |
133 self.vcsUrlPicker.setMode(E5PathPickerModes.CustomMode) |
133 self.vcsUrlPicker.setMode(E5PathPickerModes.CUSTOM_MODE) |
134 |
134 |
135 @pyqtSlot(str) |
135 @pyqtSlot(str) |
136 def on_vcsUrlPicker_textChanged(self, txt): |
136 def on_vcsUrlPicker_textChanged(self, txt): |
137 """ |
137 """ |
138 Private slot to handle changes of the URL. |
138 Private slot to handle changes of the URL. |