30 def __init__(self, vcs, parent=None): |
30 def __init__(self, vcs, parent=None): |
31 """ |
31 """ |
32 Constructor |
32 Constructor |
33 |
33 |
34 @param vcs reference to the version control object |
34 @param vcs reference to the version control object |
35 @param parent parent widget (QWidget) |
35 @type Git |
|
36 @param parent parent widget |
|
37 @type QWidget |
36 """ |
38 """ |
37 super().__init__(parent) |
39 super().__init__(parent) |
38 self.setupUi(self) |
40 self.setupUi(self) |
39 |
41 |
40 self.__vcs = vcs |
42 self.__vcs = vcs |
70 @pyqtSlot(str) |
72 @pyqtSlot(str) |
71 def on_vcsProjectDirEdit_textChanged(self, txt): |
73 def on_vcsProjectDirEdit_textChanged(self, txt): |
72 """ |
74 """ |
73 Private slot to handle a change of the project directory. |
75 Private slot to handle a change of the project directory. |
74 |
76 |
75 @param txt name of the project directory (string) |
77 @param txt name of the project directory |
|
78 @type str |
76 """ |
79 """ |
77 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
80 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( |
78 bool(txt) |
81 bool(txt) |
79 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths |
82 and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths |
80 ) |
83 ) |
153 def getData(self): |
156 def getData(self): |
154 """ |
157 """ |
155 Public slot to retrieve the data entered into the dialog. |
158 Public slot to retrieve the data entered into the dialog. |
156 |
159 |
157 @return a tuple of a string (project directory) and a dictionary |
160 @return a tuple of a string (project directory) and a dictionary |
158 containing the data entered. |
161 containing the data entered |
|
162 @rtype tuple of (str, Any) |
159 """ |
163 """ |
160 self.__saveHistory() |
164 self.__saveHistory() |
161 |
165 |
162 vcsdatadict = { |
166 vcsdatadict = { |
163 "url": self.vcsUrlCombo.currentText().replace("\\", "/"), |
167 "url": self.vcsUrlCombo.currentText().replace("\\", "/"), |