Plugins/VcsPlugins/vcsPySvn/SvnRelocateDialog.py

changeset 0
de9c2efb9d02
child 12
1d8dd9706f46
equal deleted inserted replaced
-1:000000000000 0:de9c2efb9d02
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c)2009 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 PyQt4.QtCore import *
11 from PyQt4.QtGui import *
12
13 from Ui_SvnRelocateDialog import Ui_SvnRelocateDialog
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 QDialog.__init__(self, parent)
27 self.setupUi(self)
28
29 self.currUrlLabel.setText(currUrl)
30 self.newUrlEdit.setText(currUrl)
31
32 def getData(self):
33 """
34 Public slot used to retrieve the data entered into the dialog.
35
36 @return the new repository URL (string) and an indication, if
37 the relocate is inside the repository (boolean)
38 """
39 return self.newUrlEdit.text(), self.insideCheckBox.isChecked()

eric ide

mercurial