Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py

changeset 2452
fd1cd8a279db
parent 2406
975af671146d
child 2525
8b507a9a2d40
child 3009
bf5ae5d7477d
equal deleted inserted replaced
2451:4d80de2f9122 2452:fd1cd8a279db
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import QDir, pyqtSlot 12 from PyQt4.QtCore import QDir, pyqtSlot
13 from PyQt4.QtGui import QDialog 13 from PyQt4.QtGui import QDialog, QDialogButtonBox
14 14
15 from E5Gui.E5Completers import E5DirCompleter 15 from E5Gui.E5Completers import E5DirCompleter
16 from E5Gui import E5FileDialog 16 from E5Gui import E5FileDialog
17 17
18 from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog 18 from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog
122 if self.localProtocol: 122 if self.localProtocol:
123 self.localPath = self.vcsUrlEdit.text() 123 self.localPath = self.vcsUrlEdit.text()
124 self.vcsUrlEdit.setText(self.networkPath) 124 self.vcsUrlEdit.setText(self.networkPath)
125 self.vcsUrlLabel.setText(self.trUtf8("&URL:")) 125 self.vcsUrlLabel.setText(self.trUtf8("&URL:"))
126 self.localProtocol = False 126 self.localProtocol = False
127
128 @pyqtSlot(str)
129 def on_vcsUrlEdit_textChanged(self, txt):
130 """
131 Private slot to handle changes of the URL.
132
133 @param txt current text of the line edit (string)
134 """
135 enable = "://" not in txt
136 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
127 137
128 def getData(self): 138 def getData(self):
129 """ 139 """
130 Public slot to retrieve the data entered into the dialog. 140 Public slot to retrieve the data entered into the dialog.
131 141

eric ide

mercurial