29 def __init__(self, vcs, project, parent=None): |
29 def __init__(self, vcs, project, parent=None): |
30 """ |
30 """ |
31 Constructor |
31 Constructor |
32 |
32 |
33 @param vcs reference to the version control object |
33 @param vcs reference to the version control object |
|
34 @type Subversion |
34 @param project reference to the project object |
35 @param project reference to the project object |
35 @param parent parent widget (QWidget) |
36 @type Project |
|
37 @param parent parent widget |
|
38 @type QWidget |
36 """ |
39 """ |
37 super().__init__(parent) |
40 super().__init__(parent) |
38 self.setupUi(self) |
41 self.setupUi(self) |
39 |
42 |
40 self.vcsUrlPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
43 self.vcsUrlPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
99 @pyqtSlot(str) |
102 @pyqtSlot(str) |
100 def on_vcsUrlPicker_textChanged(self, txt): |
103 def on_vcsUrlPicker_textChanged(self, txt): |
101 """ |
104 """ |
102 Private slot to handle changes of the URL. |
105 Private slot to handle changes of the URL. |
103 |
106 |
104 @param txt current text of the line edit (string) |
107 @param txt current text of the line edit |
|
108 @type str |
105 """ |
109 """ |
106 enable = "://" not in txt |
110 enable = "://" not in txt |
107 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
111 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(enable) |
108 |
112 |
109 def getData(self): |
113 def getData(self): |
110 """ |
114 """ |
111 Public slot to retrieve the data entered into the dialog. |
115 Public slot to retrieve the data entered into the dialog. |
112 |
116 |
113 @return a dictionary containing the data entered |
117 @return a dictionary containing the data entered |
|
118 @rtype dict |
114 """ |
119 """ |
115 scheme = self.protocolCombo.currentText() |
120 scheme = self.protocolCombo.currentText() |
116 url = self.vcsUrlPicker.text() |
121 url = self.vcsUrlPicker.text() |
117 vcsdatadict = { |
122 vcsdatadict = { |
118 "url": "{0}{1}".format(scheme, url), |
123 "url": "{0}{1}".format(scheme, url), |