14 |
14 |
15 class SvnRelocateDialog(QDialog, Ui_SvnRelocateDialog): |
15 class SvnRelocateDialog(QDialog, Ui_SvnRelocateDialog): |
16 """ |
16 """ |
17 Class implementing a dialog to enter the data to relocate the workspace. |
17 Class implementing a dialog to enter the data to relocate the workspace. |
18 """ |
18 """ |
|
19 |
19 def __init__(self, currUrl, parent=None): |
20 def __init__(self, currUrl, parent=None): |
20 """ |
21 """ |
21 Constructor |
22 Constructor |
22 |
23 |
23 @param currUrl current repository URL (string) |
24 @param currUrl current repository URL (string) |
24 @param parent parent widget (QWidget) |
25 @param parent parent widget (QWidget) |
25 """ |
26 """ |
26 super().__init__(parent) |
27 super().__init__(parent) |
27 self.setupUi(self) |
28 self.setupUi(self) |
28 |
29 |
29 self.currUrlLabel.setText(currUrl) |
30 self.currUrlLabel.setText(currUrl) |
30 self.newUrlEdit.setText(currUrl) |
31 self.newUrlEdit.setText(currUrl) |
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 used to retrieve the data entered into the dialog. |
38 Public slot used to retrieve the data entered into the dialog. |
38 |
39 |
39 @return the new repository URL (string) and an indication, if |
40 @return the new repository URL (string) and an indication, if |
40 the relocate is inside the repository (boolean) |
41 the relocate is inside the repository (boolean) |
41 """ |
42 """ |
42 return self.newUrlEdit.text(), self.insideCheckBox.isChecked() |
43 return self.newUrlEdit.text(), self.insideCheckBox.isChecked() |