src/eric7/Plugins/VcsPlugins/vcsPySvn/SvnRelocateDialog.py

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8881
54e42bc2437a
child 9221
bf71ee032bb4
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2015 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing a dialog to enter the data to relocate the workspace.
8 """
9
10 from PyQt6.QtWidgets import QDialog
11
12 from .Ui_SvnRelocateDialog import Ui_SvnRelocateDialog
13
14
15 class SvnRelocateDialog(QDialog, Ui_SvnRelocateDialog):
16 """
17 Class implementing a dialog to enter the data to relocate the workspace.
18 """
19 def __init__(self, currUrl, parent=None):
20 """
21 Constructor
22
23 @param currUrl current repository URL (string)
24 @param parent parent widget (QWidget)
25 """
26 super().__init__(parent)
27 self.setupUi(self)
28
29 self.currUrlLabel.setText(currUrl)
30 self.newUrlEdit.setText(currUrl)
31
32 msh = self.minimumSizeHint()
33 self.resize(max(self.width(), msh.width()), msh.height())
34
35 def getData(self):
36 """
37 Public slot used to retrieve the data entered into the dialog.
38
39 @return the new repository URL (string) and an indication, if
40 the relocate is inside the repository (boolean)
41 """
42 return self.newUrlEdit.text(), self.insideCheckBox.isChecked()

eric ide

mercurial