From: duplo Date: Wed, 4 Feb 2009 18:37:12 +0000 (+0000) Subject: Remove the spinner (it isn't needed) X-Git-Tag: 2.1.0~421 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=bc272fbd8f39f150b671bfb25725d4c8d9873e2e;p=bertos.git Remove the spinner (it isn't needed) git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2261 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 - - - - - -