Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

branch
5_3_x
changeset 2456
3c141610e378
parent 2302
f29e9405c851
child 3163
9f50365a0870
equal deleted inserted replaced
2455:0e33ff267952 2456:3c141610e378
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 .SvnRepoBrowserDialog import SvnRepoBrowserDialog 18 from .SvnRepoBrowserDialog import SvnRepoBrowserDialog
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