16 class GitOptionsDialog(QDialog, Ui_GitOptionsDialog): |
16 class GitOptionsDialog(QDialog, Ui_GitOptionsDialog): |
17 """ |
17 """ |
18 Class implementing a dialog to enter options used to start a project in the |
18 Class implementing a dialog to enter options used to start a project in the |
19 repository. |
19 repository. |
20 """ |
20 """ |
|
21 |
21 def __init__(self, vcs, project, parent=None): |
22 def __init__(self, vcs, project, parent=None): |
22 """ |
23 """ |
23 Constructor |
24 Constructor |
24 |
25 |
25 @param vcs reference to the version control object |
26 @param vcs reference to the version control object |
26 @param project reference to the project object |
27 @param project reference to the project object |
27 @param parent parent widget (QWidget) |
28 @param parent parent widget (QWidget) |
28 """ |
29 """ |
29 super().__init__(parent) |
30 super().__init__(parent) |
30 self.setupUi(self) |
31 self.setupUi(self) |
31 |
32 |
32 msh = self.minimumSizeHint() |
33 msh = self.minimumSizeHint() |
33 self.resize(max(self.width(), msh.width()), msh.height()) |
34 self.resize(max(self.width(), msh.width()), msh.height()) |
34 |
35 |
35 def getData(self): |
36 def getData(self): |
36 """ |
37 """ |
37 Public slot to retrieve the data entered into the dialog. |
38 Public slot to retrieve the data entered into the dialog. |
38 |
39 |
39 @return a dictionary containing the data entered |
40 @return a dictionary containing the data entered |
40 """ |
41 """ |
41 vcsdatadict = { |
42 vcsdatadict = { |
42 "message": self.vcsLogEdit.text(), |
43 "message": self.vcsLogEdit.text(), |
43 } |
44 } |