Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3334
a75328ebac64
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
20 from .Config import ConfigSvnProtocols 20 from .Config import ConfigSvnProtocols
21 21
22 import Utilities 22 import Utilities
23 import Preferences 23 import Preferences
24 import UI.PixmapCache 24 import UI.PixmapCache
25
25 26
26 class SvnNewProjectOptionsDialog(QDialog, Ui_SvnNewProjectOptionsDialog): 27 class SvnNewProjectOptionsDialog(QDialog, Ui_SvnNewProjectOptionsDialog):
27 """ 28 """
28 Class implementing the Options Dialog for a new project from the 29 Class implementing the Options Dialog for a new project from the
29 repository. 30 repository.
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 """

eric ide

mercurial