Plugins/VcsPlugins/vcsMercurial/HgAddSubrepositoryDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3008
7848489bcb92
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
27 """ 27 """
28 def __init__(self, projectPath, parent=None): 28 def __init__(self, projectPath, parent=None):
29 """ 29 """
30 Constructor 30 Constructor
31 31
32 @param projectPath project directory name (string)
32 @param parent reference to the parent widget (QWidget) 33 @param parent reference to the parent widget (QWidget)
33 """ 34 """
34 super(HgAddSubrepositoryDialog, self).__init__(parent) 35 super(HgAddSubrepositoryDialog, self).__init__(parent)
35 self.setupUi(self) 36 self.setupUi(self)
36 37
75 self.__updateOk() 76 self.__updateOk()
76 77
77 @pyqtSlot() 78 @pyqtSlot()
78 def on_pathButton_clicked(self): 79 def on_pathButton_clicked(self):
79 """ 80 """
80 Private slot to handle the path selection via a directory selection dialog. 81 Private slot to handle the path selection via a directory selection
82 dialog.
81 """ 83 """
82 path = E5FileDialog.getExistingDirectory( 84 path = E5FileDialog.getExistingDirectory(
83 self, 85 self,
84 self.trUtf8("Add Sub-repository"), 86 self.trUtf8("Add Sub-repository"),
85 os.path.join(self.__projectPath, self.pathEdit.text()), 87 os.path.join(self.__projectPath, self.pathEdit.text()),
99 101
100 def getData(self): 102 def getData(self):
101 """ 103 """
102 Public method to get the data. 104 Public method to get the data.
103 105
104 @return tuple containing the relative path within the project, the sub-repository 106 @return tuple containing the relative path within the project, the
105 type and the sub-repository URL (string, string, string) 107 sub-repository type and the sub-repository URL (string, string,
108 string)
106 """ 109 """
107 return ( 110 return (
108 self.pathEdit.text(), 111 self.pathEdit.text(),
109 self.typeCombo.itemData(self.typeCombo.currentIndex()), 112 self.typeCombo.itemData(self.typeCombo.currentIndex()),
110 self.urlEdit.text() 113 self.urlEdit.text()

eric ide

mercurial