92 "werkzeug": "", |
92 "werkzeug": "", |
93 } |
93 } |
94 |
94 |
95 self.__capabilities = {} |
95 self.__capabilities = {} |
96 |
96 |
97 self.__pybabelProject = PyBabelProject(self.__plugin, self, self) |
97 self.__pybabelProject = PyBabelProject(self.__plugin, self, self.__ui) |
98 self.__migrateProject = MigrateProject(self.__plugin, self, self) |
98 self.__migrateProject = MigrateProject(self.__plugin, self, self.__ui) |
99 |
99 |
100 def initActions(self): |
100 def initActions(self): |
101 """ |
101 """ |
102 Public method to define the Flask actions. |
102 Public method to define the Flask actions. |
103 """ |
103 """ |
380 @param dirPath full directory path for the new form file |
380 @param dirPath full directory path for the new form file |
381 @type str |
381 @type str |
382 """ |
382 """ |
383 from .FormSelectionDialog import FormSelectionDialog |
383 from .FormSelectionDialog import FormSelectionDialog |
384 |
384 |
385 dlg = FormSelectionDialog() |
385 dlg = FormSelectionDialog(parent=self.__ui) |
386 if dlg.exec() == QDialog.DialogCode.Accepted: |
386 if dlg.exec() == QDialog.DialogCode.Accepted: |
387 template = dlg.getTemplateText() |
387 template = dlg.getTemplateText() |
388 |
388 |
389 fileFilters = self.tr( |
389 fileFilters = self.tr( |
390 "HTML Files (*.html);;HTML Files (*.htm);;All Files (*)" |
390 "HTML Files (*.html);;HTML Files (*.htm);;All Files (*)" |
601 "</table></p>", |
601 "</table></p>", |
602 "Do not translate the program names.", |
602 "Do not translate the program names.", |
603 ).format(versions["flask"], versions["werkzeug"], versions["python"], url), |
603 ).format(versions["flask"], versions["werkzeug"], versions["python"], url), |
604 modal=True, |
604 modal=True, |
605 buttons=EricMessageBox.Ok, |
605 buttons=EricMessageBox.Ok, |
|
606 parent=self.__ui, |
606 ) |
607 ) |
607 msgBox.setIconPixmap( |
608 msgBox.setIconPixmap( |
608 EricPixmapCache.getPixmap( |
609 EricPixmapCache.getPixmap( |
609 os.path.join( |
610 os.path.join( |
610 "ProjectFlask", "icons", "flask64-{0}".format(self.__iconSuffix) |
611 "ProjectFlask", "icons", "flask64-{0}".format(self.__iconSuffix) |
785 Private slot to configure the project specific flask parameters. |
786 Private slot to configure the project specific flask parameters. |
786 """ |
787 """ |
787 from .FlaskConfigDialog import FlaskConfigDialog |
788 from .FlaskConfigDialog import FlaskConfigDialog |
788 |
789 |
789 config = self.getData("flask", "") |
790 config = self.getData("flask", "") |
790 dlg = FlaskConfigDialog(config, self) |
791 dlg = FlaskConfigDialog(config, self, parent=self.__ui) |
791 if dlg.exec() == QDialog.DialogCode.Accepted: |
792 if dlg.exec() == QDialog.DialogCode.Accepted: |
792 config = dlg.getConfiguration() |
793 config = dlg.getConfiguration() |
793 self.setData("flask", "", config) |
794 self.setData("flask", "", config) |
794 self.__setIgnoreVirtualEnvironment() |
795 self.__setIgnoreVirtualEnvironment() |
795 self.__setDebugEnvironment() |
796 self.__setDebugEnvironment() |