17 |
17 |
18 from .Ui_HgNewProjectOptionsDialog import Ui_HgNewProjectOptionsDialog |
18 from .Ui_HgNewProjectOptionsDialog import Ui_HgNewProjectOptionsDialog |
19 from .Config import ConfigHgProtocols |
19 from .Config import ConfigHgProtocols |
20 |
20 |
21 import Utilities |
21 import Utilities |
|
22 import Preferences |
22 |
23 |
23 |
24 |
24 class HgNewProjectOptionsDialog(QDialog, Ui_HgNewProjectOptionsDialog): |
25 class HgNewProjectOptionsDialog(QDialog, Ui_HgNewProjectOptionsDialog): |
25 """ |
26 """ |
26 Class implementing the Options Dialog for a new project from the repository. |
27 Class implementing the Options Dialog for a new project from the repository. |
47 self.vcs = vcs |
48 self.vcs = vcs |
48 |
49 |
49 self.localPath = hd |
50 self.localPath = hd |
50 self.networkPath = "localhost/" |
51 self.networkPath = "localhost/" |
51 self.localProtocol = True |
52 self.localProtocol = True |
|
53 |
|
54 self.vcsProjectDirEdit.setText(Utilities.toNativeSeparators( |
|
55 Preferences.getMultiProject("Workspace"))) |
52 |
56 |
53 @pyqtSlot() |
57 @pyqtSlot() |
54 def on_vcsUrlButton_clicked(self): |
58 def on_vcsUrlButton_clicked(self): |
55 """ |
59 """ |
56 Private slot to display a selection dialog. |
60 Private slot to display a selection dialog. |