eric7/Plugins/VcsPlugins/vcsPySvn/SvnRelocateDialog.py

branch
eric7
changeset 8312
800c432b34c8
parent 8218
7c09585bd960
child 8318
962bce857696
equal deleted inserted replaced
8311:4e8b98454baa 8312:800c432b34c8
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2015 - 2021 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 PyQt5.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