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 |