Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3366
6084bb3c3911
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
63 Private slot to display a selection dialog. 63 Private slot to display a selection dialog.
64 """ 64 """
65 if self.protocolCombo.currentText() == "file://": 65 if self.protocolCombo.currentText() == "file://":
66 directory = E5FileDialog.getExistingDirectory( 66 directory = E5FileDialog.getExistingDirectory(
67 self, 67 self,
68 self.trUtf8("Select Repository-Directory"), 68 self.tr("Select Repository-Directory"),
69 self.vcsUrlEdit.text(), 69 self.vcsUrlEdit.text(),
70 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 70 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
71 71
72 if directory: 72 if directory:
73 self.vcsUrlEdit.setText( 73 self.vcsUrlEdit.setText(
94 @param protocol selected protocol (string) 94 @param protocol selected protocol (string)
95 """ 95 """
96 if protocol == "file://": 96 if protocol == "file://":
97 self.networkPath = self.vcsUrlEdit.text() 97 self.networkPath = self.vcsUrlEdit.text()
98 self.vcsUrlEdit.setText(self.localPath) 98 self.vcsUrlEdit.setText(self.localPath)
99 self.vcsUrlLabel.setText(self.trUtf8("Pat&h:")) 99 self.vcsUrlLabel.setText(self.tr("Pat&h:"))
100 self.localProtocol = True 100 self.localProtocol = True
101 else: 101 else:
102 if self.localProtocol: 102 if self.localProtocol:
103 self.localPath = self.vcsUrlEdit.text() 103 self.localPath = self.vcsUrlEdit.text()
104 self.vcsUrlEdit.setText(self.networkPath) 104 self.vcsUrlEdit.setText(self.networkPath)
105 self.vcsUrlLabel.setText(self.trUtf8("&URL:")) 105 self.vcsUrlLabel.setText(self.tr("&URL:"))
106 self.localProtocol = False 106 self.localProtocol = False
107 107
108 @pyqtSlot(str) 108 @pyqtSlot(str)
109 def on_vcsUrlEdit_textChanged(self, txt): 109 def on_vcsUrlEdit_textChanged(self, txt):
110 """ 110 """

eric ide

mercurial