21 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
21 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
22 |
22 |
23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
24 |
24 |
25 import Utilities |
25 import Utilities |
|
26 import Preferences |
26 |
27 |
27 |
28 |
28 class PropertiesDialog(QDialog, Ui_PropertiesDialog): |
29 class PropertiesDialog(QDialog, Ui_PropertiesDialog): |
29 """ |
30 """ |
30 Class implementing the project properties dialog. |
31 Class implementing the project properties dialog. |
119 else: |
120 else: |
120 self.languageComboBox.setCurrentIndex( |
121 self.languageComboBox.setCurrentIndex( |
121 self.languageComboBox.findText("Python3")) |
122 self.languageComboBox.findText("Python3")) |
122 self.projectTypeComboBox.setCurrentIndex( |
123 self.projectTypeComboBox.setCurrentIndex( |
123 self.projectTypeComboBox.findText(projectTypes["Qt4"])) |
124 self.projectTypeComboBox.findText(projectTypes["Qt4"])) |
124 hp = os.getcwd() |
125 hp = Preferences.getMultiProject("Workspace") |
125 hp = hp + os.sep |
126 if not hp: |
|
127 hp = os.getcwd() |
|
128 hp = hp + os.sep |
126 self.dirEdit.setText(hp) |
129 self.dirEdit.setText(hp) |
127 self.versionEdit.setText('0.1') |
130 self.versionEdit.setText('0.1') |
128 self.vcsLabel.hide() |
131 self.vcsLabel.hide() |
129 self.vcsInfoButton.hide() |
132 self.vcsInfoButton.hide() |
130 if not self.project.vcsSoftwareAvailable(): |
133 if not self.project.vcsSoftwareAvailable(): |