Plugins/VcsPlugins/vcsMercurial/HgAddSubrepositoryDialog.py

changeset 3008
7848489bcb92
parent 2962
d6c9d1ca2da4
child 3020
542e97d4ecb3
child 3057
10516539f238
equal deleted inserted replaced
3007:bad2e89047e7 3008:7848489bcb92
74 self.__updateOk() 74 self.__updateOk()
75 75
76 @pyqtSlot() 76 @pyqtSlot()
77 def on_pathButton_clicked(self): 77 def on_pathButton_clicked(self):
78 """ 78 """
79 Private slot to handle the path selection via a directory selection dialog. 79 Private slot to handle the path selection via a directory selection
80 dialog.
80 """ 81 """
81 path = E5FileDialog.getExistingDirectory( 82 path = E5FileDialog.getExistingDirectory(
82 self, 83 self,
83 self.trUtf8("Add Sub-repository"), 84 self.trUtf8("Add Sub-repository"),
84 os.path.join(self.__projectPath, self.pathEdit.text()), 85 os.path.join(self.__projectPath, self.pathEdit.text()),
98 99
99 def getData(self): 100 def getData(self):
100 """ 101 """
101 Public method to get the data. 102 Public method to get the data.
102 103
103 @return tuple containing the relative path within the project, the sub-repository 104 @return tuple containing the relative path within the project, the
104 type and the sub-repository URL (string, string, string) 105 sub-repository type and the sub-repository URL (string, string,
106 string)
105 """ 107 """
106 return ( 108 return (
107 self.pathEdit.text(), 109 self.pathEdit.text(),
108 self.typeCombo.itemData(self.typeCombo.currentIndex()), 110 self.typeCombo.itemData(self.typeCombo.currentIndex()),
109 self.urlEdit.text() 111 self.urlEdit.text()

eric ide

mercurial