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_SvnOptionsDialog import Ui_SvnOptionsDialog |
18 from .Ui_SvnOptionsDialog import Ui_SvnOptionsDialog |
94 if self.localProtocol: |
94 if self.localProtocol: |
95 self.localPath = self.vcsUrlEdit.text() |
95 self.localPath = self.vcsUrlEdit.text() |
96 self.vcsUrlEdit.setText(self.networkPath) |
96 self.vcsUrlEdit.setText(self.networkPath) |
97 self.vcsUrlLabel.setText(self.trUtf8("&URL:")) |
97 self.vcsUrlLabel.setText(self.trUtf8("&URL:")) |
98 self.localProtocol = False |
98 self.localProtocol = False |
|
99 |
|
100 @pyqtSlot(str) |
|
101 def on_vcsUrlEdit_textChanged(self, txt): |
|
102 """ |
|
103 Private slot to handle changes of the URL. |
|
104 |
|
105 @param txt current text of the line edit (string) |
|
106 """ |
|
107 enable = "://" not in txt |
|
108 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) |
99 |
109 |
100 def getData(self): |
110 def getData(self): |
101 """ |
111 """ |
102 Public slot to retrieve the data entered into the dialog. |
112 Public slot to retrieve the data entered into the dialog. |
103 |
113 |