eric7/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8327
666c2b81cbb7
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
11 import os 11 import os
12 12
13 from PyQt6.QtCore import QDir, pyqtSlot 13 from PyQt6.QtCore import QDir, pyqtSlot
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
15 15
16 from E5Gui.E5PathPicker import E5PathPickerModes 16 from E5Gui.EricPathPicker import EricPathPickerModes
17 17
18 from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog 18 from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog
19 from .Config import ConfigSvnProtocols 19 from .Config import ConfigSvnProtocols
20 20
21 import Utilities 21 import Utilities
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.DIRECTORY_MODE) 40 self.vcsProjectDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
41 self.vcsUrlPicker.setMode(E5PathPickerModes.DIRECTORY_MODE) 41 self.vcsUrlPicker.setMode(EricPathPickerModes.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.DIRECTORY_MODE) 126 self.vcsUrlPicker.setMode(EricPathPickerModes.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.CUSTOM_MODE) 133 self.vcsUrlPicker.setMode(EricPathPickerModes.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