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