16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
18 from E5Gui import E5MessageBox, E5FileDialog |
18 from E5Gui import E5MessageBox, E5FileDialog |
19 from E5Gui.E5Action import E5Action |
19 from E5Gui.E5Action import E5Action |
20 |
20 |
21 from .FormSelectionDialog import FormSelectionDialog |
|
22 from .CreateParametersDialog import CreateParametersDialog |
|
23 from .PyramidDialog import PyramidDialog |
21 from .PyramidDialog import PyramidDialog |
24 from .DistributionTypeSelectionDialog import DistributionTypeSelectionDialog |
|
25 from .PyramidRoutesDialog import PyramidRoutesDialog |
|
26 |
22 |
27 import Utilities |
23 import Utilities |
28 from Globals import isWindowsPlatform |
24 from Globals import isWindowsPlatform |
29 import UI.PixmapCache |
25 import UI.PixmapCache |
30 |
26 |
379 """ |
375 """ |
380 Public method to create a new form. |
376 Public method to create a new form. |
381 |
377 |
382 @param path full directory path for the new form file (string) |
378 @param path full directory path for the new form file (string) |
383 """ |
379 """ |
|
380 from .FormSelectionDialog import FormSelectionDialog |
|
381 |
384 dlg = FormSelectionDialog() |
382 dlg = FormSelectionDialog() |
385 if dlg.exec_() == QDialog.Accepted: |
383 if dlg.exec_() == QDialog.Accepted: |
386 template = dlg.getTemplateText() |
384 template = dlg.getTemplateText() |
387 |
385 |
388 filter = self.trUtf8( |
386 filter = self.trUtf8( |
530 |
528 |
531 def __createProject(self): |
529 def __createProject(self): |
532 """ |
530 """ |
533 Private slot to create a new Pyramid project. |
531 Private slot to create a new Pyramid project. |
534 """ |
532 """ |
|
533 from .CreateParametersDialog import CreateParametersDialog |
|
534 |
535 dlg = CreateParametersDialog(self) |
535 dlg = CreateParametersDialog(self) |
536 if dlg.exec_() == QDialog.Accepted: |
536 if dlg.exec_() == QDialog.Accepted: |
537 scaffold, project, overwrite, simulate = dlg.getData() |
537 scaffold, project, overwrite, simulate = dlg.getData() |
538 |
538 |
539 cmd = self.getPyramidCommand("pcreate") |
539 cmd = self.getPyramidCommand("pcreate") |
847 title, |
847 title, |
848 self.trUtf8('No current Pyramid project selected or no Pyramid project' |
848 self.trUtf8('No current Pyramid project selected or no Pyramid project' |
849 ' created yet. Aborting...')) |
849 ' created yet. Aborting...')) |
850 return |
850 return |
851 |
851 |
|
852 from .DistributionTypeSelectionDialog import DistributionTypeSelectionDialog |
|
853 |
852 dlg = DistributionTypeSelectionDialog(self, projectPath, self.__ui) |
854 dlg = DistributionTypeSelectionDialog(self, projectPath, self.__ui) |
853 if dlg.exec_() == QDialog.Accepted: |
855 if dlg.exec_() == QDialog.Accepted: |
854 formats = dlg.getFormats() |
856 formats = dlg.getFormats() |
855 cmd = self.getPythonCommand() |
857 cmd = self.getPythonCommand() |
856 args = [] |
858 args = [] |
957 E5MessageBox.warning(self.__ui, |
959 E5MessageBox.warning(self.__ui, |
958 title, |
960 title, |
959 self.trUtf8('No current Pyramid project selected or no Pyramid project' |
961 self.trUtf8('No current Pyramid project selected or no Pyramid project' |
960 ' created yet. Aborting...')) |
962 ' created yet. Aborting...')) |
961 return |
963 return |
|
964 |
|
965 from .PyramidRoutesDialog import PyramidRoutesDialog |
962 |
966 |
963 dia = PyramidRoutesDialog(self) |
967 dia = PyramidRoutesDialog(self) |
964 res = dia.start(projectPath) |
968 res = dia.start(projectPath) |
965 if res: |
969 if res: |
966 dia.exec_() |
970 dia.exec_() |