eric7/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

branch
eric7
changeset 8327
666c2b81cbb7
parent 8318
962bce857696
child 8356
68ec9c3d4de5
equal deleted inserted replaced
8325:547319e56c60 8327:666c2b81cbb7
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.

eric ide

mercurial