src/eric7/Plugins/VcsPlugins/vcsMercurial/HgAddSubrepositoryDialog.py

branch
eric7
changeset 10438
4cd7e5a8b3cf
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10437:2f70ca07f0af 10438:4cd7e5a8b3cf
26 26
27 def __init__(self, projectPath, parent=None): 27 def __init__(self, projectPath, parent=None):
28 """ 28 """
29 Constructor 29 Constructor
30 30
31 @param projectPath project directory name (string) 31 @param projectPath project directory name
32 @param parent reference to the parent widget (QWidget) 32 @type str
33 @param parent reference to the parent widget
34 @type QWidget
33 """ 35 """
34 super().__init__(parent) 36 super().__init__(parent)
35 self.setupUi(self) 37 self.setupUi(self)
36 38
37 self.pathPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) 39 self.pathPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
61 @pyqtSlot(str) 63 @pyqtSlot(str)
62 def on_pathPicker_textChanged(self, p0): 64 def on_pathPicker_textChanged(self, p0):
63 """ 65 """
64 Private slot to handle the update of the path. 66 Private slot to handle the update of the path.
65 67
66 @param p0 text of the path edit (string) 68 @param p0 text of the path edit
69 @type str
67 """ 70 """
68 self.__updateOk() 71 self.__updateOk()
69 72
70 @pyqtSlot(str) 73 @pyqtSlot(str)
71 def on_urlEdit_textChanged(self, p0): 74 def on_urlEdit_textChanged(self, p0):
72 """ 75 """
73 Private slot to handle the update of the URL. 76 Private slot to handle the update of the URL.
74 77
75 @param p0 text of the URL edit (string) 78 @param p0 text of the URL edit
79 @type str
76 """ 80 """
77 self.__updateOk() 81 self.__updateOk()
78 82
79 @pyqtSlot(str) 83 @pyqtSlot(str)
80 def on_pathPicker_pathSelected(self, path): 84 def on_pathPicker_pathSelected(self, path):
98 def getData(self): 102 def getData(self):
99 """ 103 """
100 Public method to get the data. 104 Public method to get the data.
101 105
102 @return tuple containing the relative path within the project, the 106 @return tuple containing the relative path within the project, the
103 sub-repository type and the sub-repository URL (string, string, 107 sub-repository type and the sub-repository URL
104 string) 108 @rtype tuple of (str, str, str)
105 """ 109 """
106 return ( 110 return (
107 self.pathPicker.text(), 111 self.pathPicker.text(),
108 self.typeCombo.itemData(self.typeCombo.currentIndex()), 112 self.typeCombo.itemData(self.typeCombo.currentIndex()),
109 self.urlEdit.text(), 113 self.urlEdit.text(),

eric ide

mercurial