15 from E5Gui.E5Application import e5App |
15 from E5Gui.E5Application import e5App |
16 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter |
16 from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter |
17 from E5Gui import E5FileDialog |
17 from E5Gui import E5FileDialog |
18 |
18 |
19 from .Ui_PropertiesDialog import Ui_PropertiesDialog |
19 from .Ui_PropertiesDialog import Ui_PropertiesDialog |
20 from .TranslationPropertiesDialog import TranslationPropertiesDialog |
|
21 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
|
22 |
|
23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
|
24 |
20 |
25 import Utilities |
21 import Utilities |
26 import Preferences |
22 import Preferences |
27 |
23 |
28 |
24 |
160 def on_spellPropertiesButton_clicked(self): |
156 def on_spellPropertiesButton_clicked(self): |
161 """ |
157 """ |
162 Private slot to display the spelling properties dialog. |
158 Private slot to display the spelling properties dialog. |
163 """ |
159 """ |
164 if self.spellPropertiesDlg is None: |
160 if self.spellPropertiesDlg is None: |
|
161 from .SpellingPropertiesDialog import SpellingPropertiesDialog |
165 self.spellPropertiesDlg = \ |
162 self.spellPropertiesDlg = \ |
166 SpellingPropertiesDialog(self.project, self.newProject, self) |
163 SpellingPropertiesDialog(self.project, self.newProject, self) |
167 res = self.spellPropertiesDlg.exec_() |
164 res = self.spellPropertiesDlg.exec_() |
168 if res == QDialog.Rejected: |
165 if res == QDialog.Rejected: |
169 self.spellPropertiesDlg.initDialog() # reset the dialogs contents |
166 self.spellPropertiesDlg.initDialog() # reset the dialogs contents |
172 def on_transPropertiesButton_clicked(self): |
169 def on_transPropertiesButton_clicked(self): |
173 """ |
170 """ |
174 Private slot to display the translations properties dialog. |
171 Private slot to display the translations properties dialog. |
175 """ |
172 """ |
176 if self.transPropertiesDlg is None: |
173 if self.transPropertiesDlg is None: |
|
174 from .TranslationPropertiesDialog import TranslationPropertiesDialog |
177 self.transPropertiesDlg = \ |
175 self.transPropertiesDlg = \ |
178 TranslationPropertiesDialog(self.project, self.newProject, self) |
176 TranslationPropertiesDialog(self.project, self.newProject, self) |
179 else: |
177 else: |
180 self.transPropertiesDlg.initFilters() |
178 self.transPropertiesDlg.initFilters() |
181 res = self.transPropertiesDlg.exec_() |
179 res = self.transPropertiesDlg.exec_() |
215 Private slot to display a vcs information dialog. |
213 Private slot to display a vcs information dialog. |
216 """ |
214 """ |
217 if self.project.vcs is None: |
215 if self.project.vcs is None: |
218 return |
216 return |
219 |
217 |
|
218 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
220 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath) |
219 info = self.project.vcs.vcsRepositoryInfos(self.project.ppath) |
221 dlg = VcsRepositoryInfoDialog(self, info) |
220 dlg = VcsRepositoryInfoDialog(self, info) |
222 dlg.exec_() |
221 dlg.exec_() |
223 |
222 |
224 def getProjectType(self): |
223 def getProjectType(self): |