Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3334
a75328ebac64
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
67 Private slot to display a selection dialog. 67 Private slot to display a selection dialog.
68 """ 68 """
69 if self.protocolCombo.currentText() == "file://": 69 if self.protocolCombo.currentText() == "file://":
70 directory = E5FileDialog.getExistingDirectory( 70 directory = E5FileDialog.getExistingDirectory(
71 self, 71 self,
72 self.trUtf8("Select Repository-Directory"), 72 self.tr("Select Repository-Directory"),
73 self.vcsUrlEdit.text(), 73 self.vcsUrlEdit.text(),
74 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 74 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
75 75
76 if directory: 76 if directory:
77 self.vcsUrlEdit.setText( 77 self.vcsUrlEdit.setText(
95 """ 95 """
96 Private slot to display a directory selection dialog. 96 Private slot to display a directory selection dialog.
97 """ 97 """
98 directory = E5FileDialog.getExistingDirectory( 98 directory = E5FileDialog.getExistingDirectory(
99 self, 99 self,
100 self.trUtf8("Select Project Directory"), 100 self.tr("Select Project Directory"),
101 self.vcsProjectDirEdit.text(), 101 self.vcsProjectDirEdit.text(),
102 E5FileDialog.Options(E5FileDialog.ShowDirsOnly)) 102 E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
103 103
104 if directory: 104 if directory:
105 self.vcsProjectDirEdit.setText( 105 self.vcsProjectDirEdit.setText(
124 @param protocol selected protocol (string) 124 @param protocol selected protocol (string)
125 """ 125 """
126 if protocol == "file://": 126 if protocol == "file://":
127 self.networkPath = self.vcsUrlEdit.text() 127 self.networkPath = self.vcsUrlEdit.text()
128 self.vcsUrlEdit.setText(self.localPath) 128 self.vcsUrlEdit.setText(self.localPath)
129 self.vcsUrlLabel.setText(self.trUtf8("Pat&h:")) 129 self.vcsUrlLabel.setText(self.tr("Pat&h:"))
130 self.localProtocol = True 130 self.localProtocol = True
131 else: 131 else:
132 if self.localProtocol: 132 if self.localProtocol:
133 self.localPath = self.vcsUrlEdit.text() 133 self.localPath = self.vcsUrlEdit.text()
134 self.vcsUrlEdit.setText(self.networkPath) 134 self.vcsUrlEdit.setText(self.networkPath)
135 self.vcsUrlLabel.setText(self.trUtf8("&URL:")) 135 self.vcsUrlLabel.setText(self.tr("&URL:"))
136 self.localProtocol = False 136 self.localProtocol = False
137 137
138 @pyqtSlot(str) 138 @pyqtSlot(str)
139 def on_vcsUrlEdit_textChanged(self, txt): 139 def on_vcsUrlEdit_textChanged(self, txt):
140 """ 140 """

eric ide

mercurial