From bc272fbd8f39f150b671bfb25725d4c8d9873e2e Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 4 Feb 2009 18:37:12 +0000 Subject: [PATCH] Remove the spinner (it isn't needed) git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2261 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BCreationPage.py | 17 +++++++--------- wizard/bertos.py | 7 +------ wizard/ui/project_creation.ui | 37 ----------------------------------- 3 files changed, 8 insertions(+), 53 deletions(-) diff --git a/wizard/BCreationPage.py b/wizard/BCreationPage.py index f3e0a115..86fae838 100644 --- a/wizard/BCreationPage.py +++ b/wizard/BCreationPage.py @@ -23,12 +23,15 @@ class BCreationPage(BWizardPage): self.setTitle(self.tr("Create the BeRTOS project")) self._setupUi() self._connectSignals() + self._completed = False + + def reloadData(self): + self._completed = False + self._setupUi() def _setupUi(self): self._confirmGroup = QWidgetGroup(self.pageContent.summaryTree, self.pageContent.createButton) - self._workingGroup = QWidgetGroup(self.pageContent.spinnerLabel) - self._workingGroup.setVisible(False) self._finalGroup = QWidgetGroup(self.pageContent.iconLabel, self.pageContent.textLabel) self._finalGroup.setVisible(False) @@ -38,19 +41,13 @@ class BCreationPage(BWizardPage): def _createProject(self): self._confirmGroup.setVisible(False) - #self._workingGroup.setVisible(True) - #self._movie = QMovie("images/load_spinner.gif") - #print self._movie.isValid() - #self.pageContent.spinnerLabel.setMovie(self._movie) - #self._movie.start() bertos_utils.createBertosProject(self.wizard().project()) - #del self._movie - #self._workingGroup.setVisible(False) self._finalGroup.setVisible(True) + self._completed = True self.emit(SIGNAL("completeChanged()")) def isComplete(self): - return self._finalGroup.isVisible() + return self._completed class QWidgetGroup(QObject): """ diff --git a/wizard/bertos.py b/wizard/bertos.py index 78c34946..96730e59 100755 --- a/wizard/bertos.py +++ b/wizard/bertos.py @@ -26,12 +26,7 @@ import bertos_utils def newProject(): wizard = BWizard.BWizard() wizard.show() - if wizard.exec_(): - prj = wizard.project() - output = prj.info("OUTPUT") - if output == "makefile": - ## Now only supports the BeRTOS build system - bertos_utils.createBertosProject(prj) + wizard.exec_() def editProject(): print "editProject" diff --git a/wizard/ui/project_creation.ui b/wizard/ui/project_creation.ui index d3f31c81..772d44a4 100644 --- a/wizard/ui/project_creation.ui +++ b/wizard/ui/project_creation.ui @@ -46,43 +46,6 @@ - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - -- 2.25.1