--- a/ProjectPyramid/Project.py Wed Aug 29 15:48:01 2012 +0200 +++ b/ProjectPyramid/Project.py Wed Aug 29 16:27:20 2012 +0200 @@ -62,7 +62,6 @@ Public method to define the Pyramid actions. """ # TODO: create action for: prequest - # TODO: create action for: ptweens self.actions = [] self.selectProjectAct = E5Action(self.trUtf8('Current Pyramid Project'), @@ -223,6 +222,20 @@ self.showRoutesAct.triggered[()].connect(self.__showRoutes) self.actions.append(self.showRoutesAct) + self.showTweensAct = E5Action(self.trUtf8('Show All Tween Objects'), + self.trUtf8('Show All &Tween Objects'), + 0, 0, + self,'pyramid_show_routes') + self.showTweensAct.setStatusTip(self.trUtf8( + 'Show all implicit and explicit tween objects used by a Pyramid application')) + self.showTweensAct.setWhatsThis(self.trUtf8( + """<b>Show All Tween Objects</b>""" + """<p>Show all implicit and explicit tween objects used by a""" + """ Pyramid application.</p>""" + )) + self.showTweensAct.triggered[()].connect(self.__showTweens) + self.actions.append(self.showTweensAct) + ################################## ## distribution actions below ## ################################## @@ -300,6 +313,7 @@ menu.addSeparator() menu.addAction(self.showViewsAct) menu.addAction(self.showRoutesAct) + menu.addAction(self.showTweensAct) menu.addSeparator() menu.addAction(self.runPythonShellAct) menu.addSeparator() @@ -959,6 +973,29 @@ if res: dia.exec_() + def __showTweens(self): + """ + Private slot showing all implicit and explicit tween objects. + """ + title = self.trUtf8("Show All Tween Objects") + try: + projectPath = self.__projectPath() + except PyramidNoProjectSelectedException: + E5MessageBox.warning(self.__ui, + title, + self.trUtf8('No current Pyramid project selected or no Pyramid project' + ' created yet. Aborting...')) + return + + cmd = self.getPyramidCommand("ptweens") + args = [] + args.append("development.ini") + + dia = PyramidDialog(title, fixed=True, linewrap=False) + res = dia.startProcess(cmd, args, projectPath) + if res: + dia.exec_() + ################################################################## ## slots below implement documentation functions ##################################################################